stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Feature Request: "Batch Process Prompt List" for Parallel Generation

Open Kipacc opened this issue 4 months ago • 1 comments

Description The Batch size parameter is misleading for my use case. It generates multiple images in parallel, but only from a single, identical prompt. I need a feature that can process a list of different prompts in a single, parallel batch job.

The Core Issue Explained What Batch size: 4 does now: It takes ONE prompt (e.g., "a cat") and generates FOUR images of "a cat" all at once.

What I need it to do: I want to provide FOUR different prompts (e.g., "a cat", "a dog", "a car", "a house") and have the system generate ONE image for each of those prompts, all at once, in a single parallel operation.

The current system lacks a method to do this. The Prompts from file or textbox option processes the list sequentially, which is slow. There is no option for parallel execution of a prompt list.

The Requested Feature I propose a new feature, which could be an option within the Prompts from file or textbox script, called something like "Process as parallel batch".

How it would work:

I enter my list of four completely different prompts.

I check the "Process as parallel batch" box.

I click Generate.

The system treats the list of prompts as a single batch job, generating all four images simultaneously on the GPU.

The output order is preserved: the first image in the result corresponds to the first prompt in the list.

This would combine the speed of Batch size with the control of the prompt list feature, eliminating the need to choose between performance and workflow.

Additional Enhancement: Integration with Prompt S/R Concept It would be a powerful enhancement if this new parallel batch feature could also integrate the "search and replace" functionality from the XYZ plot.

How it could work:

A user could define a base prompt in the main field: a photorealistic image of a {subject}, professional studio lighting

Imagine {subject} is a cat, since thats how s/r works right now. Then, in the parallel list, they would provide only the values to replace {subject} with:

cat dog car house

The system would then generate the four final prompts in parallel:

a photorealistic image of a cat, professional studio lighting a photorealistic image of a dog, professional studio lighting a photorealistic image of a car, professional studio lighting a photorealistic image of a house, professional studio lighting

This would make the feature incredibly versatile, allowing users to efficiently generate batches of images that share a common style or structure but vary by a specific subject, attribute, or style keyword—all processed simultaneously for maximum speed.

This combines the best aspects of Prompt S/R (template efficiency) and parallel batch processing (GPU speed).

Kipacc avatar Aug 27 '25 19:08 Kipacc

Image Image

Photo examples: I have 4 entries in xyz>prompt s/r.

Batch count (BCOUNT): Makes 4 images, 1 by 1, sequentally, PER entry. Batch size (BSIZE): Makes 4 images at once, in parallel, PER entry.

What i am suggesting, is for a feature which will target/replace a prompt, and which generates in parallel X amount of entries, ONCE. So it will generate 1 image of each, in a parallel of 4.

Kipacc avatar Aug 27 '25 19:08 Kipacc