Open dchatel opened 9 months ago
Shouldn't the return type not be a tuple for the sampler and scheduler?
RETURN_TYPES = (("COMBO", "STRING"), ("COMBO", "STRING"), "INT", "INT", "FLOAT")
RETURN_NAMES = ("sampler_name", "scheduler_name", "steps", "hires steps", "cfg")
You can try:
RETURN_TYPES = ("COMBO", "COMBO", "INT", "INT", "FLOAT")
# ...
return ([sampler_name],[scheduler_name], steps, hires_steps, cfg)
This is old, but I recently came across this same situation. The way I solved was by just using comfy.samplers.KSampler.SAMPLERS in the RETURN_TYPES.
It would look like this:
RETURN_TYPES = (comfy.samplers.KSampler.SAMPLERS, comfy.samplers.KSampler.SCHEDULERS, "INT", "INT", "FLOAT")
Here is what I have right now:
I've tried to use
RETURN_TYPES = ("COMBO", ....)
instead of"COMBO,STRING"
, but apparently, the frontend requires that extra,STRING
in order to accept the connection. But then, here is what I get when I'm trying to generate:Return type mismatch between linked nodes: sampler_name, COMBO,STRING != COMBO
So, how do you do this properly ?