Wildcards in this collection are mainly created for realistic scenes with people. Hoever, they can be used for other types of art as well. They will give you inspiration and boost your creativity.
Since I work with these Wildcards myself, I catch problematic keywords and remove them. Sometimes I also add new keywords, and even entire files. I'm constantly looking for new ideas to expand this collection.
The main idea is to not overcomplicate things. Dealing with thousands of weirdly named wildcards may be overwhelming. I believe it's better to have a few that you can remember and use effectively.
To use these Wildcards, you need an extension. You can use one of the following:
Recommended
Most likely, after installing the extension, you'll need to restart Stable Diffusion (or the rented server instance) for the extension to work correctly. A simple reload of WebUI may not be sufficient. You can easily check if the extension works by generating an image. If the keyword colors
appears where you used __colors__
wildcard, it means something is wrong.
If you installed the extension using the Provisioning Script from AI-Dock, a restart will not be necessary ?
If you decided to use sd-dynamic-prompts, I recommend you to enable one useful option in the extension settings.
Settings > Uncategorised > Dynamic Prompts > Save template to metadata: Write prompt template into the PNG
Once you have a working Wildcards extension, you need wildcard .txt
files in appropriate directory. In the case of the two mentioned plugins, it will be the wildcards
directory in the main directory of the extension.
The path to the directory may look like this:
stable-diffusion-webui/extensions/sd-dynamic-prompts/wildcards/
stable-diffusion-webui/extensions/stable-diffusion-webui-wildcards/wildcards/
Navigate to the proper directory and download the files.
You can download them with the following command:
wget -qO- https://raw.githubusercontent.com/Avaray/stable-diffusion-simple-wildcards/sdxl/scripts/download.sh | bash -s -- wget sdxl
aria2c -q --allow-overwrite=true --remove-control-file=true -o dl.sh https://raw.githubusercontent.com/Avaray/stable-diffusion-simple-wildcards/sdxl/scripts/download.sh && chmod +x dl.sh && ./dl.sh aria2c sdxl
curl -s https://raw.githubusercontent.com/Avaray/stable-diffusion-simple-wildcards/sdxl/scripts/download.sh | bash -s -- curl sdxl
You can find more ways to download the wildcards in DOWNLOAD.md file.
A Wildcard is essentially a name of a file that contains a list of keywords. If you have a file named colors.txt
, you can use the wildcard in your prompt as __colors__
. Stable Diffusion will replace __colors__
with a random keyword from the colors.txt
file.
Let's say you want to generate a scene with a woman in a random location. Let her clothing be random as well.
photography of __nationalities__ woman, wearing __colors__ __clothes_upper__, standing in __locations__
The initial prompt will look like this:
photography of Spanish woman, wearing black dress, standing in restaurant
You can also use Variables
Available only in sd-dynamic-prompts
${c=__colors__} woman in __locations__, ${c} shirt, ${c} skirt, ${c} boots
The prompt will look like this:
woman in dressing room, pink shirt, pink skirt, pink boots
To get multiple values from one wildcard, you can specify amount of values you want to get.
Available only in sd-dynamic-prompts
photography of toy cars, {4$$__colors__}
The prompt will look like this:
photography of toy cars, red, blue, green, yellow
Checkpoints that are based on Pony Diffusion
may not work with some of these Wildcards. Pony Diffusion
checkpoints were trained on completely different data and lack the knowledge about many things. Nationalities
, Artists
, Cameras
and Films
most likely will not work at all. If you are planning to use these Wildcards for generating realistic scenes, you should use good checkpoints focused on real people. I recommend using one of following checkpoints:
SDXL 1.0
SDXL 1.0
SDXL 1.0
SDXL 1.0
For Nationalities
it's good to be around CFG Scale 6-7
to see how prompt affect the generated person (you can read more about it here). For Artists
it's better to have CFG Scale 2-5
to achieve best results. In both cases Checkpoint will have the biggest impact on the final result. Every checkpoint is different.
nationalities.txt
was inspired by this Reddit post.lighting.txt
was inspired by this Reddit post.artists.txt
was obtained from the Stable Diffusion Cheat-Sheet.artists2.txt
was obtained from the SDXL Artist Style Studies.cameras.txt
and Films camera_films.txt
were obtained from the SDXL 1.0 Artistic Studies.If you believe something is missing, that something could be useful, or that something should be removed, go ahead - fork this repository, edit the files, and submit a pull request.
Catch me on Discord if you have any questions or suggestions: avaray_
You can also support me on GitHub Sponsors, Patreon, or Buy Me a Coffee.