fix for ruinedfooocus

This commit is contained in:
AIrjen
2024-01-19 10:14:40 +01:00
parent 53a7a9c4de
commit 4fd91ec29f
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -3052,6 +3052,9 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender
# first load the lists, all copied from above (can that be done better?)
# do we want to use the same settings or keep it open??
# strip the prompt, for EVO in ruinedfooocus:
prompt = prompt.strip()
# first build up a complete anti list. Those values are removing during list building
# this uses the antivalues string AND the antilist.csv
emptylist = []
@@ -3552,7 +3555,7 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender
runs += 1
# If nothing changed... Lets do at least something
if(prompt == originaloriginalprompt):
if(prompt.lower().strip() == originaloriginalprompt.lower().strip()):
if(random.randint(0,1)==0):
prompt += basicenhance
else:
+2 -2
View File
@@ -37,5 +37,5 @@ def generatepromptvariants(amount = 1,prompt="",insanitylevel="5"):
print("All done!")
generatepromptvariants(10
,"a cute girl" #purple (galaxy) in a (bottle:1.2), <bla:1>, background is a lush jungle and a woman wearing a summer dress, -artmovement-
, 3)
,"a cute woman" #purple (galaxy) in a (bottle:1.2), <bla:1>, background is a lush jungle and a woman wearing a summer dress, -artmovement-
, 1)