Skip to content

Latest commit

 

History

History
114 lines (60 loc) · 8.17 KB

templates.md

File metadata and controls

114 lines (60 loc) · 8.17 KB

template examples 1

Templates and "only templates" mode

There is a small chance, that One Button Prompt generates a prompt based on a template instead of a fully randomized generated prompt. You can also force it to use "only templates". But what does this mean exactly? I hope to answer these questions here.

This feature was build for beginners. Instead of copy/pasting existing interesting prompts from the web, I've already done so for you. There are currently over 500+ prompt templates available.

Hopefully, this will inspire you as well.

What is a prompt template?

A prompt template is a preconfigured prompt which uses One Button Prompt wildcards to be randomized.

These prompt templates are based on various popular existing prompts, from example civitai, prompthero, promptbook, replicable, openart sources. They try to add randomizition while keeping in line with the original prompt.

Here is a good example from the deliberate model. This is the original image posted:

original image

a girl, wearing a tie, cupcake in her hands, school, indoors, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

This is the wildcarded prompt that is added to the prompt templates:

a -subject-, wearing a -accessory-, -food- in her hands, school, -minilocation-, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

This means that most of the base prompt remains the same, however, some of the parts of the prompt have been replaced by wildcards. These are then replaced by a randomized value during prompt generation.

Here are some examples of this specific prompt template:

a Luigi, wearing a Chain, Clementine in her hands, school, pond, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

a Katniss Everdeen, wearing a Earbuds, alcohol in her hands, school, jungle, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

a Priyanka Chopra, wearing a Cat Ears, Charcuterie in her hands, school, trees, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

a Mr. Spock, wearing a Umbrella, smoked in her hands, school, flower field, (soothing tones:1.25), (hdr:1.25), (artstation:1.2), dramatic, (intricate details:1.14), (hyperrealistic 3d render:1.16), (filmic:0.55), (rutkowski:1.1), (faded:1.3)

As you can see, it still feels very One Button Prompty, while still being true to much of the original prompt.

Running with "only templates"

The prompt templates with show up once in a while during normal use of One Button Prompt. This can be set under "type of image" . Set this to "only templates". This will force One Button Prompt to only work bsaed of prompt templates instead of its normal randomized generation.

only templates option

All prompt templates are classified with a subject type. This means you can use the "Subject Types" field normally. So you can set it to any value such as "animal" or "humanoid", and it will take the prompt templates that match that type.

I do have to say, that "humanoids" are overrepresented in the dataset, and "concept" are underrepresented. I did try to have as much diversity as possible in the set.

Subject Override and prompt templates

You can use "Overwrite subject" as normal with the prompt templates. Meaning that your subject will be inserted in the prompt templates.

Refer to guide to override subject for more information surrounding the override subject.

"Smart subject" has no effect when using prompt templates.

Example: templates example with custom subject

Adding new prompt templates

You can add your own prompt templates as well, or even override the entire set with your own templates. This is done through the custom files logic that works for every file in One Button Prompt.

Refer to the basics here: guide to custom files

Refer to the wildcards here: guide to using wildcards and Dynamic Prompts

You can place a "templates_addon.csv" or a "templates_replace.csv" file in the userfiles folder of One Button Prompt.

Refer to \csvfiles\templates\templates.csv for how the prompt templates are build up.

structure

The structure is as following:

prompt;source;sourcecategory;subjecttype;subjectwildcard

prompt: The prompt including -wildcards-. You can use comma's normally. Try to determine the main subject of the prompt, and add the -subject- wildcard. This is needed to work with override subject.

source: Used during testing, no actual logic used here. I used either the website or model I got the prompt template from, such as civitai or promptbook.

sourcecategory: Used during testing, no actual logic used here. Currently only has the values official and gallery.

subjecttype: Determines the main category, these are "object", "animal", "humanoid", "landscape" and "concept"

subjectwildcard: The wildcard to replace the subject with. For example, use the -human- wildcard to replace the -subject- wildcard from the prompt with this wildcard.

Please note, that if there is a empty row, or one of the values is missing, it will probably not work.

Here are some random examples from the current templates.csv:

-subject- in -location- with typical -brand- -minioutfit- and highly detailed face;openart;gallery;humanoid;-human-

a -descriptor- -subject-, closeup, at night, dark theme, darken, cinematic;civitai;gallery;animal;-animal-

Super -descriptor- -subject-, holding a -objecttotal-, light rain, -minilocation-, by POPMART blind box, -colorscheme-, mockup, blind box toy, fineluster, clean background, 3D render, oc render, best quality, 4k, ultradetailed;lexica;gallery;humanoid;-human-

8k portrait of -subject- in a -color- -descriptor- -outfit- is standing in the -minilocationaddition- around the people at midnight ,(perfect face), -descriptor- jawline, (-descriptor- -color- eyes), -descriptor- lips, (-haircolor- -hairstyle- hairstyle), (perfect hands),(-mood-:1.3),looking at camera,(-descriptor- face:1.4),upperbody,grab a flowers, (highly detailed:1.5), digital painting, a photorealistic painting, photorealism;dreamshaper;gallery;humanoid;-human-

-descriptor- -subject- -culture- -artmovement- style. at an -location-;lexica;gallery;animal;-animal-

Contributing

If you would like your prompt templates to be added to One Button Prompt, you can:

  • Send a message with the templates in the GitHub discussions, or find me on reddit \u\AIrjen
  • Be a pro, and create a Pull request