ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

optional inputs

Open WASasquatch opened this issue 2 years ago • 2 comments

Optional inputs don't seem to be working?

I have me inputs like so

        return {"required":
                    {"model": ("MODEL",),
                    "seed": ("INT", {"default": 0, "min": 0, "max": 0xffffffffffffffff}),
                    "steps": ("INT", {"default": 20, "min": 1, "max": 10000}),
                    "cfg": ("FLOAT", {"default": 8.0, "min": 0.0, "max": 100.0}),
                    "sampler_name": (comfy.samplers.KSampler.SAMPLERS, ),
                    "scheduler": (comfy.samplers.KSampler.SCHEDULERS, ),
                    "positive": ("CONDITIONING", ),
                    "negative": ("CONDITIONING", ),
                    "latent_image": ("LATENT", ),
                    "denoise": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 1.0, "step": 0.01}),
                    },
                "optional":
                    {"seed_override": ("SEED",),}
                }

but no seed_override input shows, can they only be required?

WASasquatch avatar Mar 19 '23 08:03 WASasquatch

Yeah I have not had time to actually implement those.

comfyanonymous avatar Mar 19 '23 14:03 comfyanonymous

Ah drat. Running into so many road blocks.

WASasquatch avatar Mar 19 '23 16:03 WASasquatch

I'm working on adding the optional inputs in to the code.

I actually have the inputs working but I want to make sure that they are visually different so it'll be a bit longer before I can create a PR.

VeraLapsa avatar Mar 27 '23 04:03 VeraLapsa

I'm working on adding the optional inputs in to the code.

I actually have the inputs working but I want to make sure that they are visually different so it'll be a bit longer before I can create a PR.

Is there a way to set the elements opacity? Perhaps an optional input is half opacity (dot and all)?

WASasquatch avatar Mar 27 '23 04:03 WASasquatch

They should be working now.

comfyanonymous avatar Apr 05 '23 19:04 comfyanonymous

They should be working now.

Awesome! Thanks so much @comfyanonymous

WASasquatch avatar Apr 05 '23 19:04 WASasquatch