Fix infinite while loop being possible in ddim_scheduler

This commit is contained in:
Jedrzej Kosinski 2024-02-09 17:11:34 -06:00
parent 25a4805e51
commit f44225fd5f

View File

@ -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])]