Skip to content

Latest commit

 

History

History
113 lines (84 loc) · 4.67 KB

wildcards_and_dynamic_prompts_extension.md

File metadata and controls

113 lines (84 loc) · 4.67 KB

Wildcards

In the backend of the code, some of the things run on wildcards. These can be used in the prompt prefix, prompt suffix and subject override fields. They get values from their specific related lists.

Currently, One Button Prompt supports the following wildcards.

  • -color-
  • -material-
  • -animal-
  • -object-
  • -fictional-
  • -nonfictional-
  • -building-
  • -vehicle-
  • -outfit-
  • -location-
  • -conceptprefix-
  • -conceptsuffix-
  • -descriptor-
  • -food-
  • -haircolor-
  • -hairstyle-
  • -job-
  • -culture-
  • -accessory-
  • -humanoid-
  • -manwoman-
  • -human-
  • -colorscheme-
  • -mood-
  • -genderdescription-
  • -artmovement-
  • -malefemale-
  • -objecttotal-
  • -bodytype-
  • -minilocation-
  • -minilocationaddition-
  • -season-
  • -minioutfit-
  • -elaborateoutfit-
  • -minivomit-
  • -vomit-
  • -rpgclass-
  • -brand-

special wildcard, loading subject from a file

  • -subjectfromfile-

In the user_files folder, you can place a file called custom_subjects.csv . If you use this -subjectfromfile- wildcard, it will select a random value from this file. Suggested use is on the Overwrite Subject field.

Dynamic Prompts extension and wildcards

The Dynamic Prompts extension might be considered the father of One Button Prompt. In that case StylePile is its mother.

However, Dynamic Prompts can be combined with One Button Prompt. You can use the wildcards supported by Dynamic Prompts also in the prompt prefix, prompt suffix and subject override fields.

It also supports the Dynamic Prompts syntax of {cat|dog} to switch during batch processing.

Basically, you can run Dynamic Prompts on top of One Button Prompt.

Meaning that if you have managed your own wildcards before, you can use them here as well. With the standard settings, these are __ wildcardname __

In this example, I have a bird.txt wildcard file in \extensions\sd-dynamic-prompts\wildcards\

Now in One Button Prompt, I set the following: Subject Types = "animal" Artists = "sci-fi" or "none", depending on taste. Sometimes the sc-fi artists generate other types of "bird". Type of image = "digital art"

Overwrite subject = "cyberpunk __ bird __ with -material- implants"

I am using the deliberate model for these examples. Note that most models have problems generating kick ass birds.

image

here are some examples:

digital art, long shot of a cyberpunk American Woodcock with Moss implants, Sunny, Ultra Detailed, Happy, Demoscene, moody lighting, Grayscale, epic fantasy, RTX, unreal engine

digital art, overhead angle of a cyberpunk Northern Mockingbird with Foam implants, Illustration, Vaporwave Art

digital art, long shot of a cyberpunk European Starling with Bone implants, Stormy weather, F/14, hyperdetailed, ultra high res

(art by Kelly Freas:0.8), digital art, 3/4 view of a cyberpunk Winter Wren with Rubber implants, Snowy, Neogothic Art, Nostalgic lighting, Depth of field 100mm, dark white color grading

Dynamic Prompts extension and basic usage

Examples of using the {cat|dog} basic usage syntax working with One Button Prompt.

In One Button Prompt, I set the following: Subject Types = "animal" Artists = "sculpture" Overwrite type of image = "sculpture"

Overwrite subject = "{cat|dog}"

Now run with multiple batches, to see it switch between cat and dog.

image

Here are some example outputs:

sculpture of a Classic cat, Hopeless, Digital Art, waning light, [art by Barbara Hepworth|(art by Georg Jensen:1.2)|art by Lee Bontecou]

(art by Sebastian Errazuriz:1.0), (art by Barbara Hepworth:0.9), sculpture of a Epic Regal dog, Foggy, Ultrarealistic, Geometric Abstract Art, rim light, Fish-eye Lens, Muted Colors