Open sawasy opened 7 months ago
Referring to my code below, modify the nodes.py file. sampler_name, scheduler_name can be modified like this
class SamplerSelector:
CATEGORY = 'ImageSaver/utils'
RETURN_TYPES = ("COMBO",) # <--fix here
RETURN_NAMES = ("sampler_name",)
FUNCTION = "get_names"
@classmethod
def INPUT_TYPES(cls):
return {"required": {"sampler_name": (comfy.samplers.KSampler.SAMPLERS,)}}
def get_names(self, sampler_name):
return ([sampler_name],) # <--and here: return an array
This is the same with scheduler_name and model_name nodes.
m!