Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
1130801c
Unverified
Commit
1130801c
authored
May 19, 2025
by
Muyang Li
Committed by
GitHub
May 19, 2025
Browse files
fix: fix the controlnet argument errors (#376)
parent
140b21e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
nunchaku/__version__.py
nunchaku/__version__.py
+1
-1
nunchaku/caching/utils.py
nunchaku/caching/utils.py
+1
-1
No files found.
nunchaku/__version__.py
View file @
1130801c
__version__
=
"0.3.0dev
1
"
__version__
=
"0.3.0dev
2
"
nunchaku/caching/utils.py
View file @
1130801c
...
@@ -399,7 +399,7 @@ class FluxCachedTransformerBlocks(nn.Module):
...
@@ -399,7 +399,7 @@ class FluxCachedTransformerBlocks(nn.Module):
controlnet_block_samples
=
(
controlnet_block_samples
=
(
torch
.
stack
(
controlnet_block_samples
).
to
(
original_device
)
if
len
(
controlnet_block_samples
)
>
0
else
None
torch
.
stack
(
controlnet_block_samples
).
to
(
original_device
)
if
len
(
controlnet_block_samples
)
>
0
else
None
)
)
if
controlnet_single_block_samples
is
not
None
and
len
(
controlnet_single_block_samples
)
>
0
:
if
controlnet_single_block_samples
is
not
None
:
controlnet_single_block_samples
=
(
controlnet_single_block_samples
=
(
torch
.
stack
(
controlnet_single_block_samples
).
to
(
original_device
)
torch
.
stack
(
controlnet_single_block_samples
).
to
(
original_device
)
if
len
(
controlnet_single_block_samples
)
>
0
if
len
(
controlnet_single_block_samples
)
>
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment