adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.02k stars 261 forks source link

Wildcards Broken With Batch Sizes >1 (SD.Next) #722

Open gohan2091 opened 8 months ago

gohan2091 commented 8 months ago

Hi,

When I am using wildcards to create some variety in my images I have recently experienced a problem. When generating in batches, the prompt text saved in the PNG file seems to different from the image if the batch size is greater than 1. Let me explain with a workflow:

1) Created a wildcard called Test Github.txt which contains the following text:

top-down view, high camera angle of a 20 year old Jessica Alba wearing a red cocktail dress standing amidst a vast desert, cinematic photo

top-down view, high camera angle of a 20 year old Jessica Alba wearing a blue cocktail dress standing amidst a volcanic mountain, cinematic photo

top-down view, high camera angle of a 20 year old Jessica Alba wearing a black cocktail dress standing amidst a frozen ice world, cinematic photo

The 3 wildcard enteries are the same except for the colour of the dress and the environment.

2) Entered in the posiitive prompt text box Test Github and set the batch size to 3.

Here are the result:

Screenshot 2024-02-04 213521

As you can see, 3 images have generated but all 3 are in the same location and the same coloured dress. The prompt texts are often different for each image. The first image matches the prompt as shown here:

Screenshot 2024-02-04 213548

The next two images however have a different prompt text that is not reflected in the image as shown here:

Screenshot 2024-02-04 213705 Screenshot 2024-02-04 213700

NOTE: This does not happen with batch count, only batch size.

gohan2091 commented 7 months ago

Well no response from anyone. Is this an issue unique only to me?

DigitalBeer commented 7 months ago

Hey, I can't offer a solution I'm afraid but I just wanted to reassure you and say you're not the only one, I experience this too with batch size and not with batch count.