The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
DPMPP_SDE node.
comfyanonymous8ab49dc0a476
diff --git a/comfy_extras/nodes_custom_sampler.py b/comfy_extras/nodes_custom_sampler.pyindex a1dc97848..d2cec7f09 100644--- a/comfy_extras/nodes_custom_sampler.py+++ b/comfy_extras/nodes_custom_sampler.py@@ -138,6 +138,29 @@ class SamplerDPMPP_2M_SDE:return (sampler, )+class SamplerDPMPP_SDE:+ @classmethod+ def INPUT_TYPES(s):+ return {"required":+ {"eta": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),+ "s_noise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),+ "r": ("FLOAT", {"default": 0.5, "min": 0.0, "max": 100.0, "step":0.01, "round": False}),+ "noise_device": (['gpu', 'cpu'], ),+ }+ }+ RETURN_TYPES = ("SAMPLER",)+ CATEGORY = "_for_testing/custom_sampling"++ FUNCTION = "get_sampler"++ def get_sampler(self, eta, s_noise, r, noise_device):+ if noise_device == 'cpu':+ sampler_name = "dpmpp_sde"+ else:+ sampler_name = "dpmpp_sde_gpu"+ sampler = comfy.samplers.ksampler(sampler_name, {"eta": eta, "s_noise": s_noise, "r": r})()+ return (sampler, )+class SamplerCustom:@classmethoddef INPUT_TYPES(s):@@ -196,6 +219,7 @@ NODE_CLASS_MAPPINGS = {"PolyexponentialScheduler": PolyexponentialScheduler,"KSamplerSelect": KSamplerSelect,"SamplerDPMPP_2M_SDE": SamplerDPMPP_2M_SDE,+ "SamplerDPMPP_SDE": SamplerDPMPP_SDE,"BasicScheduler": BasicScheduler,"SplitSigmas": SplitSigmas,}