Update custom_samplers.py

This commit is contained in:
Extraltodeus
2024-08-27 09:52:30 +02:00
committed by GitHub
parent e8c5beddc8
commit cff639c974
+2 -2
View File
@@ -80,7 +80,7 @@ class SamplerDistanceAdvanced:
def INPUT_TYPES(s):
return {"required": {"resample": ("INT", {"default": 3, "min": 0, "max": 128, "step": 1,
"tooltip":"0 all along gives Euler. 1 gives Heun.\nAnything starting from 2 will use the distance method."}),
"resample_end": ("INT", {"default": -1, "min": 0, "max": 128, "step": 1, "tooltip":"How many resamples for the end. -1 means constant."}),
"resample_end": ("INT", {"default": -1, "min": 0, "max": 32, "step": 1, "tooltip":"How many resamples for the end. -1 means constant."}),
"cfgpp" : ("BOOLEAN", {"default": True}),
}}
RETURN_TYPES = ("SAMPLER",)
@@ -90,4 +90,4 @@ class SamplerDistanceAdvanced:
def get_sampler(self,resample,resample_end,cfgpp):
sampler = comfy.samplers.KSAMPLER(
distance_wrap(resample=resample,cfgpp=cfgpp,resample_end=resample_end))
return (sampler, )
return (sampler, )