GenerationParameters: Condense SAMPLER,SCHEDULER and string equivs into single items with multiple types

This commit is contained in:
Thomas Ward
2024-05-30 19:21:03 -04:00
parent 09be54ed35
commit f1d6a0a47a
+3 -4
View File
@@ -118,10 +118,9 @@ class TWCUI_Util_GenerationParameters(BaseNode):
}
}
RETURN_TYPES = ("LATENT", comfy.samplers.KSampler.SAMPLERS, comfy.samplers.KSampler.SCHEDULERS, "INT",
"INT", "INT", "FLOAT", "STRING", "STRING", "INT")
RETURN_NAMES = ("LATENT", "SAMPLER", "SCHEDULER", "width", "height", "steps", "cfg", "sampler_name",
"scheduler", "seed")
RETURN_TYPES = ("LATENT", "COMBO,STRING", "COMBO,STRING", "INT",
"INT", "INT", "FLOAT", "INT")
RETURN_NAMES = ("LATENT", "sampler_name", "scheduler", "width", "height", "steps", "cfg", "seed")
def process(self, image_width: int, image_height: int, sampling_steps: int,
cfg: float, sampler_name: str, scheduler_name: str, seed: int) -> tuple: