Adding !!fun!!

This commit is contained in:
AIrjen
2023-10-15 16:23:16 +02:00
parent 71b7b59069
commit b87290d6ea
13 changed files with 1123 additions and 685 deletions
+41 -6
View File
@@ -43,6 +43,10 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
heshelist = ["it"]
hisherlist = ["its"]
himherlist = ["it"]
# we also need to oppositegender for some fun!
oppositegender = "male"
if(gender=="male"):
oppositegender = "female"
# build all lists here
@@ -52,6 +56,8 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
objectlist = csv_to_list("objects",antilist)
fictionallist = csv_to_list(csvfilename="fictional characters",antilist=antilist,skipheader=True,gender=gender)
nonfictionallist = csv_to_list(csvfilename="nonfictional characters",antilist=antilist,skipheader=True,gender=gender)
oppositefictionallist = csv_to_list(csvfilename="fictional characters",antilist=antilist,skipheader=True,gender=oppositegender)
oppositenonfictionallist = csv_to_list(csvfilename="nonfictional characters",antilist=antilist,skipheader=True,gender=oppositegender)
conceptsuffixlist = csv_to_list("concept_suffix",antilist)
buildinglist = csv_to_list("buildings",antilist)
vehiclelist = csv_to_list("vehicles",antilist)
@@ -133,6 +139,20 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
basicbitchdescriptorlist = csv_to_list("basicbitchdescriptors",antilist)
animaldescriptorlist = csv_to_list("animaldescriptors",antilist)
# descriptorlist becomes one with everything
descriptortotallist = descriptorlist + outfitdescriptorlist + hairdescriptorlist + humandescriptorlist + locationdescriptorlist + basicbitchdescriptorlist + animaldescriptorlist
# Deduplicate the list while preserving casings
descriptorlist = []
seen_items = set()
for item in descriptortotallist:
# Convert the item to lowercase to ignore casing
item_lower = item.lower()
if item_lower not in seen_items:
seen_items.add(item_lower)
descriptorlist.append(item)
humanlist = fictionallist + nonfictionallist + humanoidlist
objecttotallist = objectlist + buildinglist + vehiclelist + foodlist + spacelist + floralist + containerlist
outfitprinttotallist = objecttotallist + locationlist + colorlist + musicgenrelist + seasonlist + animallist + patternlist
@@ -140,9 +160,15 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# build artists list
# we want to create more cohorence, so we are adding all (wild) mode for the old logic
# all else will be more constrained per type, to produce better images.
# the popular artists will be used more the lower the insanitylevel is
# Future: add in personal artists lists as well
# lets maybe go wild "sometimes", based on insanitylevel
if(artists == "all" and rare_dist(insanitylevel)):
artists = "all (wild)"
artisttypes = ["popular", "3D", "abstract", "angular", "anime" ,"architecture", "art nouveau", "art deco", "baroque", "bauhaus", "cartoon", "character", "children's illustration", "cityscape", "cinema", "clean", "cloudscape", "collage", "colorful", "comics", "cubism", "dark", "detailed", "digital", "expressionism", "fantasy", "fashion", "fauvism", "figurativism", "graffiti", "graphic design", "high contrast", "horror", "impressionism", "installation", "landscape", "light", "line drawing", "low contrast", "luminism", "magical realism", "manga", "melanin", "messy", "monochromatic", "nature", "photography", "pop art", "portrait", "primitivism", "psychedelic", "realism", "renaissance", "romanticism", "scene", "sci-fi", "sculpture", "seascape", "space", "stained glass", "still life", "storybook realism", "street art", "streetscape", "surrealism", "symbolism", "textile", "ukiyo-e", "vibrant", "watercolor", "whimsical"]
artiststyleselector = ""
artiststyleselectormode = "normal"
@@ -1636,7 +1662,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
hybridorswap = random.choice(hybridorswaplist)
completeprompt += "["
completeprompt += "-fictional-"
# Sometimes, we do a gender swap. Much fun!
if(novel_dist(insanitylevel)):
completeprompt += gender + " version of -oppositefictional-"
else:
completeprompt += "-fictional-"
if(hybridorswap == "hybrid"):
completeprompt += "|" + random.choice(hybridhumanlist) + " ] "
@@ -1649,8 +1679,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
hybridorswaplist = ["hybrid", "swap"]
hybridorswap = random.choice(hybridorswaplist)
completeprompt += "["
completeprompt += "-nonfictional-"
# Sometimes, we do a gender swap. Much fun!
if(novel_dist(insanitylevel)):
completeprompt += gender + " version of -oppositenonfictional-"
else:
completeprompt += "-nonfictional-"
if(hybridorswap == "hybrid"):
completeprompt += "|" + random.choice(hybridhumanlist) + "] "
@@ -2552,9 +2585,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
"-eyecolor-" in completeprompt or
"-fashiondesigner-" in completeprompt or
"-colorcombination-" in completeprompt or
"-materialcombination-" 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-","-subjectfromfile-", "-brand-", "-space-", "-artist-", "-imagetype-", "-othertype-", "-quality-", "-lighting-", "-camera-", "-lens-","-imagetypequality-", "-poemline-", "-songline-", "-greatwork-", "-artistfantasy-", "-artistpopular-", "-artistromanticism-", "-artistphotography-", "-emoji-", "-timeperiod-", "-shotsize-", "-musicgenre-", "-animaladdition-", "-addontolocationinside-", "-addontolocation-", "-objectaddition-", "-humanaddition-", "-overalladdition-", "-focus-", "-direction-", "-styletilora-", "-manwomanrelation-", "-waterlocation-", "-container-", "-firstname-", "-flora-", "-print-", "-miniactivity-", "-pattern-", "-animalsuffixaddition-", "-chair-", "-cardname-", "-covering-", "-heshe-", "-hisher-", "-himher-", "-outfitdescriptor-", "-hairdescriptor-", "-hairvomit-", "-humandescriptor-", "-manwomanmultiple-", "-facepart-", "-buildfacepart-", "-outfitvomit-", "-locationdescriptor-", "-basicbitchdescriptor-", "-animaldescriptor-", "-humanexpression-", "-humanvomit-", "-eyecolor-", "-fashiondesigner-", "-colorcombination-", "-materialcombination-"]
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, customoutfitslist, brandlist, spacelist, artistlist, imagetypelist, othertypelist, qualitylist, lightinglist, cameralist, lenslist, imagetypequalitylist, poemlinelist, songlinelist, greatworklist, fantasyartistlist, popularartistlist, romanticismartistlist, photographyartistlist, emojilist, timeperiodlist, shotsizelist, musicgenrelist, animaladditionlist, addontolocationinsidelist, addontolocationlist, objectadditionslist, humanadditionlist, overalladditionlist, focuslist, directionlist, stylestiloralist, manwomanrelationlist, waterlocationlist, containerlist, firstnamelist, floralist, printlist, miniactivitylist, patternlist, animalsuffixadditionlist, chairlist, cardnamelist, coveringlist, heshelist, hisherlist, himherlist, outfitdescriptorlist, hairdescriptorlist, hairvomitlist, humandescriptorlist, manwomanmultiplelist, facepartlist, buildfacepartlist, outfitvomitlist, locationdescriptorlist, basicbitchdescriptorlist, animaldescriptorlist, humanexpressionlist, humanvomitlist, eyecolorlist, fashiondesignerlist, colorcombinationlist, materialcombinationlist]
"-materialcombination-" in completeprompt or
"-oppositefictional-" in completeprompt or
"-oppositenonfictional-" 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-","-subjectfromfile-", "-brand-", "-space-", "-artist-", "-imagetype-", "-othertype-", "-quality-", "-lighting-", "-camera-", "-lens-","-imagetypequality-", "-poemline-", "-songline-", "-greatwork-", "-artistfantasy-", "-artistpopular-", "-artistromanticism-", "-artistphotography-", "-emoji-", "-timeperiod-", "-shotsize-", "-musicgenre-", "-animaladdition-", "-addontolocationinside-", "-addontolocation-", "-objectaddition-", "-humanaddition-", "-overalladdition-", "-focus-", "-direction-", "-styletilora-", "-manwomanrelation-", "-waterlocation-", "-container-", "-firstname-", "-flora-", "-print-", "-miniactivity-", "-pattern-", "-animalsuffixaddition-", "-chair-", "-cardname-", "-covering-", "-heshe-", "-hisher-", "-himher-", "-outfitdescriptor-", "-hairdescriptor-", "-hairvomit-", "-humandescriptor-", "-manwomanmultiple-", "-facepart-", "-buildfacepart-", "-outfitvomit-", "-locationdescriptor-", "-basicbitchdescriptor-", "-animaldescriptor-", "-humanexpression-", "-humanvomit-", "-eyecolor-", "-fashiondesigner-", "-colorcombination-", "-materialcombination-", "-oppositefictional-", "-oppositenonfictional-"]
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, customoutfitslist, brandlist, spacelist, artistlist, imagetypelist, othertypelist, qualitylist, lightinglist, cameralist, lenslist, imagetypequalitylist, poemlinelist, songlinelist, greatworklist, fantasyartistlist, popularartistlist, romanticismartistlist, photographyartistlist, emojilist, timeperiodlist, shotsizelist, musicgenrelist, animaladditionlist, addontolocationinsidelist, addontolocationlist, objectadditionslist, humanadditionlist, overalladditionlist, focuslist, directionlist, stylestiloralist, manwomanrelationlist, waterlocationlist, containerlist, firstnamelist, floralist, printlist, miniactivitylist, patternlist, animalsuffixadditionlist, chairlist, cardnamelist, coveringlist, heshelist, hisherlist, himherlist, outfitdescriptorlist, hairdescriptorlist, hairvomitlist, humandescriptorlist, manwomanmultiplelist, facepartlist, buildfacepartlist, outfitvomitlist, locationdescriptorlist, basicbitchdescriptorlist, animaldescriptorlist, humanexpressionlist, humanvomitlist, eyecolorlist, fashiondesignerlist, colorcombinationlist, materialcombinationlist, oppositefictionallist, oppositenonfictionallist]
allwildcardslistwithhybrid = ["-material-", "-descriptor-", "-outfit-", "-conceptsuffix-","-culture-", "-objecttotal-", "-outfitprinttotal-"]
allwildcardslistwithhybridlists = [materiallist, descriptorlist,outfitlist,conceptsuffixlist,culturelist, objecttotallist, outfitprinttotallist]
+2 -2
View File
@@ -94,7 +94,6 @@ Anklet?both
Nose Ring?both
Lip Ring?both
Belly Button Ring?both
Navel?both
Body Piercings?both
Belt?both
Belts?both
@@ -144,4 +143,5 @@ monocle?both
Browline glasses?both
Goggles?both
Horn-rimmed glasses?both
sun hat?both
sun hat?both
Veil?both
1 Beauty Marks?female
94 Nose Ring?both
95 Lip Ring?both
96 Belly Button Ring?both
Navel?both
97 Body Piercings?both
98 Belt?both
99 Belts?both
143 Browline glasses?both
144 Goggles?both
145 Horn-rimmed glasses?both
146 sun hat?both
147 Veil?both
+3 -1
View File
@@ -132,4 +132,6 @@ Bird
Age
Dream
Dance
Empire
Empire
Muse
Guru
1 Ocean
132 Age
133 Dream
134 Dance
135 Empire
136 Muse
137 Guru
+2 -1
View File
@@ -111,4 +111,5 @@ Prey
Manic
-brand-
-culture-
-humanoid-s
-humanoid-s
The fallen
1 Infinity
111 Manic
112 -brand-
113 -culture-
114 -humanoid-s
115 The fallen
+1
View File
@@ -588,6 +588,7 @@ Unnatural
Unpredictable
Unsightly
Untidy
Unreal
Unusual
Uptight
Upside down
1 -space-
588 Unpredictable
589 Unsightly
590 Untidy
591 Unreal
592 Unusual
593 Uptight
594 Upside down
+3 -1
View File
@@ -165,4 +165,6 @@ drinking coffee in a cafe
fashion show
fighting a War
sieging a Castle
sitting and talking
sitting and talking
Walking up a stairs
Walking down a stairs
1 Running
165 fashion show
166 fighting a War
167 sieging a Castle
168 sitting and talking
169 Walking up a stairs
170 Walking down a stairs
+9 -1
View File
@@ -8,6 +8,7 @@ OR(;-heshe- is looking;uncommon) OR(;very;normal) evil
OR(;-heshe- is feeling;uncommon) OR(;very;normal) fearful
OR(;-heshe- is feeling;uncommon) OR(;very;normal) disappointed
OR(;-heshe- is feeling;uncommon) OR(;very;normal) happy
OR(;-heshe- is feeling;uncommon) very happy, glinting eyes
OR(;-heshe- mood is;uncommon) OR(;very;normal) light
OR(;-heshe- is feeling;uncommon) OR(;very;normal) lonely
OR(;-heshe- is feeling;uncommon) OR(;very;normal) lustful
@@ -21,7 +22,10 @@ OR(;-heshe- is;uncommon) bewildered
OR(;-heshe- is;uncommon) winking
OR(;-heshe- is feeling;uncommon) OR(;very;normal) smug
OR(;-heshe- is;uncommon) laughing hysterically
OR(;-heshe- has a;uncommon) OR(;very;normal) OR(smug;light;radiant;wicked;grinning) smile
OR(;-heshe- has a;uncommon) OR(;very;normal) smug smile
OR(;-heshe- has a;uncommon) OR(;very;normal) light smile
OR(;-heshe- has a;uncommon) OR(;very;normal) radiant smile
OR(;-heshe- has a;uncommon) OR(;very;normal) wicked smile
OR(;-heshe- is;uncommon) biting -himher- lip
OR(;-heshe- is looking;uncommon) OR(;very;normal) OR(neutral;hollow)
OR(;-heshe- is feeling;uncommon) OR(;very;normal) shy OR(;, looking away;uncommon)
@@ -35,5 +39,9 @@ OR(;-heshe- is ;uncommon) feeling OR(;very;normal) melancholy
OR(;-heshe- is ;uncommon) feeling OR(;very;normal) proud
OR(;-heshe- is ;uncommon) feeling OR(;very;normal) envious
OR(;-heshe- is ;uncommon) feeling OR(;very;normal) grateful
OR(;-heshe- is ;uncommon) expressing shame
OR(;-heshe- is ;uncommon) expressing guilt
OR(;-heshe- is ;uncommon) expressing joy
OR(;-heshe- is;uncommon) laughing
OR(;-heshe- is;uncommon) grinning
OR(;-heshe- is ;uncommon) feeling OR(;very;normal) relaxed
1 OR(;-heshe- is feeling;uncommon) OR(;very;normal) angry
8 OR(;-heshe- is feeling;uncommon) OR(;very;normal) fearful
9 OR(;-heshe- is feeling;uncommon) OR(;very;normal) disappointed
10 OR(;-heshe- is feeling;uncommon) OR(;very;normal) happy
11 OR(;-heshe- is feeling;uncommon) very happy, glinting eyes
12 OR(;-heshe- mood is;uncommon) OR(;very;normal) light
13 OR(;-heshe- is feeling;uncommon) OR(;very;normal) lonely
14 OR(;-heshe- is feeling;uncommon) OR(;very;normal) lustful
22 OR(;-heshe- is;uncommon) winking
23 OR(;-heshe- is feeling;uncommon) OR(;very;normal) smug
24 OR(;-heshe- is;uncommon) laughing hysterically
25 OR(;-heshe- has a;uncommon) OR(;very;normal) OR(smug;light;radiant;wicked;grinning) smile OR(;-heshe- has a;uncommon) OR(;very;normal) smug smile
26 OR(;-heshe- has a;uncommon) OR(;very;normal) light smile
27 OR(;-heshe- has a;uncommon) OR(;very;normal) radiant smile
28 OR(;-heshe- has a;uncommon) OR(;very;normal) wicked smile
29 OR(;-heshe- is;uncommon) biting -himher- lip
30 OR(;-heshe- is looking;uncommon) OR(;very;normal) OR(neutral;hollow)
31 OR(;-heshe- is feeling;uncommon) OR(;very;normal) shy OR(;, looking away;uncommon)
39 OR(;-heshe- is ;uncommon) feeling OR(;very;normal) proud
40 OR(;-heshe- is ;uncommon) feeling OR(;very;normal) envious
41 OR(;-heshe- is ;uncommon) feeling OR(;very;normal) grateful
42 OR(;-heshe- is ;uncommon) expressing shame
43 OR(;-heshe- is ;uncommon) expressing guilt
44 OR(;-heshe- is ;uncommon) expressing joy
45 OR(;-heshe- is;uncommon) laughing
46 OR(;-heshe- is;uncommon) grinning
47 OR(;-heshe- is ;uncommon) feeling OR(;very;normal) relaxed
+1
View File
@@ -1,3 +1,4 @@
-musicgenre-mancer;both
Abbot;both
Abjurer;both
Acrobat;both
1 Abbot -musicgenre-mancer both
1 -musicgenre-mancer both
2 Abbot Abbot both
3 Abjurer Abjurer both
4 Acrobat Acrobat both
+4
View File
@@ -24,6 +24,7 @@ Angelic
Apocalyptic
Appealing
Artistic
Arcadian
Astonishing
Atmospheric
Authentic
@@ -150,16 +151,19 @@ Painterly
Peaceful
Phenomenal
Pictorial
Pittoresque
Plain
Pretty
Primordial
Pure
Quaint
Radiant
Realistic
Refined
Retrofuturistic
Romantic
Ruined
Scenic
Sci-fi
Serene
Shadowy
1 1600'S
24 Apocalyptic
25 Appealing
26 Artistic
27 Arcadian
28 Astonishing
29 Atmospheric
30 Authentic
151 Peaceful
152 Phenomenal
153 Pictorial
154 Pittoresque
155 Plain
156 Pretty
157 Primordial
158 Pure
159 Quaint
160 Radiant
161 Realistic
162 Refined
163 Retrofuturistic
164 Romantic
165 Ruined
166 Scenic
167 Sci-fi
168 Serene
169 Shadowy
+1052 -670
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -45,6 +45,7 @@ Bioluminescent
Business
Boring
Breathtaking
Bridal
Bright
Captivating
Cartoony
1 1600'S
45 Business
46 Boring
47 Breathtaking
48 Bridal
49 Bright
50 Captivating
51 Cartoony
+1
View File
@@ -35,6 +35,7 @@ cosmic energy
crisp lines
de dia los muertos
delicate
Digital distortions
Dota style
dreamy
dreamy magical atmosphere
1 (-colorcombination-:0.7)
35 crisp lines
36 de dia los muertos
37 delicate
38 Digital distortions
39 Dota style
40 dreamy
41 dreamy magical atmosphere
+3 -3
View File
@@ -52,18 +52,18 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("All done!")
generateprompts(10,5
,"all" # subject
,"humanoid" # subject
,"all" # artists
,"all" # image type "only other types", "only templates mode", "art blaster mode", "quality vomit mode", "color cannon mode", "unique art mode", "massive madness mode", "photo fantasy mode", "subject only mode", "fixed styles mode"
,False,"","","PREFIXPROMPT"
,"SUFFIXPROMPT -material-"
,"SUFFIXPROMPT"
,"",1,""
,"" # subject override
,True,
"",20
, "all" # gender
, "all" # object types
, "all" # humanoid types --multiple humans
, "celebrities e.a." # humanoid types -- all,generic humans,generic human relations, multiple humans, celebrities e.a.,fictional,humanoids, based on job or title,based on first name
, "all" # concept types
, False, True, 0
, "" #outfit override