mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
Fix infinite while loop being possible in ddim_scheduler
This commit is contained in:
parent
25a4805e51
commit
f44225fd5f
@ -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])]
|
||||
|
Loading…
Reference in New Issue
Block a user