Comfy-Org / Comfy-Org/ComfyUI_frontend
[Feature Request]: Allow node bypass state to be controlled via another node
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 699
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 490
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
### What would your feature do ?
When developing combined workflows it is often the case that sections of the workflow are unused in different configurations. Examples are:
1. having optional pre/post refinement SD XL steps;
2. selecting between image-to-image or text-to-image operation modes;
3. preventing errors e.g. if you have unclip/style support but the checkpoint doesn't have a clip vision model.
In these cases it can be useful to:
1. prevent loading unneeded models -- e.g. only loading the refiner model if pre/post refinement is enabled;
2. prevent errors if the user doesn't have a specific model -- e.g. if they don't have a canny ControlNet model;
3. avoid performing unneeded steps -- e.g. don't run a refinement pass or upscaling if they are not enabled;
4. providing user feedback which parts of the workflow are active -- e.g. if upscaling is disabled showing those nodes as bypassed.
### Proposed workflow
1. Add a node -- e.g. Load LoRA
2. Add a node with a boolean value -- e.g. from ComfyUI_essentials
3. Add bypass as an input (e.g. from the node context menu)
4. Hook up the boolean output to the bypass input
5. Toggle the boolean value to use/bypass the node
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.