Merge pull request #55 from AIrjen/I_love_eric_richards_update

I love eric richards update
This commit is contained in:
AIrjen
2023-06-25 19:33:11 +02:00
committed by GitHub
7 changed files with 91 additions and 14 deletions
+75 -8
View File
@@ -94,6 +94,12 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
elif(artists != "none"):
artistlist = csv_to_list("artists",antilist)
# create special artists lists, used in templates
fantasyartistlist = artist_category_csv_to_list("artists_and_category","fantasy")
popularartistlist = artist_category_csv_to_list("artists_and_category","popular")
romanticismartistlist = artist_category_csv_to_list("artists_and_category","romanticism")
photographyartistlist = artist_category_csv_to_list("artists_and_category","photography")
# add any other custom lists
stylestiloralist = csv_to_list("styles_ti_lora",antilist,"./userfiles/")
@@ -537,13 +543,14 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# targettemplateenvironment: either civitai model or website
# templateenvironmentsources: either
templateprompts = [templateprompt[0] for templateprompt in templatelist if( (templateprompt[1] == targettemplateenvironment or targettemplateenvironment =="all") and (templateprompt[2] == templateenvironmentsources or templateenvironmentsources == "all") and (templateprompt[3] == forcesubject or forcesubject == "all") ) ]
templatepromptcreator = [templateprompt[1] for templateprompt in templatelist if( (templateprompt[1] == targettemplateenvironment or targettemplateenvironment =="all") and (templateprompt[2] == templateenvironmentsources or templateenvironmentsources == "all") and (templateprompt[3] == forcesubject or forcesubject == "all") ) ]
templatesubjects= [templateprompt[4] for templateprompt in templatelist if( (templateprompt[1] == targettemplateenvironment or targettemplateenvironment =="all") and (templateprompt[2] == templateenvironmentsources or templateenvironmentsources == "all") and (templateprompt[3] == forcesubject or forcesubject == "all") )]
# choose the template
chosentemplate = random.choice(templateprompts)
templateindex = templateprompts.index(chosentemplate)
print("Processing a prompt that was inspired from: " + templatepromptcreator[templateindex])
# if there is a subject override, then replace the subject with that
if(givensubject==""):
@@ -870,7 +877,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# start shot size
if(mainchooser in ["object", "animal", "humanoid", "concept"] and othertype == 0 and "portrait" not in completeprompt and generateshot == True and uncommon_dist(insanitylevel)):
completeprompt += random.choice(shotsizelist) + " of a "
completeprompt += "-shotsize- of a "
elif("portrait" in completeprompt and generateshot == True):
completeprompt += " ,close up of a "
elif(mainchooser in ["landscape"] and generateshot == True):
@@ -1101,7 +1108,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# SD understands emoji's. Can be used to manipulate facial expressions.
# emoji, legendary
if(subjectchooser in ["animal as human,","human","fictional", "non fictional", "humanoid"] and legendary_dist(insanitylevel) and generateemoji== True):
completeprompt += random.choice(emojilist) + ", "
completeprompt += "-emoji-, "
# cosplaying
@@ -1162,7 +1169,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# landscapes it is nice to always have a time period
if(normal_dist(insanitylevel) or subjectchooser=="landscape"):
if(generatetimeperiod == True):
completeprompt += random.choice(timeperiodlist) + ", "
completeprompt += "-timeperiod-, "
if(mainchooser not in ["landscape"] and rare_dist(insanitylevel) and generatefocus == True):
completeprompt += random.choice(focuslist) + ", "
@@ -1470,9 +1477,68 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# 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 or "-subjectfromfile-" in completeprompt or "-brand-" in completeprompt or "-space-" in completeprompt or "-artist-" in completeprompt or "-imagetype-" in completeprompt or "-othertype-" in completeprompt or "-quality-" in completeprompt or "-lighting-" in completeprompt or "-camera-" in completeprompt or "-lens-" in completeprompt or "-imagetypequality-" in completeprompt or "-poemline-" in completeprompt or "-songline-" in completeprompt or "-greatwork-" 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-", "-brand-", "-space-", "-artist-", "-imagetype-", "-othertype-", "-quality-", "-lighting-", "-camera-", "-lens-","-imagetypequality-", "-poemline-", "-songline-", "-greatwork-"]
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, spacelist, artistlist, imagetypelist, othertypelist, qualitylist, lightinglist, cameralist, lenslist, imagetypequalitylist, poemlinelist, songlinelist, greatworklist]
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 or
"-brand-" in completeprompt or
"-space-" in completeprompt or
"-artist-" in completeprompt or
"-imagetype-" in completeprompt or
"-othertype-" in completeprompt or
"-quality-" in completeprompt or
"-lighting-" in completeprompt or
"-camera-" in completeprompt or
"-lens-" in completeprompt or
"-imagetypequality-" in completeprompt or
"-poemline-" in completeprompt or
"-songline-" in completeprompt or
"-greatwork-" in completeprompt or
"-artistfantasy-" in completeprompt or
"-artistpopular-" in completeprompt or
"-artistromanticism-" in completeprompt or
"-artistphotography-" in completeprompt or
"-emoji-" in completeprompt or
"-timeperiod-" in completeprompt or
"-shotsize-" 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-", "-brand-", "-space-", "-artist-", "-imagetype-", "-othertype-", "-quality-", "-lighting-", "-camera-", "-lens-","-imagetypequality-", "-poemline-", "-songline-", "-greatwork-", "-artistfantasy-", "-artistpopular-", "-artistromanticism-", "-artistphotography-", "-emoji-", "-timeperiod-", "-shotsize-"]
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, spacelist, artistlist, imagetypelist, othertypelist, qualitylist, lightinglist, cameralist, lenslist, imagetypequalitylist, poemlinelist, songlinelist, greatworklist, fantasyartistlist, popularartistlist, romanticismartistlist, photographyartistlist, emojilist, timeperiodlist, shotsizelist]
allwildcardslistwithhybrid = ["-material-", "-descriptor-", "-outfit-", "-conceptsuffix-","-culture-", "-objecttotal-"]
allwildcardslistwithhybridlists = [materiallist, descriptorlist,outfitlist,conceptsuffixlist,culturelist, objecttotallist]
@@ -1574,7 +1640,8 @@ def cleanup(completeprompt):
completeprompt = re.sub('of a of a', 'of a', completeprompt)
completeprompt = re.sub('(?<!\()\s?\(', ' (', completeprompt)
completeprompt = re.sub('\)(?![\s)])', ') ', completeprompt)
completeprompt = completeprompt.strip(", ")
+2 -1
View File
@@ -29,4 +29,5 @@ The Hunger Games
Pirates of the Caribbean
Star Trek
Studio Ghibli
Akira manga
Akira manga
Ikea
1 Gucci
29 Pirates of the Caribbean
30 Star Trek
31 Studio Ghibli
32 Akira manga
33 Ikea
+2 -1
View File
@@ -610,4 +610,5 @@ Robotic
Cyborgy
Fierce
Bizarre
-space-
-space-
Charred
1 Handsome
610 Cyborgy
611 Fierce
612 Bizarre
613 -space-
614 Charred
+2 -1
View File
@@ -157,4 +157,5 @@ Horse riding
Rowing
Sailing
Triathlon
-animal-back riding
-animal-back riding
having a tea party
1 Running
157 Rowing
158 Sailing
159 Triathlon
160 -animal-back riding
161 having a tea party
+5 -1
View File
@@ -33,4 +33,8 @@ Regret
Suffering
Flustered
Confused
Smug
Smug
Smiling
Smirking
Screaming
Crying
1 Amusing
33 Suffering
34 Flustered
35 Confused
36 Smug
37 Smiling
38 Smirking
39 Screaming
40 Crying
+4 -1
View File
@@ -498,4 +498,7 @@ Upper body portrait of -descriptor- -malefemale- -subject-, -hairstyle- -haircol
-subject- as a -descriptor- -culture- -rpgclass-, -descriptor-, portrait, Symmetrical, powerful, intricate, beautiful, masterpiece, elegant, volumetric lighting, back lighting, dramatic lighting, highly detailed, artstation, sharp focus, illustration, Artgerm, Jean-Léon Gérôme , ruan jia;openart;gallery;humanoid;-human-
-culture- -rpgclass- -subject-, character design, league of legends, valorant, riot games, dota, full body concept art, detailed;openart;gallery;humanoid;-job-
Closeup face portrait of a -descriptor- -malefemale- -culture- -subject-, -haircolor- hair, -fictional- headdress, smooth soft skin, big dreamy eyes, beautiful intricate jeweled hair, symmetrical, anime wide eyes, soft lighting, detailed face, by makoto shinkai, stanley artgerm lau, wlop, rossdraws, boris, sorayama, concept art, digital painting, looking into camera, straight on, 4k, hyperrealistic;openart;gallery;humanoid;-job-
magical -subject- of -culture- glowing in universe -space-, octane render, 8k, extremely detailed;openart;gallery;object;-building-
magical -subject- of -culture- glowing in universe -space-, octane render, 8k, extremely detailed;openart;gallery;object;-building-
Epic -artist- [detailed color pencil:photo shoot:0.3] by -artistfantasy- and (-artistromanticism-:0.5) and (-artistromanticism-:0.5), HQ, 8K, hyper detailed, The -subject- surrounded by -objecttotal-s (face looking -mood-:1.5), -descriptor-, -descriptor-, -descriptor-, -timeperiod-, timeless realization of the facts of life and our time is limited on this earth, Action, cinematic dramatic lighting, bokeh, shot on Canon 5D,masterpiece [oil painting:hyperrealism:0.3] in the style of (-artistphotography-:0.5);eric richards;offical;humanoid;-malefemale-
Epic realistic [detailed color pencil:photo shoot:0.3] by -artist- and (-artistfantasy-:0.5) and (-artistromanticism-:0.5) The beautiful -descriptor- -subject- surrounded by -descriptor- -objecttotal-s (face looking -mood-:1.2), -descriptor-, -descriptor-, -descriptor-, -timeperiod-, -location-, action shot -pose-, Action, cinematic dramatic lighting, dark, high contrast, bokeh, HQ, 8K, HDR, hyper detailed, -shotsize-, photograph shot on -camera-, masterpiece [oil painting:hyperrealism:0.3] photo in the style of (-artistphotography-:0.5);eric richards;offical;humanoid;-malefemale-
-imagetypequality- 16k, 8k, 4k, 4k UHD, ultra HDR, perfect quality, insane quality, extreme quality, intricate, ultra quality, super quality, perfect detail, very high detail, insanely detailed, extremely detailed, intricate detail, ultra detail, super detail, perfect resolution, very high resolution, insane resolution, (cinematic shot:1.6), depth of field, rule of thirds, ((-artmovement-)) , (masterpiece art by -artist- ) and (-artistromanticism-:0.25) of -poemline- -descriptor- beautiful -subject- (face looking -mood-:1.3) surrounded by -objecttotal-s while -songline-, -timeperiod-, -descriptor-, -descriptor-, -descriptor-, cinematic dramatic lighting, bokeh, HQ, sharp focus, -shotsize-, DSLR photo, -imagetype-;eric richards;offical;humanoid;-malefemale-
Can't render this file because it contains an unexpected character in line 224 and column 11.
+1 -1
View File
@@ -46,4 +46,4 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("")
print("All done!")
generateprompts(10,9,"humanoid","all","unique art mode",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","",True,"",100)
generateprompts(10,9,"humanoid","all","only templates mode",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","",True,"",100)