diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index 30960bd..ab9424a 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -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) diff --git a/prompttester.py b/prompttester.py index d047426..b18ff85 100644 --- a/prompttester.py +++ b/prompttester.py @@ -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"