aboutsummaryrefslogtreecommitdiffstats
path: root/modules/extras.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-12-24 07:17:38 +0000
committerGitHub <noreply@github.com>2022-12-24 07:17:38 +0000
commitee65237d69f015a53fc9dffa363e9161ba83fe40 (patch)
treef9cb9ec81a2ce52cf8d05564723c844b157a25d4 /modules/extras.py
parent7578b50ba66cefbdd80a09ea578252e582160785 (diff)
parent957e15c4642199e0792eba817a15e244246fb012 (diff)
downloadstable-diffusion-webui-gfx803-ee65237d69f015a53fc9dffa363e9161ba83fe40.tar.gz
stable-diffusion-webui-gfx803-ee65237d69f015a53fc9dffa363e9161ba83fe40.tar.bz2
stable-diffusion-webui-gfx803-ee65237d69f015a53fc9dffa363e9161ba83fe40.zip
Merge pull request #5747 from yuvalabou/singleton-comparison
Format singleton comparisons
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py
index 704e5165..6fa7d856 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -188,7 +188,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
for op in extras_ops:
image, info = op(image, info)
- if opts.use_original_name_batch and image_name != None:
+ if opts.use_original_name_batch and image_name is not None:
basename = os.path.splitext(os.path.basename(image_name))[0]
else:
basename = ''