From f81705bcc498925b346216a095a415c3ad6a5c4b Mon Sep 17 00:00:00 2001 From: AIrjen <130234949+AIrjen@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:26:53 +0200 Subject: [PATCH] minor fixes --- build_dynamic_prompt.py | 10 +++++++--- prompttester.py | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index d61416c..d0bd043 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -1430,7 +1430,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all elif(generateshot == True): completeprompt += ", " - + genjoboractivity = False # start subject building if(generatesubject == True): # start with descriptive qualities @@ -1450,6 +1450,10 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all completeprompt += "-humandescriptor- " else: completeprompt += "-descriptor- " + + # age, very rare to add. + if(subjectchooser in ["human", "job", "fictional", "non fictional", "humanoid", "manwomanrelation", "manwomanmultiple","firstname"] and extraordinary_dist(insanitylevel)): + completeprompt += str(random.randint(20,99)) + " OR(y.o.;year old) " if(subjectchooser in ["animal as human,","human", "job", "fictional", "non fictional", "humanoid", "manwomanrelation", "manwomanmultiple","firstname"] and chance_roll(insanitylevel, subjectbodytypechance) and generatebodytype == True): completeprompt += "-bodytype- " @@ -1542,7 +1546,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all hybridorswap = "" # move job or activity logic here. We want to place it at 2 different places maybe - genjoboractivity = False + if(subjectchooser in ["animal as human","human","fictional", "non fictional", "humanoid", "manwomanrelation", "manwomanmultiple","firstname"] and chance_roll(insanitylevel, joboractivitychance) and humanspecial != 1 and generatesubject == True): genjoboractivity = True genjoboractivitylocationslist = ["front","middle","back", "back"] @@ -1727,7 +1731,7 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all elif(subjectchooser == "manwomanmultiple"): completeprompt += ", the -samehumansubject are OR(;very;rare) -humandescriptor-" else: - completeprompt += ", OR(;the;normal) OR(-manwoman-;-samehumansubject-) is OR(;very;rare) -humandescriptor-" + completeprompt += ", OR(the -manwoman-;-samehumansubject-) is OR(;very;rare) -humandescriptor-" else: completeprompt += ", OR(;-heshe- is;normal) OR(;very;rare) -descriptor- " diff --git a/prompttester.py b/prompttester.py index 33e1ae6..b5d7932 100644 --- a/prompttester.py +++ b/prompttester.py @@ -51,8 +51,8 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im print("") print("All done!") -generateprompts(10,8 - ,"" # subject +generateprompts(10,5 + ,"humanoid" # subject ,"all" # artists ,"all",False,"","","PREFIXPROMPT" ,"SUFFIXPROMPT -heshe- -heshe- -heshe- -minioutfit-"