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: handle substep sigmas in context window set_step (#12719)
drozbay4d79f4f0280d
diff --git a/comfy/context_windows.py b/comfy/context_windows.pyindex 2f82d51da..b54f7f39a 100644--- a/comfy/context_windows.py+++ b/comfy/context_windows.py@@ -214,7 +214,7 @@ class IndexListContextHandler(ContextHandlerABC):mask = torch.isclose(model_options["transformer_options"]["sample_sigmas"], timestep[0], rtol=0.0001)matches = torch.nonzero(mask)if torch.numel(matches) == 0:- raise Exception("No sample_sigmas matched current timestep; something went wrong.")+ return # substep from multi-step sampler: keep self._step from the last full stepself._step = int(matches[0].item())def get_context_windows(self, model: BaseModel, x_in: torch.Tensor, model_options: dict[str]) -> list[IndexListContextWindow]: