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
43d4935a
Commit
43d4935a
authored
Sep 15, 2023
by
comfyanonymous
Browse files
Add cond_or_uncond array to transformer_options so hooks can check what is
cond and what is uncond.
parent
415abb27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/samplers.py
comfy/samplers.py
+1
-0
No files found.
comfy/samplers.py
View file @
43d4935a
...
...
@@ -255,6 +255,7 @@ def sampling_function(model_function, x, timestep, uncond, cond, cond_scale, con
else
:
transformer_options
[
"patches"
]
=
patches
transformer_options
[
"cond_or_uncond"
]
=
cond_or_uncond
[:]
c
[
'transformer_options'
]
=
transformer_options
if
'model_function_wrapper'
in
model_options
:
...
...
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