diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index 07bed5d..9435c21 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -3228,6 +3228,10 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender prompt = " " + prompt # store the (sort of) original prompt originalprompt = prompt + originaloriginalprompt = prompt + + basicenhance = ", OR(-vomit-;-imagetype-;-basicbitchdescriptor-;-mood-;-lighting-;-descriptor-), " + ### Get all combinations of 1 to 4 consecutive words @@ -3236,7 +3240,7 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender if(num_words < 15 and common_dist(insanitylevel)): # add some random words maybe? if(common_dist(insanitylevel)): - basicenhance = ", OR(-vomit-;-imagetype-;-basicbitchdescriptor-;-mood-;-lighting-;-descriptor-), " + if(random.randint(0,1)== 0): prompt += basicenhance else: @@ -3546,8 +3550,23 @@ def createpromptvariant(prompt = "", insanitylevel = 5, antivalues = "" , gender prompt = prompt.replace(combination," -waterlocation- ") runs += 1 - - + + # If nothing changed... Lets do at least something + if(prompt == originaloriginalprompt): + if(random.randint(0,1)==0): + prompt += basicenhance + else: + prompt = basicenhance + ", " + prompt + + if(chance_roll(insanitylevel, "common")): + prompt += basicenhance + + if(chance_roll(insanitylevel, "common")): + enhance_positive_words = enhance_positive(prompt, 1) + prompt += enhance_positive_words + + prompt = parse_custom_functions(prompt, insanitylevel) + prompt = prompt.replace(" :", ":") prompt = prompt.replace(": ", ":") @@ -3976,7 +3995,7 @@ def enhance_positive(positive_prompt = "", amountofwords = 3): for i in range(0,amountofwords): if(len(newwordlist) > 0): addwords += ", " + newwordlist.pop(random.randrange(len(newwordlist))) - print(addwords) + #print(addwords) return addwords diff --git a/csvfiles/special_lists/wordcombis.csv b/csvfiles/special_lists/wordcombis.csv index 4176694..0c00c33 100644 --- a/csvfiles/special_lists/wordcombis.csv +++ b/csvfiles/special_lists/wordcombis.csv @@ -50,7 +50,7 @@ symmetry, beauty, beautiful, harmonious romanticism, arcadian, idyllic orientalism, exotic, mysterious sparkling, glittering, glitter, sparkles -geeky, nerdy, glasses, messy hair +geeky, nerdy, glasses, messy hair, quirky sensual, sexy, lustful painting, painterly impressionism, 1920's, small brush strokes, contrasting colors, en plein air @@ -60,5 +60,5 @@ comic, cartoon, cartoony, comic book cover, comics divine, saintly, holy, angelic cyberpunk, neon, neon-lit, futuristic portrait, close-up -zen, tranquil, relaxing +zen, tranquil, relaxing, peaceful sad, depressing, hopeless \ No newline at end of file diff --git a/promptvarianttester.py b/promptvarianttester.py index 6fac55e..2f0103c 100644 --- a/promptvarianttester.py +++ b/promptvarianttester.py @@ -37,5 +37,5 @@ def generatepromptvariants(amount = 1,prompt="",insanitylevel="5"): print("All done!") generatepromptvariants(10 - ,"" #purple (galaxy) in a (bottle:1.2), , background is a lush jungle and a woman wearing a summer dress, -artmovement- - , 5) + ,"a cute girl" #purple (galaxy) in a (bottle:1.2), , background is a lush jungle and a woman wearing a summer dress, -artmovement- + , 3)