@@ -16,14 +16,14 @@ 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)
|
||||
- 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".
|
||||
|
||||
@@ -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:
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -112,4 +112,21 @@ Anomaly
|
||||
Vortex
|
||||
Ripple
|
||||
Swarm
|
||||
Aurora
|
||||
Aurora
|
||||
Champion
|
||||
Monolith
|
||||
Whirlwind
|
||||
Terrain
|
||||
Eternal
|
||||
Spell
|
||||
System
|
||||
Titan
|
||||
Decor
|
||||
Gem
|
||||
Liquid
|
||||
Suburban
|
||||
Dread
|
||||
Element
|
||||
Magic
|
||||
Underworld
|
||||
Bird
|
||||
|
@@ -88,4 +88,23 @@ Invasion
|
||||
Conflux
|
||||
Paradox
|
||||
Resonance
|
||||
Victory
|
||||
Victory
|
||||
Dismal
|
||||
Grace
|
||||
Luxury
|
||||
Radiance
|
||||
Opulence
|
||||
Frenzy
|
||||
Apocalypse
|
||||
Crushing
|
||||
Joy
|
||||
Happyness
|
||||
Explosions
|
||||
Treachery
|
||||
Horror
|
||||
Macabre
|
||||
Miracles
|
||||
Charm
|
||||
Structure
|
||||
Embellishment
|
||||
Prey
|
||||
|
@@ -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-
|
||||
|
||||
|
+3
-3
@@ -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")
|
||||
generateprompts(10,5,"all","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","-objecttotal-")
|
||||
@@ -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.
|
||||
|
||||

|
||||
|
||||
@@ -79,42 +80,85 @@ 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
|
||||
|
||||
## 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.
|
||||
## 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"
|
||||
I've set the Widht 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 __"humanoid"__. This model likes to generate humans as well.
|
||||
|
||||
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 an artist, because we want to activate the anime-2.5D style.
|
||||
|
||||
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"__ I select __"all"__, we do want to get some surprises.
|
||||
|
||||
As "Type of image" I select "concept art", because we want some cool concept art to show up.
|
||||
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.
|
||||
|
||||
As an addition, I am also filling in the prompt prefix field with "dreamlikeart, sci-fi animal"
|
||||
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.
|
||||
|
||||
"dreamlikeart" is the triggerword of the dreamlike diffusion model, so we want to add that as the start
|
||||
|
||||
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.
|
||||
|
||||

|
||||

