From 0943e43f9312b9d32a449310413c5661e3576372 Mon Sep 17 00:00:00 2001 From: AIrjen Date: Sun, 16 Apr 2023 11:56:04 +0200 Subject: [PATCH] Added possiblity for multiple image types as a rare chance --- build_dynamic_prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index 6605c65..70f4a05 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -133,13 +133,13 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all if(imagetype != "all" and imagetype != "all - force multiple" and imagetype != "only other types"): completeprompt += " " + imagetype + " " - elif(imagetype == "all - force multiple"): + elif(imagetype == "all - force multiple" or rare_dist(insanitylevel)): amountofimagetypes = random.randint(2,3) elif(imagetype == "only other types"): othertype = 1 completeprompt = add_from_csv(completeprompt, "othertypes", 1, ""," of a ") - if(imagetype == "all" and normal_dist(insanitylevel)): + if(imagetype == "all" and normal_dist(insanitylevel) and amountofimagetypes <= 1): amountofimagetypes = 1 for i in range(amountofimagetypes):