adieyal / sd-dynamic-prompts

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

Bug? #683

Closed ema7569 closed 7 months ago

ema7569 commented 7 months ago

If I add a syntax like this {0.25::from back} to have just 25% of possibilities for this tag, the returned image is always from back. I also tested with {0.0::from back} and the returned prompt continue to contain the tag despite it has 0.0% chance

ema7569 commented 7 months ago

Will I'm here, another bug I encounter is the .yaml or .json files never show in manager. .txt files are ok.

akx commented 7 months ago

You shouldn't use the curly braces if you want weighted wildcards. That syntax is for variants.

(Sorry for the brief reply, on mobile.)

ema7569 commented 7 months ago

I solved my two questions, thank for your time