|
||||
|
||||
Examples:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/52714307-a2f6-4a22-a011-a1752f2e8523.png" alt="click!" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/375c0995-cade-46c8-8a92-d093aa6cb2d6.png" alt="click!" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/660e5184-9ac0-4cfd-bd80-f6c959023af8.png" alt="Nice BB-8" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/2ea33957-4886-418d-bfec-a4a660cca84f.png" width="30%" height="30%">
|
||||
|
||||
> 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
|
||||
> ((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
|
||||
|
||||
> 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)
|
||||
> ((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
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/6e23079a-1981-4707-8058-ff8acd474666.png" alt="click!" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/15a11263-a9db-42c2-a8da-cae63479c802.png" alt="click!" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/b6c25a09-5bf3-45ac-a205-aeeb88ce892f.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/35bcc983-1a4b-4f0d-8d40-7a773d276e57.png" width="30%" height="30%">
|
||||
|
||||
> 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
|
||||
> ((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
|
||||
|
||||
> 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
|
||||
> ((best quality)), ((masterpiece)), (detailed), Exceptional slender Salvadoran Male Musician, Award-Winning Gray hair, plain background, Qajar Art, Low shutter
|
||||
|
||||
## 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"
|
||||
You can increase the batch count, to keep creating new images.
|
||||
|
||||
As a __"Subject Type"__ I select __"animal"__. I want to generate some animals in the art.
|
||||
|
||||
For __"Artists"__ I select __"none"__. I don't want any interference from adding an artist. We put our own artist in.
|
||||
|
||||
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. 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.
|
||||
|
||||

|
||||
|
||||
Example:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/19f2ddeb-473e-4c32-a09e-913fa9477911.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/f9f0a954-30ef-421d-97e6-8022c2fd6cff.png" width="30%" height="30%">
|
||||
|
||||
> wall graffiti, doodle art of a Celestial Extraordinary Exotic Shorthair cat, Titan, Anime screencap, Embarrassing, 80mm, art by Loish
|
||||
|
||||
> wall graffiti, doodle art of a Misshapen Cyclops, Hazy conditions, Ultra Detailed, Peaceful, Agfacolor, art by Loish
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/afecb619-8774-402d-be1f-82025652b369.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/d77fd449-8f2d-4ec2-9101-d4b47bbcbb72.png" width="30%" height="30%">
|
||||
|
||||
> wall graffiti, doodle art of a Dreadful Lobster, background is Unforgettable The Burning Bush, 800mm lens, CMYK Colors, art by Loish
|
||||
|
||||
> wall graffiti, doodle art of a Tedious Sheep, at Overcast, masterpiece, F/8, Grayscale, art by Loish
|
||||
|
||||
## 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.
|
||||
|
||||
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.
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||

|
||||
|
||||
|
||||
# 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:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/a69d544f-ee25-41a5-b833-537f4dfea0e4.png" alt="original image" width="30%" height="30%">
|
||||
|
||||
> 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:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/613e44a1-593e-4b14-8989-98c62ab62fa5.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/b370fbd2-54dc-4802-8eb9-b9f535268a7d.png" width="30%" height="30%">
|
||||
|
||||
|
||||
> 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)
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/55399398-6dc1-4786-8c43-8a6da99837ec.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/213a89b4-abb9-40f9-8527-ded7c374ab41.png" width="30%" height="30%">
|
||||
|
||||
> 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.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||
### 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
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
# 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.
|
||||
|
||||
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.
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/11ac825c-0fe2-43cb-87b4-9a6178c26bc2.png" width="30%" height="30%">
|
||||
|
||||
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:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/9b533d89-3430-4bf0-896c-330bcfebda6b.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/b342011d-763f-4eb8-9955-ebc8fcb43f8d.png" width="30%" height="30%">
|
||||
|
||||
> 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
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/bc5927bf-4ee3-4d72-85ed-08a6c687f7a4.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/e1ce4fde-3e47-4928-a7c5-0af6ad165e49.png" width="30%" height="30%">
|
||||
|
||||
> 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. You can use this trick to win almost anything on \r\sdbattles\
|
||||
|
||||
I've configured ControlNET to use this Stormtrooper helmet:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/03308730-a63e-4498-83e5-a35a0b7f8f16.png" width="30%" height="30%">
|
||||
|
||||
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:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/41155745-41d9-4e43-b11a-3c3cc8b121d7.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/e9e1e341-256a-4b1e-8768-8bdd05afe7bf.png" width="30%" height="30%">
|
||||
|
||||
> 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
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/17441442-5a89-46dd-95e2-a8f22f1baa79.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/2aafbd76-93f8-49a6-8161-f418675a5428.png" width="30%" height="30%">
|
||||
|
||||
> 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:
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/3a1bda43-cb16-4aa4-9b43-728de8cec095.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/f5d09f3f-184f-42d8-b552-62e5a1bb8cfb.png" width="30%" height="30%">
|
||||
|
||||
> 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
|
||||
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/9656b7bf-d2da-41b1-ae7e-683930d588fe.png" width="30%" height="30%">
|
||||
<img src="https://github.com/AIrjen/OneButtonPrompt/assets/130234949/1b616147-6a3b-40b2-bcbd-d5c17796d654.png" width="30%" height="30%">
|
||||
|
||||
|
||||
> 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.
|
||||
Reference in New Issue
Block a user