feat: extract attribute overwrite_width

This commit is contained in:
Manuel Schmid
2024-01-22 18:41:02 +01:00
parent 2b1f501462
commit 2eed5a28f2
3 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
overwrite_width, overwrite_height, \
overwrite_height, \
overwrite_vary_strength, overwrite_upscale_strength, \
mixing_image_prompt_and_vary_upscale, mixing_image_prompt_and_inpaint, \
debugging_cn_preprocessor, skipping_cn_preprocessor, controlnet_softness, canny_low_threshold, canny_high_threshold, \
@@ -9,7 +9,7 @@ overwrite_width, overwrite_height, \
def set_all_advanced_parameters(*args):
global overwrite_width, overwrite_height, \
global overwrite_height, \
overwrite_vary_strength, overwrite_upscale_strength, \
mixing_image_prompt_and_vary_upscale, mixing_image_prompt_and_inpaint, \
debugging_cn_preprocessor, skipping_cn_preprocessor, controlnet_softness, canny_low_threshold, canny_high_threshold, \
@@ -18,7 +18,7 @@ def set_all_advanced_parameters(*args):
debugging_inpaint_preprocessor, inpaint_disable_initial_latent, inpaint_engine, inpaint_strength, inpaint_respective_field, \
inpaint_mask_upload_checkbox, invert_mask_checkbox, inpaint_erode_or_dilate
overwrite_width, overwrite_height, \
overwrite_height, \
overwrite_vary_strength, overwrite_upscale_strength, \
mixing_image_prompt_and_vary_upscale, mixing_image_prompt_and_inpaint, \
debugging_cn_preprocessor, skipping_cn_preprocessor, controlnet_softness, canny_low_threshold, canny_high_threshold, \
+3 -2
View File
@@ -146,6 +146,7 @@ def worker():
scheduler_name = args.pop()
overwrite_step = args.pop()
overwrite_switch = args.pop()
overwrite_width = args.pop()
cn_tasks = {x: [] for x in flags.ip_list}
for _ in range(4):
@@ -346,8 +347,8 @@ def worker():
if overwrite_switch > 0:
switch = overwrite_switch
if advanced_parameters.overwrite_width > 0:
width = advanced_parameters.overwrite_width
if overwrite_width > 0:
width = overwrite_width
if advanced_parameters.overwrite_height > 0:
height = advanced_parameters.overwrite_height