Good questions.
You can do this using {option1|option2}. The number of options is unlimited; you can add as many as you want {option1|option2|option3|option4|option5}, etc.
Only one option will be selected from these lists with equal probability.
Here's an example:
hires, white background, {1boy, blue eyes|1girl, red eyes|1other, green eyes}, looking at viewer
This will give you 3 possible options for the final prompt:
- hires, white background, 1boy, blue eyes, looking at viewer
- hires, white background, 1girl, red eyes, looking at viewer
- hires, white background, 1other, green eyes, looking at viewer
If you want to have an possible option, you can write the following:
{possible_option|}
possible_option will be displayed 50% of the time.
If you want to reduce the chance to 25%, use:
{{possible_option|}|}
You can nest them inside each other and combine them as you like:
class {warrior with {sword|spear}|rouge with {bow|crossbow}} in {day|sunset|night}
might give you in the end something like: class warrior with spear in sunset
Here some links with examples, but might not all work with comfyui, (I am sure thats weighted :: and multiple select $$ notations, does not work with comfyui):
- https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#prompt-mat...
- https://github.com/adieyal/sd-dynamic-prompts?tab=readme-ov-file#basic-usage
- https://www.reddit.com/r/StableDiffusion/comments/ynztiz/how_to_turbocharge_your..
P.S. Arousal_Level does nothing. It is a remnant left over from development.
The idea was that the higher the arousal, the more options would open up, but I decided not to limit the players' choice