santa hat
deerdeer nosedeer glow
Sign In

Dynamic wildcards - List + User Guide

Dynamic wildcards - List + User Guide

1. Introduction

Hi everyone, this user guide is intended to :

  • Explain very briefly what a dynamic wildcard is

  • Go through the different wildcard types

  • How to use my wildcards

  • List the different wildcards by type (with link to the page)

What's yaml ?

YAML is commonly used as a configuration file.

You can open it with Notepad++, it's basically a text file.

Mine are written so the content is divided in sections imbricated with subsections, with a list of values at the deepest level.

There is nothing much to say about YAML. But the value in these files is that some developers coded plugins to handle them as wildcards. This, with the added possibility of handling a new synthax in the wildcard, thus making them dynamic.

Check the tutorial links below if you want to know more about the synthax, it involves the use of special characters to call the functions that the developers have implemented inside their plugins.

Plugin installation

Install this for A1111/Forge: https://github.com/adieyal/sd-dynamic-prompts

tutorial: https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/tutorial.md

video tutorial: https://www.youtube.com/watch?v=bQK5diN59NA

Install this for ComfyUI: https://github.com/ltdrdata/ComfyUI-Impact-Pack

tutorial: https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Impact-Pack/tutorial/ImpactWildcard.md

Prompt examples with wildcards

(medium full shot) of 
shrek __cf-police-officer/prompt-costume__,
performing an arrest, 
set in __cof-location/place/*__, at __cof-location/timeofday/all__,
best quality, masterpiece
(medium full shot) of 
__crea-*/prompt-full__,
best quality, masterpiece

2. Categorization & Megapack

Megapack page

Let's begin by saying that the megapack contains all the wildcards presented below (basemodel, locations, costumes, creatures, objects, scenes), available in two formats:

  • a bundle with all the files

  • a single file version aka AllInOne

I have decided to use different prefixes for the wildcards about costumes, creatures, objects and scenes. This and the distribution of each wildcard in one type or another is a personal choice that I made for my own convenience. Like for example writing the mermaid wildcard as a creature, and not as a costume wildcard.

3. Basemodel

Basemodel wildcard

I have written a basemodel wildcard that is used by the costume wildcards, but you can use it as a standalone wildcard for prompting variants for a man or woman.

It contains nationalities, skin tones, body builds (15 for female and 23 for male), eye color (+15), hair styles (+40 for female, 45 for male), hair color, hair length, hair texture.

This is a list of some of the commands :

__cof-basemodel/gender__ : call for either a full male or female prompt
__cof-basemodel/gender-female__ : call for a full female prompt
__cof-basemodel/gender-male__ : call for a full male prompt
__cof-basemodel/age__ : from young to old
__cof-basemodel/ethnicity__ : call for a selected nationality + skin tone + eye color
__cof-basemodel/nationality/*__ : nationalities
__cof-basemodel/skin-tone/*__ : skin tones
__cof-basemodel/build-female/*__ : female body builds
__cof-basemodel/build-male/*__ : male body builds
__cof-basemodel/eye-color/*__ : eye colors
__cof-basemodel/hairstyle-female__ : female hairstyles
__cof-basemodel/hairstyle-male__ : male hairstyles
__cof-basemodel/hairstyle-punk__ : punk hairstyles
__cof-basemodel/hair-color/*__ : hair colors
__cof-basemodel/hair-length/*__ : hair length
__cof-basemodel/hair-texture/*__ : hair texture

Configuring the basemodel

You should edit the wildcard with a text editor (ex: Notepad++ or Visual Studio Code) to disable the options that you don't want to prompt, such as some hairstyles, some body builds or even a gender in case you want to prompt exclusively a man (or a woman).

To do this you can either delete the line, or the preferred method, comment the line in case you want to switch back later. To comment a line you add the special character # in front. Do not forget to restart your web-ui server afterward since the wildcards are loaded on launch :

4. Locations

Locations wildcard

I have moved all the locations from the costume, creature and object wildcards to this single wildcard. And I added some options for weather, season and time of the day.

At the moment I'm writing this article there is more than 770 different locations, each with several variants for a total of +5150 prompts for places.

You should call this wildcard at the end of your prompt to define a setting. Keep in mind that describing too much a setting force Stable Diffusion to lose the focus from you main target when generating an image.

This is a list of the commands :

__cof-location/place/*__ : a random place
__cof-location/weather__  : a random weather
__cof-location/season__ : a random season
__cof-location/timeofday/all__ : a random time of the day

5. Costumes

Costumes wildcards prompt a costume on a theme with a lot of variants about the costume.

The costume wildcards are called with the following, commands (example for mistress):

__cf-mistress/prompt-costume__ : prompt only the mistress costume
__cf-mistress/prompt-full__ : prompt the costume with a character and location

If you have multiple costumes wildcards or the Megapack, you can use these commands to call any costume wildcard:

__cf-*/prompt-costume__ : prompt any costume
__cf-*/prompt-full__ : prompt any costume with a character and location

costume wildcard list

cf-amazon

cf-amish

cf-ancient-china

cf-ancient-egypt

cf-ancient-rome

cf-angel

animal costume - cf-animal

cf-animal-print

