aboutsummaryrefslogtreecommitdiffstats
path: root/modules/img2img.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-10 04:52:45 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-10 04:52:45 +0000
commit762265eab58cdb8f2d6398769bab43d8b8db0075 (patch)
tree7766901f867d84cf0662b2ae0d5bc55c673a08e8 /modules/img2img.py
parenta617d6488275a58da0627b3fed5f53593b2eb8b2 (diff)
downloadstable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.tar.gz
stable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.tar.bz2
stable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.zip
autofixes from ruff
Diffstat (limited to 'modules/img2img.py')
-rw-r--r--modules/img2img.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/img2img.py b/modules/img2img.py
index 9fc3a698..cdae301a 100644
--- a/modules/img2img.py
+++ b/modules/img2img.py
@@ -59,7 +59,7 @@ def process_batch(p, input_dir, output_dir, inpaint_mask_dir, args):
# try to find corresponding mask for an image using simple filename matching
mask_image_path = os.path.join(inpaint_mask_dir, os.path.basename(image))
# if not found use first one ("same mask for all images" use-case)
- if not mask_image_path in inpaint_masks:
+ if mask_image_path not in inpaint_masks:
mask_image_path = inpaint_masks[0]
mask_image = Image.open(mask_image_path)
p.image_mask = mask_image