Send outputs and workflow parameters between workflows
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
It's a common need to be able to copy parameters and outputs between different workflows like with txt2img to img2img. However since ComfyUI is so flexible I think a smart approach will be needed to assure compatibility between different workflows
Something like capability to tag certain nodes as capable of receiving standardize prompt parameters. Almost everyone's going to have a positive and negative conditioning box at some point if they interface with txt2img. So it makes sense to be able to copy a prompt from an existing output into anything with positive/negative boxes. They just need to be tagged appropriately so the two can speak the same language.
So youd be able to tag a node's inputs/outputs somehow, saying "this is a PositivePrompt". When you get an output from that workflow the prompt text will be tagged PositivePrompt in the saved parameters. Later if you want to import the parameters from that prompt into something else its as easy as picking a workflow that exposes its own conditioning box tagged PositivePrompt
Some issues remain. Like what happens if the number of tagged nodes differs between workflows. For that you'd be able to tag multiple nodes with the same type and set a priority for them. So if you have one prompt but two positive boxes like for HR fix you could opt to either copy to the first one in the priority list or to both at once, depending on a setting
This opens up the way for more generalized conversion of a1111 prompts into anything that speaks comfy by the way. With enough effort you could create a giant workflow that's a superset of some a1111 feature plus a bunch of additional weird processing and have everything work out of the box with the existing corpus of prompts
Contributor guide
Assessment
This issue has not been assessed yet.