diff options
author | Ferdinand Weynschenk <flweynschenk@gmail.com> | 2023-06-20 12:03:42 +0000 |
---|---|---|
committer | Ferdinand Weynschenk <flweynschenk@gmail.com> | 2023-06-20 12:03:42 +0000 |
commit | c4c63dd5e4760c56405cef2e71abc5c3604c4578 (patch) | |
tree | db4b55d24770b2729a7df2b10e454b96cb196c18 | |
parent | 7ad48120d45e678b6343f7d95a1f97607858009a (diff) | |
download | stable-diffusion-webui-gfx803-c4c63dd5e4760c56405cef2e71abc5c3604c4578.tar.gz stable-diffusion-webui-gfx803-c4c63dd5e4760c56405cef2e71abc5c3604c4578.tar.bz2 stable-diffusion-webui-gfx803-c4c63dd5e4760c56405cef2e71abc5c3604c4578.zip |
resolve linter
-rw-r--r-- | modules/img2img.py | 7 | ||||
-rw-r--r-- | modules/ui.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/img2img.py b/modules/img2img.py index e46a6fde..f77dfd9f 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -67,7 +67,7 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp mask_image_path = inpaint_masks[0]
mask_image = Image.open(mask_image_path)
p.image_mask = mask_image
-
+
if use_png_info:
try:
info_img = img
@@ -88,14 +88,15 @@ def process_batch(p, use_png_info, png_info_props, png_info_dir, input_dir, outp p.sampler_name = parsed_parameters["Sampler"]
if("Steps" in png_info_props):
p.steps = int(parsed_parameters["Steps"])
- except:
+ except Exception as e:
+ print(f"batch png info: using ui set prompts; failed to get png info for {image}")
+ print(e)
p.prompt = prompt
p.negative_prompt = negative_prompt
p.seed = seed
p.cfg_scale = cfg_scale
p.sampler_name = sampler_name
p.steps = steps
- print(f"batch png info: using ui set prompts; failed to get png info for {image}")
proc = modules.scripts.scripts_img2img.run(p, *args)
if proc is None:
diff --git a/modules/ui.py b/modules/ui.py index a79b0e6c..d9b21534 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -948,7 +948,7 @@ def create_ui(): inpaint_full_res_padding,
inpainting_mask_invert,
img2img_batch_use_png_info,
- img2img_batch_png_info_props,
+ img2img_batch_png_info_props,
img2img_batch_png_info_dir,
img2img_batch_input_dir,
img2img_batch_output_dir,
|