ComfyUI Question: Batching and Search/Replace in prompt like A1111 X/Y/Z script?
Having been generating very large batches for character training (per this tutorial which worked really well for me the first time), it occurs to me that the lack of interactivity of the process might make it an ideal use case for ComfyUI, and the lower overhead of ComfyUI might make it a bit quicker.
So, being a ComfyUI cherry, is it possible to batch and loop through and rewrite the prompt the way I can when using the X/Y/Z Prompt script in A1111? I assume I need custom nodes, but there's a lot of those out there
About this post
- Posted
- Archived
- Score
- 1 · 67% up
- Kind
- Text
- ID
- 16g7eo7
5 comments
Yes, it is possible, XY plot nodes are part of this custom node set: https://github.com/LucianoCirino/efficiency-nodes-comfyui/tree/main There is ability for Prompt S/R as well. Just a note - you need to separate values with semicolon, not colon like in A1111 (this was the only problem I met). Also I would recommend using UniPC (BH2 version ideally) sampler for these, it is very fast and generates good preview images at as low as 5-10 steps already, thus being ideal for large XY plots.
One more question, if you don't mind. This is more of a silly "would be nice to have" thing, but is there any chance there's a way to get the current X/Y values being used as text values, so that I could use it for the filename?
Sorry, no idea about this. Save Image node let's you define format of filenames, but I don't think it can pull values from other nodes...
And it looks like the Comfy equivalent of "Batch Count" is just to queue the prompt multiple times, so I just have to figure out how to use the efficiency nodes, and handle the seeds.
Thanks, much obliged!