From f233cb8fa2117e8ba4730a0b01bd6683f4e33f74 Mon Sep 17 00:00:00 2001 From: AIrjen Date: Thu, 8 Jun 2023 22:39:24 +0200 Subject: [PATCH] minor additions --- build_dynamic_prompt.py | 12 +++++++----- csvfiles/imagetypes.csv | 3 ++- csvfiles/minivomit.csv | 3 ++- csvfiles/templates/templates.csv | 24 +++++++++++++++++++++++- csvfiles/vomit.csv | 3 ++- prompttester.py | 2 +- random_functions.py | 2 +- userfiles/custom_subjects_sample.csv | 2 ++ 8 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 userfiles/custom_subjects_sample.csv diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index b0d1dc4..ffd8901 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -103,6 +103,8 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all custominputsuffixlist = csv_to_list("custom_input_suffix",antilist,"./userfiles/") generatecustominputsuffix = bool(custominputsuffixlist) # True of not empty + customsubjectslist = csv_to_list("custom_subjects",antilist,"./userfiles/") + # special lists backgroundtypelist = csv_to_list("backgroundtypes", antilist,"./csvfiles/special_lists/") insideshotlist = csv_to_list("insideshots", antilist,"./csvfiles/special_lists/") @@ -218,9 +220,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all if(generateconcept): mainchooserlist.append("concept") - # determine wether we should go for a template or not + # determine wether we should go for a template or not. Not hooked up to insanitylevel templatemode = False - if(rare_dist(insanitylevel) or imagetype == "only templates"): + if(random.randint(1, 20) == 1 or imagetype == "only templates"): templatemode = True @@ -1120,9 +1122,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all # completeprompt = completeprompt.replace('-outfit-', hybridorswapreplacementvalue,1) # lol, this needs a rewrite :D - while "-color-" in completeprompt or "-material-" in completeprompt or "-animal-" in completeprompt or "-object-" in completeprompt or "-fictional-" in completeprompt or "-nonfictional-" in completeprompt or "-conceptsuffix-" in completeprompt or "-building-" in completeprompt or "-vehicle-" in completeprompt or "-outfit-" in completeprompt or "-location-" in completeprompt or "-conceptprefix-" in completeprompt or "-descriptor-" in completeprompt or "-food-" in completeprompt or "-haircolor-" in completeprompt or "-hairstyle-" in completeprompt or "-job-" in completeprompt or "-culture-" in completeprompt or "-accessory-" in completeprompt or "-humanoid-" in completeprompt or "manwoman" in completeprompt or "-human-" in completeprompt or "-colorscheme-" in completeprompt or "-mood-" in completeprompt or "-genderdescription-" in completeprompt or "-artmovement-" in completeprompt or "-malefemale-" in completeprompt or "-objecttotal-" in completeprompt or "-bodytype-" in completeprompt or "-minilocation-" in completeprompt or "-minilocationaddition-" in completeprompt or "-pose-" in completeprompt or "-season-" in completeprompt or "-minioutfit-" in completeprompt or "-elaborateoutfit-" in completeprompt or "-minivomit-" in completeprompt or "-vomit-" in completeprompt or "-rpgclass-" in completeprompt: - 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-"] - 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] + while "-color-" in completeprompt or "-material-" in completeprompt or "-animal-" in completeprompt or "-object-" in completeprompt or "-fictional-" in completeprompt or "-nonfictional-" in completeprompt or "-conceptsuffix-" in completeprompt or "-building-" in completeprompt or "-vehicle-" in completeprompt or "-outfit-" in completeprompt or "-location-" in completeprompt or "-conceptprefix-" in completeprompt or "-descriptor-" in completeprompt or "-food-" in completeprompt or "-haircolor-" in completeprompt or "-hairstyle-" in completeprompt or "-job-" in completeprompt or "-culture-" in completeprompt or "-accessory-" in completeprompt or "-humanoid-" in completeprompt or "manwoman" in completeprompt or "-human-" in completeprompt or "-colorscheme-" in completeprompt or "-mood-" in completeprompt or "-genderdescription-" in completeprompt or "-artmovement-" in completeprompt or "-malefemale-" in completeprompt or "-objecttotal-" in completeprompt or "-bodytype-" in completeprompt or "-minilocation-" in completeprompt or "-minilocationaddition-" in completeprompt or "-pose-" in completeprompt or "-season-" in completeprompt or "-minioutfit-" in completeprompt or "-elaborateoutfit-" in completeprompt or "-minivomit-" in completeprompt or "-vomit-" in completeprompt or "-rpgclass-" in completeprompt or "-subjectfromfile-" in completeprompt: + 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-"] + 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] allwildcardslistwithhybrid = ["-material-", "-descriptor-", "-outfit-", "-conceptsuffix-","-culture-", "-objecttotal-"] allwildcardslistwithhybridlists =[materiallist, descriptorlist,outfitlist,conceptsuffixlist,culturelist, objecttotallist] diff --git a/csvfiles/imagetypes.csv b/csvfiles/imagetypes.csv index 61925fa..67887f0 100644 --- a/csvfiles/imagetypes.csv +++ b/csvfiles/imagetypes.csv @@ -33,4 +33,5 @@ Abstract Fractal portrait Raw digital photo -Airbrush painting \ No newline at end of file +Airbrush painting +On pale black paper \ No newline at end of file diff --git a/csvfiles/minivomit.csv b/csvfiles/minivomit.csv index 904eaeb..b14534c 100644 --- a/csvfiles/minivomit.csv +++ b/csvfiles/minivomit.csv @@ -16,4 +16,5 @@ concept art (-color- theme:0.7) Golden ratio Rule of Thirds -awardwinning \ No newline at end of file +awardwinning +stylized \ No newline at end of file diff --git a/csvfiles/templates/templates.csv b/csvfiles/templates/templates.csv index aced352..641b7f7 100644 --- a/csvfiles/templates/templates.csv +++ b/csvfiles/templates/templates.csv @@ -321,6 +321,7 @@ oil painting with heavy impasto of a -culture- -subject- and its -job-, cosmic h -subject- dressed as storm trooper, -outfit-, starship background, (((full body visible))), looking at viewer, portrait, photography, detailed skin, realistic, photo-realistic, 8k, highly detailed, full length frame, High detail RAW color art, piercing, diffused soft lighting, shallow depth of field, sharp focus, hyperrealism, cinematic lighting;prompthero;gallery;humanoid;-human- ultra realistic photo portrait of -subject- cosmic energy, colorful, painting burst, beautiful symmetrical face, nonchalant kind look, realistic round eyes, tone mapped, intricate, elegant, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, dreamy magical atmosphere, art by artgerm and greg rutkowski and alphonse mucha, 4k, 8k;prompthero;gallery;humanoid;-human- -artmovement-, -subject-, star wars setting;prompthero;gallery;humanoid;-fictional- +magical -subject-, -haircolor- long hair, sparkle, vibrant, bioluminescence, 8k;prompthero;gallery;humanoid;-human- portrait of -subject-, pen and ink, intricate line drawings, by craig mullins, ruan jia, kentaro miura, greg rutkowski;prompthero;gallery;humanoid;-fictional- ((tarot card with intricate detailed frame around the outside)), side profile of -descriptor- head of -subject- with large moon in background, -descriptor-, styled in Art Nouveau, insanely detailed,embellishments, high definition, concept art,digital art, vibrant;prompthero;gallery;humanoid;-manwoman- -subject-, high ornamented light -minioutfit-, fluffy fur, foggy, wet, stormy, 70mm, cinematic, highly detailed;prompthero;gallery;animal;-animal- @@ -416,4 +417,25 @@ a -subject-, nightly, spiral, naive nerikomi, weird perspective, extra narrow, d -subject-. highly detailed, digital painting, watercolor, soviet realism, engraving, artstation, concept art, smooth, sharp focus, vivid grunge, manga, illustration, unreal engine 5, 8k, art by bilibin and kilian eng and kuvshinov and malevich and mucha;replicable;gallery;animal;-animal- digital illustration of a -subject- flowing through a vibrant alien landscape, art by Junji Ito, Cyril Rolando, Pablo Amaringo, M.W Kaluta, Victo Ngai and Caspar David Friedrich, colorful alien flora, wide angle, panoramic, fantasy, 8k resolution, deviantart, trending on Artstation, concept art, Terragen, HDR, Octane;replicable;gallery;landscape;-location- a beautiful artwork illustration, -object- hovering around breathtaking clouds, high contrast, high contrast, high contrast, vibrant colors, vivid colors, high saturation, by Greg Rutkowski and Jesper Ejsing and Raymond Swanland, featured on artstation, wide angle, vertical orientation;replicable;gallery;object;-vehicle- -appealing naturalistic portrait of a -descriptor- -descriptor- -subject- -rpgclass- -rpgclass-, representational earth tones, stunning clarity experimental cut paper mixed media blotchy character shape design by masaaki yuasa, pleasing palette watercolor masterpiece;replicable;gallery;humanoid;-human- \ No newline at end of file +appealing naturalistic portrait of a -descriptor- -descriptor- -subject- -rpgclass- -rpgclass-, representational earth tones, stunning clarity experimental cut paper mixed media blotchy character shape design by masaaki yuasa, pleasing palette watercolor masterpiece;replicable;gallery;humanoid;-human- +many -subject- doodle art style, colorful,tattoo;lexica;gallery;animal;-animal- +-subject-, in the style of adrian ghenie, esao andrews, jenny saville, edward hopper, surrealism, dark art by james jean, takato yamamoto, inkpunk minimalism;lexica;gallery;concept;the -conceptprefix- of -conceptsuffix- +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- +a -descriptor- anthropomorphic -subject- smiling, accurate, unreal engine, 4k;lexica;gallery;object;-objecttotal- +A -descriptor- -culture- -subject- in a -minilocationaddition-, -colorscheme-;lexica;gallery;animal;-animal- +-culture- -subject- wearing -descriptor- -outfit-, cartoon character;lexica;gallery;humanoid;-manwoman- +-descriptor- terrarium with a little -subject-;lexica;gallery;object;-objecttotal- +pen and ink, illustrated by hergé, Background space and earth. . Sadness.;lexica;gallery;concept;the -conceptprefix- of -conceptsuffix- +A -descriptor- -descriptor- baby -subject- made of crystal ball with low poly eye's highly detailed intricated concept art trending artstation 8k;lexica;gallery;animal;-animal- +60s cartoon style photo of a -descriptor- -descriptor- -subject- in far off galaxy, style of Hannah Barbara, studio ghibli, akira toriyama, james gilleard, warner brothers, trending pixiv fanbox, acrylic palette knife, 8k, -colorscheme-, deviantart, trending on artstation, low details, smooth;lexica;gallery;humanoid;-job- +-descriptor- drawing like a -descriptor- -subject- with a daisy in hand, vector illustration for coloring book, black line art with white background;lexica;gallery;humanoid;-human- +-subject- chef making -food-, manga style, surreal;lexica;gallery;animal;-animal- +photo of a baby -subject- in the -minilocationaddition-, style of laurie greasley, studio ghibli, akira toriyama, james gilleard, genshin impact, trending pixiv fanbox, acrylic palette knife, 4k, vibrant colors, deviantart, trending on artstation, low details;lexica;gallery;animal;-animal- +colorful, -subject-s and -objectotal-s on pale black paper, very detailed illustration, sketch, concept art, ink outlines, smooth;lexica;gallery;animal;-animal- +landscape of -culture- countryside, coloring book, black and white, stars, black sky, clean lines, detailed, magical, van gogh style, wavy pattern;lexica;gallery;landscape;-culture- +a -subject- figurine super detailed colored pencil drawing with fluo colors;lexica;gallery;animal;-animal- +maximalist chaotic -subject-, birds eye view, illustrated by Hergé, style of tin tin comics, pen and ink;lexica;gallery;landscape;-location- +pixel art -subject-. 3d pixel art 4k wallpaper. incredible pixel art details. flowers. pixel art. lots of flowers in foreground;lexica;gallery;landscape;-location- +-descriptor- -subject- -culture- -artmovement- style. at an -location-;lexica;gallery;animal;-animal- +cartoon -subject- drawn in a simple style in -colorscheme- for children;lexica;gallery;animal;-animal- +-subject-, game asset, top down, centered, plain background;lexica;gallery;object;-objecttotal- \ No newline at end of file diff --git a/csvfiles/vomit.csv b/csvfiles/vomit.csv index ee30072..58ccc03 100644 --- a/csvfiles/vomit.csv +++ b/csvfiles/vomit.csv @@ -90,4 +90,5 @@ de dia los muertos otherworldly cosmic energy dreamy magical atmosphere --color- sky \ No newline at end of file +-color- sky +stylized \ No newline at end of file diff --git a/prompttester.py b/prompttester.py index c05b706..29a2657 100644 --- a/prompttester.py +++ b/prompttester.py @@ -46,4 +46,4 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im print("") print("All done!") -generateprompts(10,5,"humanoid","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","HELLO") \ No newline at end of file +generateprompts(10,5,"all","all","templates only",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","HELLO") \ No newline at end of file diff --git a/random_functions.py b/random_functions.py index 6440cd5..f8adf7b 100644 --- a/random_functions.py +++ b/random_functions.py @@ -9,7 +9,7 @@ def uncommon_dist(insanitylevel): return (random.randint(1, 18)= 10) def rare_dist(insanitylevel): - roll = (random.randint(1, 30)= 11) + roll = (random.randint(1, 30)= 10) if(roll): print("adding something rare to the prompt") return roll diff --git a/userfiles/custom_subjects_sample.csv b/userfiles/custom_subjects_sample.csv new file mode 100644 index 0000000..55fa011 --- /dev/null +++ b/userfiles/custom_subjects_sample.csv @@ -0,0 +1,2 @@ +cat +dog \ No newline at end of file