Fixes and finishing list

This commit is contained in:
AIrjen
2023-09-23 13:25:59 +02:00
parent 6ada5fd3db
commit 34cee9b2cc
8 changed files with 45 additions and 73 deletions
+18 -13
View File
@@ -50,7 +50,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
outfitlist = csv_to_list("outfits",antilist)
locationlist = csv_to_list("locations",antilist)
accessorielist = csv_to_list("accessories",antilist)
accessorielist = csv_to_list("accessories",antilist,"./csvfiles/",0,"?")
artmovementlist = csv_to_list("artmovements",antilist)
bodytypelist = csv_to_list("body_types",antilist)
cameralist = csv_to_list("cameras",antilist)
@@ -1921,20 +1921,12 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
#end of the while loop, now clean up the prompt
# first, we are going to parse any custom functions we have build in
# this is OR()
# OR()
# OR(foo;bar;bla) --> randomly take foo, bar or bla
# OR(foo;bar;bla;uncommon) --> Take foo, unless it hits uncommon roll. Then take bar or bla
# OR(;foo) --> empty or foo
# OR(;foo;uncommon) --> empty unless it hits uncommon roll. Then take foo
# OR(;foo;bar;uncommon) --> empty unless it hits uncommon roll. Then take foo or bar
completeprompt = parse_custom_functions(completeprompt, insanitylevel)
# completeprompt = parse_custom_functions(completeprompt, insanitylevel)
@@ -2073,6 +2065,20 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
completeprompt = completeprompt.replace("-objectstrengthstart-","")
completeprompt = completeprompt.replace("-objectstrengthend-","")
# Now, we are going to parse any custom functions we have build in
# this is OR()
# OR()
# OR(foo;bar;bla) --> randomly take foo, bar or bla
# OR(foo;bar;bla;uncommon) --> Take foo, unless it hits uncommon roll. Then take bar or bla
# OR(;foo) --> empty or foo
# OR(;foo;uncommon) --> empty unless it hits uncommon roll. Then take foo
# OR(;foo;bar;uncommon) --> empty unless it hits uncommon roll. Then take foo or bar
completeprompt = parse_custom_functions(completeprompt, insanitylevel)
# clean it up
completeprompt = cleanup(completeprompt, advancedprompting)
@@ -2113,7 +2119,7 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender
outfitlist = csv_to_list("outfits",antilist)
locationlist = csv_to_list("locations",antilist)
accessorielist = csv_to_list("accessories",antilist)
accessorielist = csv_to_list("accessories",antilist,"./csvfiles/",0,"?")
artmovementlist = csv_to_list("artmovements",antilist)
bodytypelist = csv_to_list("body_types",antilist)
cameralist = csv_to_list("cameras",antilist)
@@ -2692,7 +2698,6 @@ def custom_or(values, insanitylevel = 5):
last_element = values[-1]
first_element = values[0]
print(values)
if last_element in ['always', 'common', 'normal','uncommon', 'rare', 'legendary','unique', 'extraordinary', 'novel', 'never']:
# If we do not hit the change roll, then take the first element.
+5 -27
View File
@@ -89,7 +89,6 @@ Lapel Pin
Body Chain
Brooch
Anklet
Toe Ring
Nose Ring
Lip Ring
Belly Button Ring
@@ -121,34 +120,13 @@ Buttons
Tattoos
Cigarette
Pipe
-material- trimmings
Handlebar Mustache
Full Beard
OR(-material-;-color-) trimmings
OR(;Handlebar;Horseshoe;Pencil;Large;Small;common) Mustache
OR(;Full;Stubble;Circle;Light;Large;Small;common) Beard
Goatee
Soul Patch
Mutton Chops
Circle Beard
Horseshoe Mustache
Stubble Beard
Imperial Mustache
Pencil Mustache
Face Painting
Day of the Dead Face Paint
-animal- Face Paint
Tribal Face Paint
Tribal Face Marks
Clown Face Paint
Halloween Face Paint
Fantasy Face Paint
Sports Team Face Paint
Superhero Face Paint
-animal- Tattoo
-object- Tattoo
-vehicle- Tattoo
-building- Tattoo
Body Tattoos
Face Tattoos
Tattoos
Tribal Tattoos
OR(;Day of the Dead;Tribal;Clown;Halloween;Fantasy;Sports Team;Superhero;-animal-;common) Face OR(Painting;Paint)
OR(-animal-;-objecttotal-;-pattern-;henna;-building-;body;face;tribal) Tattoo
Geass
Shoulder pads
1 Beauty Marks
89 Body Chain
90 Brooch
91 Anklet
Toe Ring
92 Nose Ring
93 Lip Ring
94 Belly Button Ring
120 Tattoos
121 Cigarette
122 Pipe
123 -material- trimmings OR(-material-;-color-) trimmings
124 Handlebar Mustache OR(;Handlebar;Horseshoe;Pencil;Large;Small;common) Mustache
125 Full Beard OR(;Full;Stubble;Circle;Light;Large;Small;common) Beard
126 Goatee
127 Soul Patch
128 Mutton Chops
129 Circle Beard OR(;Day of the Dead;Tribal;Clown;Halloween;Fantasy;Sports Team;Superhero;-animal-;common) Face OR(Painting;Paint)
130 Horseshoe Mustache OR(-animal-;-objecttotal-;-pattern-;henna;-building-;body;face;tribal) Tattoo
Stubble Beard
Imperial Mustache
Pencil Mustache
Face Painting
Day of the Dead Face Paint
-animal- Face Paint
Tribal Face Paint
Tribal Face Marks
Clown Face Paint
Halloween Face Paint
Fantasy Face Paint
Sports Team Face Paint
Superhero Face Paint
-animal- Tattoo
-object- Tattoo
-vehicle- Tattoo
-building- Tattoo
Body Tattoos
Face Tattoos
Tattoos
Tribal Tattoos
131 Geass
132 Shoulder pads
+1
View File
@@ -2,6 +2,7 @@ stripes
horizontal stripes
vertical stripes
diagonal stripes
racing stripes
pinstripe
herringbone
regimental
1 stripes
2 horizontal stripes
3 vertical stripes
4 diagonal stripes
5 racing stripes
6 pinstripe
7 herringbone
8 regimental
+1 -1
View File
@@ -1,4 +1,4 @@
OR(;-descriptor-;normal) OR(;-color-;uncommon) OR(;-culture-;uncommon) OR (;-material-;rare) -outfit-
OR(;-descriptor-;normal) OR(;-color-;uncommon) OR(;-culture-;uncommon) OR(;-material-;rare) -outfit-
OR(;-descriptor-;normal) OR(;-descriptor-;uncommon) OR(;-color-;uncommon) -outfit-
OR(-job-;-rpgclass-;-season-;-animal--style) OR(-minioutfit-;-outfit-;rare)
OR(;-descriptor-;uncommon) OR(-minioutfit-;-outfit-;rare) OR(;designed by -brand-;uncommon)
1 OR(;-descriptor-;normal) OR(;-color-;uncommon) OR(;-culture-;uncommon) OR (;-material-;rare) -outfit- OR(;-descriptor-;normal) OR(;-color-;uncommon) OR(;-culture-;uncommon) OR(;-material-;rare) -outfit-
2 OR(;-descriptor-;normal) OR(;-descriptor-;uncommon) OR(;-color-;uncommon) -outfit- OR(;-descriptor-;normal) OR(;-descriptor-;uncommon) OR(;-color-;uncommon) -outfit-
3 OR(-job-;-rpgclass-;-season-;-animal--style) OR(-minioutfit-;-outfit-;rare) OR(-job-;-rpgclass-;-season-;-animal--style) OR(-minioutfit-;-outfit-;rare)
4 OR(;-descriptor-;uncommon) OR(-minioutfit-;-outfit-;rare) OR(;designed by -brand-;uncommon) OR(;-descriptor-;uncommon) OR(-minioutfit-;-outfit-;rare) OR(;designed by -brand-;uncommon)
+5 -15
View File
@@ -1,16 +1,6 @@
with a face
made from -material-
detailed with -material- patterns
detailed with -material- -descriptor- patterns
-descriptor- details
-color- patterns
-material- patterns
-descriptor- -color- patterns
-material- frame
intricate details
smooth
made from OR(-material-;-space-;-flora-)
OR(detailed;engraved;rare) with OR(-material-;-color-;-descriptor-;-pattern-) OR(; and -color-; and -descriptor-;rare) OR(patterns;details)
OR(intricate details;smooth;sleek)
designed by -brand-
made from -space-
made from -flora-
anthropomorphic
with -pattern- -print-
anthropomorphic OR(;with a face;normal)
with OR(-pattern-;-color-;-descriptor-;rare) -print-
1 with a face made from OR(-material-;-space-;-flora-)
2 made from -material- OR(detailed;engraved;rare) with OR(-material-;-color-;-descriptor-;-pattern-) OR(; and -color-; and -descriptor-;rare) OR(patterns;details)
3 detailed with -material- patterns OR(intricate details;smooth;sleek)
detailed with -material- -descriptor- patterns
-descriptor- details
-color- patterns
-material- patterns
-descriptor- -color- patterns
-material- frame
intricate details
smooth
4 designed by -brand- designed by -brand-
5 made from -space- anthropomorphic OR(;with a face;normal)
6 made from -flora- with OR(-pattern-;-color-;-descriptor-;rare) -print-
anthropomorphic
with -pattern- -print-
+4 -14
View File
@@ -1,30 +1,20 @@
floating in space
floating in -space-
floating over -minilocation-
floating
flying
OR(floating;flying) OR(; in space; in -space-; over -minilocation-;normal)
distant nuclear explosion
de dia los muertos
mechanical
lord of the rings scenery landscape, -flora-
between the stars
surrounded by fire and ice
infused with ethereal color
surrounded by ethereal color
surrounded by ethereal shapes
surrounded by -color- electric sparks
OR(infused with;surrounded by) OR(ethereal color; ethereal shapes; -color- OR(electric;glowing;neon) sparks)
-season-
-color- smoke
in -season- landscape
pronounced -genderdescription- features
in -culture- city street
in OR(-culture-;-descriptor-) OR(city;village) OR(street;road)
covered in -color- paint, dripping paint
designed by -brand-
in style of -brand-
forged by -brand-
OR(designed by;in style of; forged by) -brand-
overgrown with plants and -color- flowers
cyberpunk style, neo-tokyo, -color- neon highlights
designed as a -culture- rug from fiber
with a portal to another world
stylized geometric patterns, gems, steel and chrome
soft, squishy and jelly
1 floating in space OR(floating;flying) OR(; in space; in -space-; over -minilocation-;normal)
floating in -space-
floating over -minilocation-
floating
flying
2 distant nuclear explosion distant nuclear explosion
3 de dia los muertos de dia los muertos
4 mechanical mechanical
5 lord of the rings scenery landscape, -flora- lord of the rings scenery landscape, -flora-
6 between the stars between the stars
7 surrounded by fire and ice surrounded by fire and ice
8 infused with ethereal color OR(infused with;surrounded by) OR(ethereal color; ethereal shapes; -color- OR(electric;glowing;neon) sparks)
surrounded by ethereal color
surrounded by ethereal shapes
surrounded by -color- electric sparks
9 -season- -season-
10 -color- smoke -color- smoke
11 in -season- landscape in -season- landscape
12 pronounced -genderdescription- features pronounced -genderdescription- features
13 in -culture- city street in OR(-culture-;-descriptor-) OR(city;village) OR(street;road)
14 covered in -color- paint, dripping paint covered in -color- paint, dripping paint
15 designed by -brand- OR(designed by;in style of; forged by) -brand-
in style of -brand-
forged by -brand-
16 overgrown with plants and -color- flowers overgrown with plants and -color- flowers
17 cyberpunk style, neo-tokyo, -color- neon highlights cyberpunk style, neo-tokyo, -color- neon highlights
designed as a -culture- rug from fiber
18 with a portal to another world with a portal to another world
19 stylized geometric patterns, gems, steel and chrome stylized geometric patterns, gems, steel and chrome
20 soft, squishy and jelly soft, squishy and jelly
+4 -1
View File
@@ -1 +1,4 @@
film grain
film grain
bokeh
Orton effect
sharp focus
1 film grain
2 bokeh
3 Orton effect
4 sharp focus
+7 -2
View File
@@ -38,7 +38,12 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("")
print(result)
break
if(" OR " in result):
print("There is a mistake in a OR statement")
print("")
print(result)
break
steps += 1
@@ -46,4 +51,4 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("")
print("All done!")
generateprompts(20,8,"all","all","all",False,"","","PREFIXPROMPT" ,"OR(;-descriptor-;-culture-;-color-;lush;dense;-season-;normal) -minilocation- OR(; with -flora-; and -space- in background; and -minilocation-;rare)","",1,"","OR(;-descriptor-;normal), BLA",True,"",100, "all", "all", "all", "all", False, True)
generateprompts(1000,5,"all","all","all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT","",1,"","",True,"",100, "all", "all", "all", "all", False, True)