|
|
@ -283,6 +283,33 @@ class SamplerLMS: |
|
|
|
sampler = comfy.samplers.ksampler("lms", {"order": order}) |
|
|
|
sampler = comfy.samplers.ksampler("lms", {"order": order}) |
|
|
|
return (sampler, ) |
|
|
|
return (sampler, ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SamplerDPMAdaptative: |
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
|
|
|
def INPUT_TYPES(s): |
|
|
|
|
|
|
|
return {"required": |
|
|
|
|
|
|
|
{"order": ("INT", {"default": 3, "min": 2, "max": 3}), |
|
|
|
|
|
|
|
"rtol": ("FLOAT", {"default": 0.05, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"atol": ("FLOAT", {"default": 0.0078, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"h_init": ("FLOAT", {"default": 0.05, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"pcoeff": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"icoeff": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"dcoeff": ("FLOAT", {"default": 0.0, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"accept_safety": ("FLOAT", {"default": 0.81, "min": 0.0, "max": 100.0, "step":0.01, "round": False}), |
|
|
|
|
|
|
|
"eta": ("FLOAT", {"default": 0.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}), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
RETURN_TYPES = ("SAMPLER",) |
|
|
|
|
|
|
|
CATEGORY = "sampling/custom_sampling/samplers" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FUNCTION = "get_sampler" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_sampler(self, order, rtol, atol, h_init, pcoeff, icoeff, dcoeff, accept_safety, eta, s_noise): |
|
|
|
|
|
|
|
sampler = comfy.samplers.ksampler("dpm_adaptive", {"order": order, "rtol": rtol, "atol": atol, "h_init": h_init, "pcoeff": pcoeff, |
|
|
|
|
|
|
|
"icoeff": icoeff, "dcoeff": dcoeff, "accept_safety": accept_safety, "eta": eta, |
|
|
|
|
|
|
|
"s_noise":s_noise }) |
|
|
|
|
|
|
|
return (sampler, ) |
|
|
|
|
|
|
|
|
|
|
|
class SamplerCustom: |
|
|
|
class SamplerCustom: |
|
|
|
@classmethod |
|
|
|
@classmethod |
|
|
|
def INPUT_TYPES(s): |
|
|
|
def INPUT_TYPES(s): |
|
|
@ -348,6 +375,7 @@ NODE_CLASS_MAPPINGS = { |
|
|
|
"SamplerDPMPP_3M_SDE": SamplerDPMPP_3M_SDE, |
|
|
|
"SamplerDPMPP_3M_SDE": SamplerDPMPP_3M_SDE, |
|
|
|
"SamplerDPMPP_2M_SDE": SamplerDPMPP_2M_SDE, |
|
|
|
"SamplerDPMPP_2M_SDE": SamplerDPMPP_2M_SDE, |
|
|
|
"SamplerDPMPP_SDE": SamplerDPMPP_SDE, |
|
|
|
"SamplerDPMPP_SDE": SamplerDPMPP_SDE, |
|
|
|
|
|
|
|
"SamplerDPMAdaptative": SamplerDPMAdaptative, |
|
|
|
"SplitSigmas": SplitSigmas, |
|
|
|
"SplitSigmas": SplitSigmas, |
|
|
|
"FlipSigmas": FlipSigmas, |
|
|
|
"FlipSigmas": FlipSigmas, |
|
|
|
} |
|
|
|
} |
|
|
|