Closed jhillacre closed 5 months ago
Hmm, I see. I've been using KSampler from the inspire pack, which deals with this fine. Need to think what a good solution would be.
You could add some conversion nodes similar to the default rerouters:
STRING
-> default scheduler list typeSTRING
STRING
-> your scheduler list typeSTRING
Alternatively, you could make your selector node output three types on the same value in different formats. If 'AYS SDXL'
is selected, the default typed value could be None
. This feels similar to how you have "Checkpoint Loader with Name (Image Saver)" working.
It is now fixed in the main. Saver nodes accepts scheduler as a STRING. There are now SchedulerSelector and SchedulerSelectorComfy. Former outputs same type as before (same list as in the inspire pack), latter the "normal" Comfy scheduler types. Additionally, both also output a string with the selected scheduler name, which can be routed to the Saver.
Also added scheduler to string converters, in case you're getting those from somewhere else.
When using
SchedulerSelector
andImageSaver
with the default KSampler node'sscheduler
widget turned input, I cannot connect SchedulerSelector.scheduler to KSampler.scheduler.When I removed the addition of
AYS*
schedulers in your node.py, I'm able to connect the nodes.I'm new to ComfyUI, but it seems that they don't want to allow lists of different values anymore.
I'm using ComfyUI @ https://github.com/comfyanonymous/ComfyUI/commit/ffc4b7c30e35eb2773ace52a0b00e0ca5c1f4362 and ComfyUI-Image-Saver @ https://github.com/alexopus/ComfyUI-Image-Saver/commit/a98005bd463fcf440629f2d59f0c6816f207bd81