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
dc198650
Commit
dc198650
authored
May 21, 2023
by
comfyanonymous
Browse files
sample_dpmpp_2m_sde no longer crashes when step == 1.
parent
4796e615
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/k_diffusion/sampling.py
comfy/k_diffusion/sampling.py
+1
-0
No files found.
comfy/k_diffusion/sampling.py
View file @
dc198650
...
@@ -628,6 +628,7 @@ def sample_dpmpp_2m_sde(model, x, sigmas, extra_args=None, callback=None, disabl
...
@@ -628,6 +628,7 @@ def sample_dpmpp_2m_sde(model, x, sigmas, extra_args=None, callback=None, disabl
if
sigmas
[
i
+
1
]
==
0
:
if
sigmas
[
i
+
1
]
==
0
:
# Denoising step
# Denoising step
x
=
denoised
x
=
denoised
h
=
None
else
:
else
:
# DPM-Solver++(2M) SDE
# DPM-Solver++(2M) SDE
t
,
s
=
-
sigmas
[
i
].
log
(),
-
sigmas
[
i
+
1
].
log
()
t
,
s
=
-
sigmas
[
i
].
log
(),
-
sigmas
[
i
+
1
].
log
()
...
...
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