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
7dd352cb
Commit
7dd352cb
authored
Feb 11, 2024
by
comfyanonymous
Browse files
Merge branch 'feature_expose_discard_penultimate_sigma' of
https://github.com/blepping/ComfyUI
parents
20e3da6b
a352c021
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
comfy/samplers.py
comfy/samplers.py
+2
-1
No files found.
comfy/samplers.py
View file @
7dd352cb
...
...
@@ -652,6 +652,7 @@ def sampler_object(name):
class
KSampler
:
SCHEDULERS
=
SCHEDULER_NAMES
SAMPLERS
=
SAMPLER_NAMES
DISCARD_PENULTIMATE_SIGMA_SAMPLERS
=
set
((
'dpm_2'
,
'dpm_2_ancestral'
,
'uni_pc'
,
'uni_pc_bh2'
))
def
__init__
(
self
,
model
,
steps
,
device
,
sampler
=
None
,
scheduler
=
None
,
denoise
=
None
,
model_options
=
{}):
self
.
model
=
model
...
...
@@ -670,7 +671,7 @@ class KSampler:
sigmas
=
None
discard_penultimate_sigma
=
False
if
self
.
sampler
in
[
'dpm_2'
,
'dpm_2_ancestral'
,
'uni_pc'
,
'uni_pc_bh2'
]
:
if
self
.
sampler
in
self
.
DISCARD_PENULTIMATE_SIGMA_SAMPLERS
:
steps
+=
1
discard_penultimate_sigma
=
True
...
...
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