small addition

This commit is contained in:
AIrjen
2023-10-07 19:11:39 +02:00
parent 31465d6538
commit 7d2c370896
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -1727,7 +1727,11 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
# shots from inside can create cool effects in landscapes
if(chance_roll(insanitylevel, subjectlandscapeaddonlocationchance) and insideshot == 0):
insideshot = 1
completeprompt += " from inside of a -addontolocationinside- "
# lets cheat a bit here, we can do something cool I saw on reddit
if(mainchooser=="humanoid" and legendary_dist(insanitylevel)):
completeprompt += " looking at a -addontolocationinside- "
else:
completeprompt += " from inside of a -addontolocationinside- "
if(chance_roll(insanitylevel, subjectlandscapeaddonlocationchance) and insideshot == 0):
completeprompt += " and "
@@ -3312,6 +3316,8 @@ def cleanup(completeprompt, advancedprompting, insanitylevel = 5):
completeprompt = re.sub('-artiststyle- art,', '', completeprompt)
completeprompt = re.sub('-artiststyle- art', '', completeprompt)
completeprompt = re.sub('-artiststyle-', '', completeprompt)
completeprompt = re.sub('- art ', '', completeprompt)
completeprompt = re.sub('a his', 'his', completeprompt)
completeprompt = re.sub('a her', 'her', completeprompt)
+1 -1
View File
@@ -53,7 +53,7 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
generateprompts(10,5
,"all" # subject
,"all" # artists
,"all (wild)" # 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"