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
chenpangpang
ComfyUI
Commits
ca2812ba
Commit
ca2812ba
authored
Nov 10, 2023
by
comfyanonymous
Browse files
Fix RescaleCFG for batch size > 1.
parent
58d5d71a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy_extras/nodes_model_advanced.py
comfy_extras/nodes_model_advanced.py
+1
-0
No files found.
comfy_extras/nodes_model_advanced.py
View file @
ca2812ba
...
@@ -140,6 +140,7 @@ class RescaleCFG:
...
@@ -140,6 +140,7 @@ class RescaleCFG:
uncond
=
args
[
"uncond"
]
uncond
=
args
[
"uncond"
]
cond_scale
=
args
[
"cond_scale"
]
cond_scale
=
args
[
"cond_scale"
]
sigma
=
args
[
"sigma"
]
sigma
=
args
[
"sigma"
]
sigma
=
sigma
.
view
(
sigma
.
shape
[:
1
]
+
(
1
,)
*
(
cond
.
ndim
-
1
))
x_orig
=
args
[
"input"
]
x_orig
=
args
[
"input"
]
#rescale cfg has to be done on v-pred model output
#rescale cfg has to be done on v-pred model output
...
...
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