@@ -224,8 +224,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
|
||||
|
||||
# determine wether we should go for a template or not. Not hooked up to insanitylevel
|
||||
templatemode = False
|
||||
if(random.randint(1, 20) == 1 or imagetype == "only templates"):
|
||||
if(random.randint(1, 75) == 1 or imagetype == "only templates"):
|
||||
templatemode = True
|
||||
print("Running with a randomized template instead of a randomized prompt")
|
||||
|
||||
|
||||
# main stuff
|
||||
|
||||
+3
-3
@@ -25,8 +25,8 @@ def call_img2img(imagelocation,originalimage, originalpnginfo ="", apiurl="http:
|
||||
# need to convert the values to the correct index number for Ultimate SD Upscaler
|
||||
redrawmodelist =["Linear","Chess","None"]
|
||||
seamsfixmodelist = ["None","Band pass","Half tile offset pass","Half tile offset pass + intersections"]
|
||||
usduredrawint = redrawmodelist.index(usduredraw)
|
||||
seamsfixmodeint = seamsfixmodelist.index(usduSeamsfix)
|
||||
usduredrawint = int(redrawmodelist.index(usduredraw))
|
||||
seamsfixmodeint = int(seamsfixmodelist.index(usduSeamsfix))
|
||||
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ def call_img2img(imagelocation,originalimage, originalpnginfo ="", apiurl="http:
|
||||
if(upscalescript=="Ultimate SD upscale"):
|
||||
upscaler_index = [x.name.lower() for x in shared.sd_upscalers].index(upscaler.lower())
|
||||
payload.update({"script_name": upscalescript})
|
||||
payload.update({"script_args": ["",int(usdutilewidth),int(usdutileheight),int(usdumaskblur),int(padding), int(usduswidth), usdusdenoise,int(usduspadding),
|
||||
payload.update({"script_args": ["",int(usdutilewidth),int(usdutileheight),int(usdumaskblur),int(padding), int(usduswidth), float(usdusdenoise),int(usduspadding),
|
||||
upscaler_index,True,usduredrawint,False,int(usdusmaskblur),
|
||||
seamsfixmodeint,2,"","",float(scale)]})
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
baby
|
||||
were
|
||||
giant
|
||||
monster
|
||||
monster
|
||||
head of a
|
||||
|
@@ -10,4 +10,6 @@
|
||||
-descriptor- -material- -outfit-
|
||||
-job- -outfit-
|
||||
-rpgclass- -minioutfit-
|
||||
-season- -minioutfit-
|
||||
-season- -minioutfit-
|
||||
-minioutfit- designed by -brand-
|
||||
-material-
|
||||
|
Reference in New Issue
Block a user