ComfyUI: Batch Generate Text 2 Image. Easy Tutorial for automating multiple prompts

preview_player
Показать описание
Tired of making one image at a time in ComfyUI? This video will show you a super easy trick to batch process your text prompts in ComfyUI and create a whole explosion of AI-generated art!

In this video you'll learn:
- How to use ComfyUI to make tons of images at once
- Common pitfalls and errors with custom nodes used.
- Prompt guide for generating awesome text prompts to get the pictures you want.
- Combining multiple prompts to generate unique concepts
This video is perfect for beginners with basic ComfyUI skills who want to learn how to become more efficient with AI art generation.

00:00 - Background
01:08 - Install Custom Nodes
01:37 - Setting up a basic Text to image workflow
03:12 - Modify your ComfyUI workflow for batch processing
03:58 - Create batch text file for multiple prompts
04:18 - Use text file in workflow
06:20 - Errors
06:42 - Bonus - Stable Diffusion Prompt Guide
07:38 - Pitfall
08:48 - Bonus - Combining prompts

Links mentioning in the video:

Formatting Prompt:
I would like to bulk import these prompts into a single text file. In this file each prompt has a "positive:" and "negative:" prefix, followed by the positive and negative prompt respectively. There is a empty line separating the positive and negative prompt. Each prompt then needs to be separated by a series of hyphens ("---"). I've listed an example output using 3 random prompts below. Use the prompts from the previous response and format it to match this style.
###Example output###
positive:1girl is walking through street,
raincoat, yellow umbrella

negative:text, watermark
-----------------
positive:museum, people are looking paintings, abstract

negative:text, watermark
----
positive:battle ground of space ships

negative:text, watermark
###End of example Output###

License code: PXAIHHGD4HM7YMSB
Рекомендации по теме
Комментарии
Автор

Thanks for workflow!
I use two text files for project. One with all the prompts, that I edit and update as the project goes. And second empty, that I load in order to refresh cache, as after error on empty file the cache is clear, much faster than copy/pasting txt files.

murelis
Автор

Fantastic tutorial! Once we have an image that we like, is there a way to extract the prompt that was used?

adamg
Автор

Splendid tutorial that points directly. Thank you so much for your effort.

bigkingextra
Автор

Thank you so musc, that makes everything easy

sinanseheryeli
Автор

Good tutorial but horrible editing, hard to follow. Things are jumping around too much

foodadbobd
Автор

Great tutorial, but is there a way to randomize the seed of each image generated? It seems since technically comfyui see's it all as one prompt queue, the seed stays the same for all generated images. I'm trying to make a batch img2img workflow that has 4 images for each facial expression (4 angry, 4 sad, 4 happy etc.) and all 4 angry/sad/happy faces come out looking exactly the same.

Other than that, this tutorial helped immensely, wouldn't have gotten as far as I did without it!

pcpbctl
Автор

nice, but i want the same prompt for say 20 generations, then the next prompt for 20, then the next for 20...etc. any ideas? it only says sequential in the docs so hmm.

ade
Автор

when I modify the txt prompt it doesn't update only if I closed comfyui and open again, how to fix this ? and is there another to directly input text in the comfyui and not in a txt ?

renascersereno
Автор

I have a new workflow on the Flux Ai usiung a Lora and only 1 prompt box, I also have the prompt saving as the filename as it is discriptive of the image, I cannot get this to work with a batch file, it only has positive prompt and no negative prompt? Can i email you a workflow png file and then you help me to get it to work with batch? I would appreciate the help bro

GomezBro