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
574efd37
Commit
574efd37
authored
Dec 16, 2023
by
comfyanonymous
Browse files
Fix perpneg not working on SDXL.
parent
172984db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
comfy_extras/nodes_perpneg.py
comfy_extras/nodes_perpneg.py
+2
-1
No files found.
comfy_extras/nodes_perpneg.py
View file @
574efd37
...
...
@@ -29,8 +29,9 @@ class PerpNeg:
x
=
args
[
"input"
]
sigma
=
args
[
"sigma"
]
model_options
=
args
[
"model_options"
]
nocond_processed
=
comfy
.
samplers
.
encode_model_conds
(
model
.
extra_conds
,
nocond
,
x
,
x
.
device
,
"negative"
)
(
noise_pred_nocond
,
_
)
=
comfy
.
samplers
.
calc_cond_uncond_batch
(
model
,
nocond
,
None
,
x
,
sigma
,
model_options
)
(
noise_pred_nocond
,
_
)
=
comfy
.
samplers
.
calc_cond_uncond_batch
(
model
,
nocond
_processed
,
None
,
x
,
sigma
,
model_options
)
pos
=
noise_pred_pos
-
noise_pred_nocond
neg
=
noise_pred_neg
-
noise_pred_nocond
...
...
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