cf-arab-princess

cf-armored-demon

cf-astronaut

cf-aztec

cf-baker

cf-ballerina

cf-barista

cf-basketball-player

cf-bavarian

cf-belly-dancer

cf-boxer

cf-bride

cf-cashier

cf-cavewoman

cf-cheerleader

cf-chef

cf-christmas

cf-clown

cf-construction-worker

cf-cowboy

cf-cyberpunk

cf-cyborg

cf-dapper

cf-dark-angel

cf-demon

cf-detective

cf-dia-de-muertos

cf-disco-dancer

cf-doctor

cf-elf

cf-emo

cf-fairy

cf-farmer

cf-firefighter

cf-fitness

cf-flapper

cf-flight-attendant

cf-florist

cf-football-player

cf-fortune-teller

cf-french-cancan

cf-gamer

cf-gangster-1920s

cf-geisha

cf-ghostbuster

cf-gladiator

cf-gothic-lolita

cf-gothic

cf-greaser-1950s

cf-gymnast

cf-harlot-18th

cf-harlot

cf-hawaiian

cf-hippie

cf-hipster-man

cf-hitek-soldier

cf-hockey-player

cf-ice-skater

cf-indian-princess

cf-jedi

cf-jester

cf-lifeguard

cf-lingerie

cf-luchador

cf-mad-scientist

cf-maid

cf-masquerade-ball

cf-mechanic

cf-medieval-soldier

cf-military

cf-mistress

cf-musketeer

cf-native-american

cf-necromancer

cf-ninja

cf-nun

cf-nurse

cf-painter

cf-pinup-1940

cf-pirate

cf-plumber

cf-police-officer

cf-pop-singer

cf-prison-inmate

cf-punk

cf-puppeteer

cf-red-riding-hood

cf-renaissance

cf-rio-carnival

cf-rockabilly

cf-roman-soldier

cf-rumba-dancer

cf-sailor

cf-samurai

cf-school-student

cf-scout

cf-secretary

cf-sith

cf-steampunk

cf-succubus

cf-swat

cf-swimmer

teacher - cf-school-teacher

cf-tennis-player

cf-top-model

cf-tudor

cf-valkyrie

cf-viking

cf-volleyball-player

cf-waitress

cf-wildling

cf-witch

cf-wrestler

cf-yakuza

6. Creatures

Creature wildcards prompt a creature with a lot of variants about the creature.

The creature wildcards are called with the following, commands (example for alien):

__crea-alien/prompt-creature__ : prompt only the creature
__crea-alien/prompt-full__ : prompt the creature with a location

If you have multiple creature wildcards or the Megapack, you can use these commands to call any creature wildcard:

__crea-*/prompt-creature__ : prompt any creature
__crea-*/prompt-full__ : prompt any creature with a location

creature wildcard list

crea-alien

aquatic creature - crea-aquatic

crea-bird

crea-butterfly

crea-cat

crea-golem

crea-dog

crea-dryad

crea-dwarf

crea-gargoyle

crea-ghost

hybrid creature - crea-hybrid

crea-lich

crea-mermaid

crea-orc-soldier

crea-phoenix

crea-robot

crea-skeleton-soldier

crea-snake

crea-spider

crea-steampunk-robot

crea-unicorn

crea-werewolf

crea-zombie

7. Objects

Object wildcards prompt an object with a lot of variants about the object.

The object wildcards are called with the following, commands (example for the cake):

__cornf-cake/prompt-object__ : prompt only the object
__cornf-cake/prompt-full__ : prompt the object with a location

If you have multiple object wildcards or the Megapack, you can use these commands to call any object wildcard:

__cornf-*/prompt-object__ : prompt any object 
__cornf-*/prompt-full__ : prompt any object with a location

object wildcard list

cornf-armored-car

cornf-cake

cornf-car

cornf-civil-plane

cornf-doll

cornf-drone

cornf-fantasy-house

cornf-flower

cornf-furniture

cornf-helicopter

cornf-house

cornf-liminal-space

cornf-meal

cornf-military-plane

cornf-model-train

cornf-motorbike

cornf-puppet

cornf-spaceship

cornf-statue

cornf-steampunk-aircraft

cornf-steampunk-house

cornf-submarine

cornf-tank

cornf-tree

8. Scenes

Scene wildcards prompt a scene based on a theme with a subject, a location and some actions.

The scene wildcards are called with the following, commands (example for the fantasy scene):

__cof-scene-fantasy/prompt-costume__ : prompt for a fantasy scene with a costume wildcard
__cof-scene-fantasy/prompt-creature__ : prompt for a fantasy scene with a creature wildcard
__cof-scene-fantasy/prompt-full__ : prompt the fantasy scene with a character

If you have multiple scene wildcards or the Megapack, you can use these commands to call any scene wildcard:

__cof-scene-*/prompt-costume__ : prompt for any scene with any costume  
__cof-scene-*/prompt-creature__ : prompt for any scene with any creature 
__cof-scene-*/prompt-full__ : prompt any scene with a character

scene wildcard list

cof-scene-fantasy

cof-scene-horror

cof-scene-post-apo

cof-scene-romance

cof-scene-urban

cof-scene-winter

33

Comments