The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add SetFirstSigma node (#6459)
catboxanon2cdbaf5169a6
diff --git a/comfy_extras/nodes_custom_sampler.py b/comfy_extras/nodes_custom_sampler.pyindex c7ff9a4d8..576fc3b2c 100644--- a/comfy_extras/nodes_custom_sampler.py+++ b/comfy_extras/nodes_custom_sampler.py@@ -231,6 +231,24 @@ class FlipSigmas:sigmas[0] = 0.0001return (sigmas,)+class SetFirstSigma:+ @classmethod+ def INPUT_TYPES(s):+ return {"required":+ {"sigmas": ("SIGMAS", ),+ "sigma": ("FLOAT", {"default": 136.0, "min": 0.0, "max": 20000.0, "step": 0.001, "round": False}),+ }+ }+ RETURN_TYPES = ("SIGMAS",)+ CATEGORY = "sampling/custom_sampling/sigmas"++ FUNCTION = "set_first_sigma"++ def set_first_sigma(self, sigmas, sigma):+ sigmas = sigmas.clone()+ sigmas[0] = sigma+ return (sigmas, )+class KSamplerSelect:@classmethoddef INPUT_TYPES(s):@@ -710,6 +728,7 @@ NODE_CLASS_MAPPINGS = {"SplitSigmas": SplitSigmas,"SplitSigmasDenoise": SplitSigmasDenoise,"FlipSigmas": FlipSigmas,+ "SetFirstSigma": SetFirstSigma,"CFGGuider": CFGGuider,"DualCFGGuider": DualCFGGuider,