From 0afbf0219274fffd831a573731317baaed607521 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Mon, 12 Jun 2023 21:30:18 +0200
Subject: [PATCH 01/15] Update my_first_generation.md
Added better description for using prompt prefix
---
user_guides/my_first_generation.md | 36 +++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/user_guides/my_first_generation.md b/user_guides/my_first_generation.md
index 0ff17f5..60cc80f 100644
--- a/user_guides/my_first_generation.md
+++ b/user_guides/my_first_generation.md
@@ -79,11 +79,45 @@ Examples:
> art by Geof Kern, (art by Guo Pei:0.8), photograph, 3/4 view of a Reiwa Era Kehlani, Writing, Dark hair styled as Wavy, Necklace, Soul patch, Sunny, Dada Art, volumetric lighting, film grain, dslr, F/1.8, Plain white background
+## Adding trigger words for certain models
+For this example, I am using the [ReV Animated](https://civitai.com/models/7371/rev-animated) model.
+
+I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "25" and kept the CFG Scale to "7"
+You can increase the batch count, to keep creating new images.
+
+As a "Subject Type" I select "humanoid". This model likes to generate humans as well.
+
+For "Artists" I select "none". I don't want any interference from an artist, because we want to activate the anime-2.5D style.
+
+As "Type of image" I select "all", we do want to get some surprises.
+
+In the description for this model, it is stated to activate the anime-2.5D type pictures, we should add ((best quality)), ((masterpiece)), (detailed) in the beginning of the prompt.
+
+This we place in the prompt prefix field. This field will always be added the the beginning to the generated prompt. Exactly what we want.
+
+
+
+Examples:
+
+
+
+
+> ((best quality)), ((masterpiece)), (detailed), Cartelcore, surreal, elegant, Narrative Australian BB-8 of Thoughts, 🥱, concept art, wearing Universal Shirt dress, DayGlo green trees, at Sunrise, horizon-centered, Cel shaded, Sepia filter
+
+> ((best quality)), ((masterpiece)), (detailed), Sharp focus of a Smart hefty Mother, Planning events, wearing robe designed by The Hunger Games, Toe ring, Circlet, Cigarette, background is Chichen Itza, at Twilight, Dragonpunk, Rembrandt lighting
+
+
+
+
+> ((best quality)), ((masterpiece)), (detailed), Cluttered muscular American Quetzalcoatl, Wrestling, Dark hair styled as Bantu knots, Dark, auto-destructive art, Fish-eye Lens, surreal design, High quality
+
+> ((best quality)), ((masterpiece)), (detailed), Exceptional slender Salvadoran Male Musician, Award-Winning Gray hair, plain background, Qajar Art, Low shutter
+
## Sci-fi Animals (adding trigger words and prompt prefix)
In this example, I am using the [dreamlike diffusion](https://civitai.com/models/1274/dreamlike-diffusion-10) model.
I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "25" and kept the CFG Scale to "7"
-I've set the Widht to 768 to create some widescreen images.
+I've set the Width to 768 to create some widescreen images.
You can increase the batch count, to keep creating new images.
From 9cc7263bea3a54a91d3983893d19bdfb1393be97 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Mon, 12 Jun 2023 21:51:32 +0200
Subject: [PATCH 02/15] Update my_first_generation.md
---
user_guides/my_first_generation.md | 74 +++++++++++++++++-------------
1 file changed, 41 insertions(+), 33 deletions(-)
diff --git a/user_guides/my_first_generation.md b/user_guides/my_first_generation.md
index 60cc80f..b9b5391 100644
--- a/user_guides/my_first_generation.md
+++ b/user_guides/my_first_generation.md
@@ -1,15 +1,16 @@
# My first generation
-Here are some example methods and tips on how to receive some good results.
+Here are some example methods and tips on how to receive some initial good results.
Maybe it can give you some ideas and inspiration on how to use this tool. You can just leave everything on "all", which is the most fun!
-It works best with models that are more general and multi purpose. Such as [deliberate](https://civitai.com/models/4823/deliberate) and [dreamlike diffusion](https://civitai.com/models/1274/dreamlike-diffusion-10). However, feel free to use it on your personal favorite models.
+It works best with models that are more general and multi purpose. Such as [deliberate](https://civitai.com/models/4823/deliberate) and [dreamlike diffusion](https://civitai.com/models/1274/dreamlike-diffusion-10). However, feel free to use it on your personal favorite models. If you want to generate images in a certain set style, of in the style of a certain model? That is possible as well, and explained in this page.
For models which are more trained on specific subjects, match the subject to the model to get the best results.
## Portraits
-In this example, I am using the deliberate model.
+In this example, I am using the [deliberate](https://civitai.com/models/4823/deliberate) model. It is a very flexible model, and art styles have a good impact on the end results.
+
I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "25" and lowered the CFG Scale to "6"
You can increase the batch count, to keep creating new images.
@@ -20,11 +21,11 @@ Then I scroll down and activate the One Button prompt script.
I set the complexity of the prompt to 5, which is a nice middle ground for prompts.
-As a "Subject Type" I select "humanoid", this will ensure I will get a human, or humanoid like result from the prompt.
+As a __"Subject Type"__ I select __"humanoid"__, this will ensure I will get a human, or human-like result from the prompt.
-For "Artists" I select "popular". This is a list of popular artists from images from CivitAI. Such as LOIS, Artgerm, alphonse mucha and many others. You can also try and switch "artists" to "Portrait" or "Character"
+For __"Artists"__ I select __"popular"__. This is a list of popular artists from images from CivitAI. Such as LOIS, Artgerm, alphonse mucha and many others. You can also try and switch "artists" to __"Portrait"__ or __"Character"__
-As "Type of image" I select "portrait", so that it will always default to a portrait image. You can also try to switch "Type of image" to "digital art" to get more full body shots.
+As __"Type of image"__ I select __"portrait"__, so that it will always default to a portrait image. You can also try to switch "Type of image" to __"digital art"__ to get more full body shots.

@@ -54,12 +55,12 @@ You can increase the batch count, to keep creating new images.
I set the complexity of the prompt to 5, which is a nice middle ground for prompts. For photo's you might want to go a bit lower.
-As a "Subject Type" I select "humanoid", as the Realistic Vision model likes to generate humans.
+As a __"Subject Type"__ I select __"humanoid"__, as the Realistic Vision model likes to generate humans.
-For "Artists" I select "photograph". This is a list of photography artists. However "fashion" is also a good option here. I can also recommend "none", so no artist is generated at all
+For __"Artists"__ I select __"photograph"__. This is a list of photography artists. However __"fashion"__ is also a good option here. I can also recommend __"none"__, so no artist is generated at all
When using Photograph artists, there is a very high chance of getting a portrait image.
-As "Type of image" I select "photograph", so that it will always default to a portrait image.
+As __"Type of image"__ I select __"portrait"__, so that it will always default to a portrait image.

@@ -85,11 +86,11 @@ For this example, I am using the [ReV Animated](https://civitai.com/models/7371/
I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "25" and kept the CFG Scale to "7"
You can increase the batch count, to keep creating new images.
-As a "Subject Type" I select "humanoid". This model likes to generate humans as well.
+As a __"Subject Type"__ I select __"humanoid"__. This model likes to generate humans as well.
-For "Artists" I select "none". I don't want any interference from an artist, because we want to activate the anime-2.5D style.
+For __"Artists"__ I select __"none"__. I don't want any interference from an artist, because we want to activate the anime-2.5D style.
-As "Type of image" I select "all", we do want to get some surprises.
+As __"Type of image"__ I select __"all"__, we do want to get some surprises.
In the description for this model, it is stated to activate the anime-2.5D type pictures, we should add ((best quality)), ((masterpiece)), (detailed) in the beginning of the prompt.
@@ -113,42 +114,49 @@ Examples:
> ((best quality)), ((masterpiece)), (detailed), Exceptional slender Salvadoran Male Musician, Award-Winning Gray hair, plain background, Qajar Art, Low shutter
-## Sci-fi Animals (adding trigger words and prompt prefix)
-In this example, I am using the [dreamlike diffusion](https://civitai.com/models/1274/dreamlike-diffusion-10) model.
+## Using specific artists and styles, graffiti wall art
+For this example, I am using the [deliberate](https://civitai.com/models/4823/deliberate) model.
+
+Lets say I want to generate some wall grafiti in the style of Loish. Can we do this? Yes we can!
+
+First, lets set up our basic things again.
I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "25" and kept the CFG Scale to "7"
-I've set the Width to 768 to create some widescreen images.
-
You can increase the batch count, to keep creating new images.
-I set the complexity of the prompt to 7, since we can go a little crazy here, but not too much.
+As a __"Subject Type"__ I select __"animal"__. I want to generate some animals in the art.
-As a "Subject Type" I select "animal", we want to create some cool animals.
+For __"Artists"__ I select __"none"__. I don't want any interference from adding an artist. We put our own artist in.
-For "Artists" I select "sci-fi". This is a list of sci-fi artists. However "fantasy" is also a good option here.
+As __"Type of image"__ it doesn't matter, we will override this.
-As "Type of image" I select "concept art", because we want some cool concept art to show up.
+For __"Overwrite type of image"__ I added __"wall graffiti, doodle art"__. This will make sure this is always chosen as the image type, instead of photograph or painting for example.
-As an addition, I am also filling in the prompt prefix field with "dreamlikeart, sci-fi animal"
+Next, I add __"art by Loish"__ in the __prompt suffix field__. This artist will now always be placed at the back of the generated prompt.
-"dreamlikeart" is the triggerword of the dreamlike diffusion model, so we want to add that as the start
+This way we can start exploring styles and artists. If we find something interesting during generation, we can set stuff in these fields to get more control.
-Adding "sci-fi animal" at the start, makes sure it understand it needs to create a sci-fi animal, regardless of what else the prompts generates. You can play around with these settings, also depending on the model you are using and the results you want.
+
-
+Example:
-Examples:
+
+
-
-
+> wall graffiti, doodle art of a Celestial Extraordinary Exotic Shorthair cat, Titan, Anime screencap, Embarrassing, 80mm, art by Loish
-> dreamlikeart, sci-fi animal, (art by Kilian Eng:1.1), concept art, Street level shot of a Floating were badger, from inside of The Tablets of Stone, Foggy, Movie still, Seapunk Art, Low shutter, Lomography, opulent
+> wall graffiti, doodle art of a Misshapen Cyclops, Hazy conditions, Ultra Detailed, Peaceful, Agfacolor, art by Loish
-> dreamlikeart, sci-fi animal, concept art, ground level shot of a Glam monster Chicken, Realistic, in the style of Bust of Nefertiti, (art by Brian Sum:1.3)
+
+
-
-
+> wall graffiti, doodle art of a Dreadful Lobster, background is Unforgettable The Burning Bush, 800mm lens, CMYK Colors, art by Loish
-> dreamlikeart, sci-fi animal, concept art, aerial shot of a Happy Stegosaurus, Triathlon, wearing 1920's dark pastel Denim shorts, Adventure pose, moody lighting, Fish-eye Lens, Cinestill, National Geographic, dripping Mustard, photolab, (art by Ed Emshwiller:1.3),art by Andy Fairhurst
+> wall graffiti, doodle art of a Tedious Sheep, at Overcast, masterpiece, F/8, Grayscale, art by Loish
-> dreamlikeart, sci-fi animal, concept art, full shot of a Lovely Scorpion, background is Mountain, Spring, Rough sketch, key light, 50mm, Film grain, Dota style, inticrate details
+## What to do next?
+Thanks for reading so far, want more?
+
+Next up is reading [guide to override subject](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/override_subject_and_infinite_variations.md)
+
+This will show you how to generate a set subject, and then One Button Prompt will generate the rest of the prompt around it. This is a very popular feature of One Button Prompt.
From 5cff9a2a18e05a87d3ff78fe83e8b89922515890 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Mon, 12 Jun 2023 21:53:13 +0200
Subject: [PATCH 03/15] Update my_first_generation.md
---
user_guides/my_first_generation.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/user_guides/my_first_generation.md b/user_guides/my_first_generation.md
index b9b5391..90e1a45 100644
--- a/user_guides/my_first_generation.md
+++ b/user_guides/my_first_generation.md
@@ -132,7 +132,7 @@ As __"Type of image"__ it doesn't matter, we will override this.
For __"Overwrite type of image"__ I added __"wall graffiti, doodle art"__. This will make sure this is always chosen as the image type, instead of photograph or painting for example.
-Next, I add __"art by Loish"__ in the __prompt suffix field__. This artist will now always be placed at the back of the generated prompt.
+Next, I add __"art by Loish"__ in the __prompt suffix field__. This artist will now always be placed at the back of the generated prompt. You could add this to the prompt prefix field as well, to get a stronger effect. You can also write it as such __"(art by Loish:1.3)"__ to have a stronger effect as well.
This way we can start exploring styles and artists. If we find something interesting during generation, we can set stuff in these fields to get more control.
From ea316a7f428cd9840c6bd601ef6d2096195c8616 Mon Sep 17 00:00:00 2001
From: AIrjen
Date: Tue, 13 Jun 2023 10:32:21 +0200
Subject: [PATCH 04/15] fixed template override working
---
csv_reader.py | 2 +-
csvfiles/templates/templates.csv | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/csv_reader.py b/csv_reader.py
index 4a19d8f..cccf27f 100644
--- a/csv_reader.py
+++ b/csv_reader.py
@@ -27,7 +27,7 @@ def csv_to_list(csvfilename, antilist=[], directory="./csvfiles/", lowerandstrip
full_path = os.path.join(script_dir, directory )
userfilesfolder = os.path.join(script_dir, userfilesdirectory )
# check if there is a replace file
- if(directory=="./csvfiles/" or directory=="./csvfiles/special_lists/"):
+ if(directory=="./csvfiles/" or directory=="./csvfiles/special_lists/" or directory=="./csvfiles/templates/"):
for filename in os.listdir(userfilesfolder):
if(filename == userfilereplacename):
# Just override the parameters, and let it run normally
diff --git a/csvfiles/templates/templates.csv b/csvfiles/templates/templates.csv
index 28627cb..a4684bd 100644
--- a/csvfiles/templates/templates.csv
+++ b/csvfiles/templates/templates.csv
@@ -1,7 +1,7 @@
"a closeup portrait of a -descriptor- -subject-, -hairstyle- hair, -outfit-, amazing body, pronounced -genderdescription- feature, busty, kitchen, -haircolor- hair, freckles, flirting with camera";deliberate;official;humanoid;-job-
a -descriptor- baby -subject- made out of -material-, (cyborg:1.1), ([tail | detailed wire]:1.3), (intricate details), hdr, (intricate details, hyperdetailed:1.2), cinematic shot, vignette, centered;deliberate;official;animal;-animal-
-subject-, -culture- era, cinematography, intricately detailed, crafted, meticulous, magnificent, maximum details, extremely hyper aesthetic;deliberate;official;object;-accessory-
-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);deliberate;official;humanoid;-manwoman-
+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);deliberate;official;humanoid;-human-
-subject- with -accessory-, natural skin texture, 24mm, 4k textures, soft cinematic light, adobe lightroom, photolab, hdr, intricate, elegant, highly detailed, sharp focus, ((((cinematic look)))), soothing tones, insane details, intricate details, hyperdetailed, low contrast, soft cinematic light, dim colors, exposure blend, hdr, faded;deliberate;official;humanoid;-human-
a portrait of a laughing, -descriptor-, muscle, -subject-, elder, (hdr:1.28), -hairstyle-, hyperdetailed, cinematic, warm lights, intricate details, hyperrealistic, dark radial background, (muted colors:1.38), (-colorscheme- colors:1.2);deliberate;official;humanoid;-humanoid-
a young -subject-, -location-, -mood-, -hairstyle-, (hdr:1.3), (-colorscheme-:1.2), dramatic, complex background, cinematic, filmic, (rutkowski, artstation:0.8), soaking wet;deliberate;official;humanoid;-manwoman-
From f3966f408d17eef4dc9ce3b994ef66909df06144 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 11:02:34 +0200
Subject: [PATCH 05/15] Create templates.md
in between commit
---
user_guides/templates.md | 64 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 user_guides/templates.md
diff --git a/user_guides/templates.md b/user_guides/templates.md
new file mode 100644
index 0000000..ef00c03
--- /dev/null
+++ b/user_guides/templates.md
@@ -0,0 +1,64 @@
+
+
+
+# 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](https://civitai.com/images/154634?modelVersionId=15236). This is the original image posted:
+
+
+
+> 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:
+
+## 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.
+
+
+
+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](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/override_subject_and_infinite_variations.md) for more information surrounding the override subject.
+
+__"Smart subject"__ has no effect when using prompt templates.
+
+Example:
+
+
+## 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](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/custom_files.md)
+
+Refer to the wildcards here: [guide to using wildcards and Dynamic Prompts](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/wildcards_and_dynamic_prompts_extension.md)
+
+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.
+
+The structure is as following:
+
+_prompt;source;sourcecategory;subjecttype;subjectwildcard_
+
From 0e27be575d7e9374bb4f844bfae76f81a0a0c984 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 11:25:20 +0200
Subject: [PATCH 06/15] Templates description finished
---
user_guides/templates.md | 50 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/user_guides/templates.md b/user_guides/templates.md
index ef00c03..a67e79a 100644
--- a/user_guides/templates.md
+++ b/user_guides/templates.md
@@ -28,6 +28,23 @@ This means that most of the base prompt remains the same, however, some of the p
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.
@@ -58,7 +75,40 @@ You can place a __"templates_addon.csv"__ or a __"templates_replace.csv"__ file
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
+
From 66506a089de3ed5b905188e9cc0a737bda856a6c Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 11:46:08 +0200
Subject: [PATCH 07/15] added templates link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1a8fc0f..e19de52 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ A simple user guide for first time use and settings is available [here](https://
- Add __LoRA's__, customize lists and personal artists choices. ==> [guide to custom files](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/custom_files.md)
- __Compound__ multiple prompts together for unexpected results. ==> [guide to prompt compounder](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/prompt_compounder_and_regional_prompter_to_create_insane_images.md)
- Use __wildcards__, or __combine with Dynamic Prompts__ extension ==> [guide to using wildcards and Dynamic Prompts](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/wildcards_and_dynamic_prompts_extension.md)
-- Has a set of __template prompts__ from various sources, __fully wildcarded__ and usable with Subject Override
+- Has a set of __template prompts__ from various sources, __fully wildcarded__ and usable with Subject Override ==> [guide to prompt templates](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/templates.md)
## How to use in automatic1111
In TXT2IMG or IMG2IMG, select the script "One Button Prompt".
From 4ba549766d4443f826710d560428fb141f0caa2d Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:06:38 +0200
Subject: [PATCH 08/15] Create the_next_generation_img2img_and_controlnet.md
---
..._next_generation_img2img_and_controlnet.md | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 user_guides/the_next_generation_img2img_and_controlnet.md
diff --git a/user_guides/the_next_generation_img2img_and_controlnet.md b/user_guides/the_next_generation_img2img_and_controlnet.md
new file mode 100644
index 0000000..9b1040e
--- /dev/null
+++ b/user_guides/the_next_generation_img2img_and_controlnet.md
@@ -0,0 +1,40 @@
+# Combining One Button Prompt with IMG2IMG and ControlNET
+
+Since One Button Prompt does nothing more than generate a prompt, means we can combine it with most other tools and extensions available. In this document, I'd like to show you some possibilities of using it with IMG2IMG functionality and ControlNET.
+Hopefully this will lead to additional inspiration and new ways to approach these tools.
+
+## Generating skulls with IMG2IMG
+
+In this example, I'm using a picture of a skull found on the internet. I'm using this one, since it has loads of background noise, which can create interesting stuff.
+
+
+
+I load up this image in IMG2IMG. I kept the Denoise strength at 0.75 for this example.
+
+In One Button Prompt, I use the following settings:
+
+As a __"Subject Type"__ I select __"object"__, because we are generating a skull, and a skull is an object. At least, from One Button Prompt's perspective.
+
+For __"Artists"__ I select __"all"__. I want to get surprised, so I leave this to all.
+
+As __"Type of image"__ I select __"portrait"__, so that it will always default to a portrait image. Since we want a close up of the skull, that matches the picture.
+
+As the __"Subject override"__ I write down __skull__, so it will start generating skulls. If you want, you can change this to something else, or leave blank for interesting results.
+
+
+
+Example output images:
+
+
+
+
+> portrait,close up of a Baroque skull, designed by Lamborghini, floating in space, Golden ratio, plain deep yellow background, at Twilight, Ultrarealistic, Golden ratio
+
+> portrait,close up of a Authentic Chinoiserie skull, dark orange and Orange background, Berlin Secession, Rembrandt lighting, Desaturated, made of Concrete, masterpiece
+
+
+
+
+> art by Gail Simone, portrait,close up of a Visually Stimulating Visually Stimulating skull, Sharp details, [garden|jungle], at Sunrise, telephoto lens
+
+> art by Kim Keever, portrait,close up of a Enthralling Tang Dynasty skull, Happy
From 4f351643ac2edc417ca20a8d580ff4cd9d765a63 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:25:53 +0200
Subject: [PATCH 09/15] Update the_next_generation_img2img_and_controlnet.md
added ControlNET stormtrooper images
---
..._next_generation_img2img_and_controlnet.md | 45 +++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/user_guides/the_next_generation_img2img_and_controlnet.md b/user_guides/the_next_generation_img2img_and_controlnet.md
index 9b1040e..6fe77ea 100644
--- a/user_guides/the_next_generation_img2img_and_controlnet.md
+++ b/user_guides/the_next_generation_img2img_and_controlnet.md
@@ -3,6 +3,10 @@
Since One Button Prompt does nothing more than generate a prompt, means we can combine it with most other tools and extensions available. In this document, I'd like to show you some possibilities of using it with IMG2IMG functionality and ControlNET.
Hopefully this will lead to additional inspiration and new ways to approach these tools.
+In these examples, I am all using the [deliberate](https://civitai.com/models/4823/deliberate) model.
+
+I've set the Sampling method to "DPM++ SDE Karras", Sampling steps to "30" and used the standard CFG Scale "7",
+
## Generating skulls with IMG2IMG
In this example, I'm using a picture of a skull found on the internet. I'm using this one, since it has loads of background noise, which can create interesting stuff.
@@ -38,3 +42,44 @@ Example output images:
> art by Gail Simone, portrait,close up of a Visually Stimulating Visually Stimulating skull, Sharp details, [garden|jungle], at Sunrise, telephoto lens
> art by Kim Keever, portrait,close up of a Enthralling Tang Dynasty skull, Happy
+
+## Generating Stormtrooper helmet based images with ControlNET
+In this case, we are going back to using TXT2IMG. Please note, that most of these images came out amazing.
+
+I've configured ControlNET to use this Stormtrooper helmet:
+
+
+
+I've set it to use the __"Depth"__ ControlNET model. In this case I'm using __"depth_midas"__, this is what it defaulted to.
+
+I've set __"Ending Control Step"__ to __0,75__, meaning that ControlNET will stop doing it's thing 75% through all steps.
+
+I'm using the setting __"My prompt is more important"__
+
+
+
+I've set up One Button Prompt to the following settings:
+
+As a __"Subject Type"__ I select __"object"__, however, you could try __all__ to get even wierder results.
+
+For __"Artists"__ I select __"all"__. I want to get surprised, so I leave this to all.
+
+As __"Type of image"__ I select __"all"__, more surprises in store for us.
+
+
+
+Example images:
+
+
+
+
+> art by Kazuo Oga, Golden ratio, Obscene hypercar, concept art, from inside of a Elite Dalaran, Summer, Grim, Auroracore, Sun Rays, Kodak Ektar
+
+> Cycles render, Messy Ecuadorian Volkswagen of Guilt, concept art, Funk Art, bloom, art by Shepard Fairey
+
+
+
+
+> art by Alejandro Burdisio, (art by Alex Schomburg:1.0), voxel art, Alluring Entrancing Castle of Haste, smooth, Folded street, Lens Flare
+
+> art by Vanessa Bell, (art by Jhonen Vasquez:1.0), grand Octane render, Unpredictable Taiwanese Snow plow, intricate details, Smug, Reflected light, matte, Bright design
From 3238fee65fbd2a4d957001010fd15d3adfd3ccdd Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:26:37 +0200
Subject: [PATCH 10/15] Update the_next_generation_img2img_and_controlnet.md
---
user_guides/the_next_generation_img2img_and_controlnet.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/user_guides/the_next_generation_img2img_and_controlnet.md b/user_guides/the_next_generation_img2img_and_controlnet.md
index 6fe77ea..7e9197d 100644
--- a/user_guides/the_next_generation_img2img_and_controlnet.md
+++ b/user_guides/the_next_generation_img2img_and_controlnet.md
@@ -44,7 +44,7 @@ Example output images:
> art by Kim Keever, portrait,close up of a Enthralling Tang Dynasty skull, Happy
## Generating Stormtrooper helmet based images with ControlNET
-In this case, we are going back to using TXT2IMG. Please note, that most of these images came out amazing.
+In this case, we are going back to using TXT2IMG. Please note, that most of these images came out amazing. You can use this trick to win almost anything on \r\sdbattles\
I've configured ControlNET to use this Stormtrooper helmet:
From b5d35f16d3d3f21eb994e2b6dd22c9677755d098 Mon Sep 17 00:00:00 2001
From: AIrjen
Date: Tue, 13 Jun 2023 19:31:31 +0200
Subject: [PATCH 11/15] Small bugfix in object generation
---
build_dynamic_prompt.py | 6 +++---
prompttester.py | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py
index 66c7d01..81138fe 100644
--- a/build_dynamic_prompt.py
+++ b/build_dynamic_prompt.py
@@ -712,14 +712,14 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
if(hybridorswap == "hybrid"):
if(uncommon_dist(insanitylevel)):
- completeprompt += "|" + random.choice(hybridlist) + "] "
+ completeprompt += "|" + random.choice(objectwildcardlist) + "] "
else:
completeprompt += "|"
completeprompt += random.choice(chosenobjectwildcard) + " "
completeprompt += "] "
if(hybridorswap == "swap"):
if(uncommon_dist(insanitylevel)):
- completeprompt += ":" + random.choice(hybridlist) + ":" + str(random.randint(1,5)) + "] "
+ completeprompt += ":" + random.choice(objectwildcardlist) + ":" + str(random.randint(1,5)) + "] "
else:
completeprompt += ":"
completeprompt += chosenobjectwildcard + " "
@@ -1140,7 +1140,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
allwildcardslistnohybrid = [ "-color-","-object-", "-animal-", "-fictional-","-nonfictional-","-building-","-vehicle-","-location-","-conceptprefix-","-food-","-haircolor-","-hairstyle-","-job-", "-accessory-", "-humanoid-", "-manwoman-", "-human-", "-colorscheme-", "-mood-", "-genderdescription-", "-artmovement-", "-malefemale-", "-bodytype-", "-minilocation-", "-minilocationaddition-", "-pose-", "-season-", "-minioutfit-", "-elaborateoutfit-", "-minivomit-", "-vomit-", "-rpgclass-", "-subjectfromfile-", "-brand-"]
allwildcardslistnohybridlists = [colorlist, objectlist, animallist, fictionallist, nonfictionallist, buildinglist, vehiclelist, locationlist,conceptprefixlist,foodlist,haircolorlist, hairstylelist,joblist, accessorielist, humanoidlist, manwomanlist, humanlist, colorschemelist, moodlist, genderdescriptionlist, artmovementlist, malefemalelist, bodytypelist, minilocationlist, minilocationadditionslist, poselist, seasonlist, minioutfitlist, elaborateoutfitlist, minivomitlist, vomitlist, rpgclasslist, customsubjectslist, brandlist]
allwildcardslistwithhybrid = ["-material-", "-descriptor-", "-outfit-", "-conceptsuffix-","-culture-", "-objecttotal-"]
- allwildcardslistwithhybridlists =[materiallist, descriptorlist,outfitlist,conceptsuffixlist,culturelist, objecttotallist]
+ allwildcardslistwithhybridlists = [materiallist, descriptorlist,outfitlist,conceptsuffixlist,culturelist, objecttotallist]
# keywordsinstring = any(word.lower() in givensubject.lower() for word in keywordslist)
for wildcard in allwildcardslistnohybrid:
diff --git a/prompttester.py b/prompttester.py
index aaa9ea5..d90e00d 100644
--- a/prompttester.py
+++ b/prompttester.py
@@ -27,13 +27,13 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print(result)
print("")
- if(result.count("-")>1):
+ if(result.count("-")>1 and imagetype == "only templates"):
print("Is there a mistake in wildcards?")
print("")
print(result)
break
- if(givensubject != "" and givensubject not in result):
+ if(givensubject != "" and givensubject not in result and imagetype == "only templates"):
print("No givensubject, there must be an issue:")
print("")
print(result)
@@ -46,4 +46,4 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("")
print("All done!")
-generateprompts(10,5,"all","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","HELLO")
\ No newline at end of file
+generateprompts(10,5,"all","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","-objecttotal-")
\ No newline at end of file
From 113cefce5a490248174eef158660c18ee30eac88 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Wed, 14 Jun 2023 08:48:24 +0200
Subject: [PATCH 12/15] Adding Pedro Pascal
---
..._next_generation_img2img_and_controlnet.md | 44 +++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/user_guides/the_next_generation_img2img_and_controlnet.md b/user_guides/the_next_generation_img2img_and_controlnet.md
index 7e9197d..49fc7ce 100644
--- a/user_guides/the_next_generation_img2img_and_controlnet.md
+++ b/user_guides/the_next_generation_img2img_and_controlnet.md
@@ -83,3 +83,47 @@ Example images:
> art by Alejandro Burdisio, (art by Alex Schomburg:1.0), voxel art, Alluring Entrancing Castle of Haste, smooth, Folded street, Lens Flare
> art by Vanessa Bell, (art by Jhonen Vasquez:1.0), grand Octane render, Unpredictable Taiwanese Snow plow, intricate details, Smug, Reflected light, matte, Bright design
+
+## Reverse inpainting of Pedro Pascal
+
+One Button prompt can also usefull in inpainting tasks. In this example, I'm going to do what I like to call a "reverse inpaint". This time on the face of Pedro Pascal. Note that this trick will also work on your own face.
+
+First I load up the foto of Pedro Pascal in the Inpaint tab, and then I paint over his face. It doesn't have to be perfect.
+
+Make sure to turn on __"Inpaint not masked"__ so that we replace everything but his face.
+
+I've set __padding__ to __"64"__ and __mask blur__ to __"8"__. __Denoising strength__ is set to __"0.7"__.
+
+
+
+I then load up an inpainting model. Because we are using a photo, I am using the realisticVision inpainting model for this example.
+
+For One Button Prompt, I set the following settings:
+
+As a __"Subject Type"__ I select __"humanoid"__
+
+For __"Artists"__ I select __"portrait"__. This way we get artists to create portraits, which is what we want in this case.
+
+As __"Type of image"__ I select __"all"__, more surprises in store for us. We could use __Portrait__ here as well.
+
+
+Example results:
+
+
+
+
+> Delicate diane lane, Exploring new places, Platinum hair styled as long straight, Glittering Persian cat face paint, Smooth No makeup, Foggy, split diopter, Ultra Detailed, Embarrassing, L USM, Golden ratio, inticrate details, hyperdetailed
+
+> art by Roy Lichtenstein, Redshift render, Fallacious, Vengeful Noble well-endowed Male Actor, Heavenly Blonde hair, Thunderstorm, Lonely, MinecraftCore
+
+
+
+
+
+> art by Rebeca Saray, Infected Inventive Dragonkin, ðŸ™, wearing Striped Satin Pleated skirt and tucked-in blouse, Tang Dynasty Earrings, plain Gold background, horizon-centered, Neo-Fauvism, Direct light, masterpiece
+
+> Jagged stocky Indonesian Father, Exploring new places, Layered cut hair, Pixiecore, 800mm lens, Warm Colors, 8K
+
+### Thank you
+
+Hope to have give you some inspiration on where you could use One Button Prompt as well, in unexpected ways. Your creativity is what unlocks it's power.
From bbcbc6c994cf207994a72b3316c05ddc2190adde Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Wed, 14 Jun 2023 08:50:19 +0200
Subject: [PATCH 13/15] Adding link
---
user_guides/my_first_generation.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/user_guides/my_first_generation.md b/user_guides/my_first_generation.md
index 90e1a45..f7fceec 100644
--- a/user_guides/my_first_generation.md
+++ b/user_guides/my_first_generation.md
@@ -160,3 +160,5 @@ Thanks for reading so far, want more?
Next up is reading [guide to override subject](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/override_subject_and_infinite_variations.md)
This will show you how to generate a set subject, and then One Button Prompt will generate the rest of the prompt around it. This is a very popular feature of One Button Prompt.
+
+You can also go to [guide to IMG2IMG and ControlNET](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/the_next_generation_img2img_and_controlnet.md) to see how it combines with those features.
From 0b4d3800a0466a4c5b7b2f894affe6f111468f29 Mon Sep 17 00:00:00 2001
From: AIrjen <130234949+AIrjen@users.noreply.github.com>
Date: Wed, 14 Jun 2023 08:51:10 +0200
Subject: [PATCH 14/15] Added link to img2img user guide
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e19de52..6ad2abd 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ A simple user guide for first time use and settings is available [here](https://
# Features
- __Full prompt generation__ with the click of a button. ==> [guide to my first generation](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/my_first_generation.md)
-- Supports __TXT2IMG, IMG2IMG, ControlNET, inpainting and latent couple__.
+- Supports __TXT2IMG, IMG2IMG, ControlNET, inpainting and latent couple__. ==> [guide to IMG2IMG and ControlNET](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/the_next_generation_img2img_and_controlnet.md)
- __Workflow assist__, generate multiple prompts with One Button.
- Create __infinite variations__ of a __chosen subject__. ==> [guide to override subject](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/override_subject_and_infinite_variations.md)
- Fully __automated generation, classification and upscaling__. ==> [guide to one_button_run_and_upscale](https://github.com/AIrjen/OneButtonPrompt/blob/main/user_guides/one_button_run_and_upscale.md)
From dbb4384be7df24d258b9461ccfdc10f2e04c11b5 Mon Sep 17 00:00:00 2001
From: AIrjen
Date: Wed, 14 Jun 2023 09:03:47 +0200
Subject: [PATCH 15/15] Some more concepts added
---
csvfiles/concept_prefix.csv | 19 ++++++++++++++++++-
csvfiles/concept_suffix.csv | 21 ++++++++++++++++++++-
2 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/csvfiles/concept_prefix.csv b/csvfiles/concept_prefix.csv
index 554316b..834fd72 100644
--- a/csvfiles/concept_prefix.csv
+++ b/csvfiles/concept_prefix.csv
@@ -112,4 +112,21 @@ Anomaly
Vortex
Ripple
Swarm
-Aurora
\ No newline at end of file
+Aurora
+Champion
+Monolith
+Whirlwind
+Terrain
+Eternal
+Spell
+System
+Titan
+Decor
+Gem
+Liquid
+Suburban
+Dread
+Element
+Magic
+Underworld
+Bird
\ No newline at end of file
diff --git a/csvfiles/concept_suffix.csv b/csvfiles/concept_suffix.csv
index 1eb84cb..35fe82e 100644
--- a/csvfiles/concept_suffix.csv
+++ b/csvfiles/concept_suffix.csv
@@ -88,4 +88,23 @@ Invasion
Conflux
Paradox
Resonance
-Victory
\ No newline at end of file
+Victory
+Dismal
+Grace
+Luxury
+Radiance
+Opulence
+Frenzy
+Apocalypse
+Crushing
+Joy
+Happyness
+Explosions
+Treachery
+Horror
+Macabre
+Miracles
+Charm
+Structure
+Embellishment
+Prey
\ No newline at end of file