The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix infinite while loop being possible in ddim_scheduler
Jedrzej Kosinskif44225fd5f43
diff --git a/comfy/samplers.py b/comfy/samplers.pyindex f4c3e268f..f2ac3c5db 100644--- a/comfy/samplers.py+++ b/comfy/samplers.py@@ -295,7 +295,7 @@ def simple_scheduler(model, steps):def ddim_scheduler(model, steps):s = model.model_samplingsigs = []- ss = len(s.sigmas) // steps+ ss = max(len(s.sigmas) // steps, 1)x = 1while x < len(s.sigmas):sigs += [float(s.sigmas[x])]