Skip to content

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

1 points3 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 67% up
Kind
Text
ID
16g7eo7

Author

8
posts
615
comments
2
media
View profile

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.

1 points

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?

1 points

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...

1 points

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!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.