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
c9fc242e
Commit
c9fc242e
authored
Apr 07, 2024
by
comfyanonymous
Browse files
The middle prompt should be treated more as a negative prompt.
parent
80bda6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy_extras/nodes_custom_sampler.py
comfy_extras/nodes_custom_sampler.py
+2
-0
No files found.
comfy_extras/nodes_custom_sampler.py
View file @
c9fc242e
...
...
@@ -4,6 +4,7 @@ from comfy.k_diffusion import sampling as k_diffusion_sampling
import
latent_preview
import
torch
import
comfy.utils
import
node_helpers
class
BasicScheduler
:
...
...
@@ -433,6 +434,7 @@ class Guider_DualCFG(comfy.samplers.CFGGuider):
self
.
cfg2
=
cfg2
def
set_conds
(
self
,
positive
,
middle
,
negative
):
middle
=
node_helpers
.
conditioning_set_values
(
middle
,
{
"prompt_type"
:
"negative"
})
self
.
inner_set_conds
({
"positive"
:
positive
,
"middle"
:
middle
,
"negative"
:
negative
})
def
predict_noise
(
self
,
x
,
timestep
,
model_options
=
{},
seed
=
None
):
...
...
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