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
f44225fd
Commit
f44225fd
authored
Feb 09, 2024
by
Jedrzej Kosinski
Browse files
Fix infinite while loop being possible in ddim_scheduler
parent
25a4805e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/samplers.py
comfy/samplers.py
+1
-1
No files found.
comfy/samplers.py
View file @
f44225fd
...
...
@@ -295,7 +295,7 @@ def simple_scheduler(model, steps):
def
ddim_scheduler
(
model
,
steps
):
s
=
model
.
model_sampling
sigs
=
[]
ss
=
len
(
s
.
sigmas
)
//
steps
ss
=
max
(
len
(
s
.
sigmas
)
//
steps
,
1
)
x
=
1
while
x
<
len
(
s
.
sigmas
):
sigs
+=
[
float
(
s
.
sigmas
[
x
])]
...
...
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