diff options
author | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-14 18:59:33 +0000 |
---|---|---|
committer | Yuval Aboulafia <yuval.abou@gmail.com> | 2022-12-14 18:59:33 +0000 |
commit | 957e15c4642199e0792eba817a15e244246fb012 (patch) | |
tree | d18e754f4f1aadfafb72ef14a67c16556296710f /modules/extras.py | |
parent | 685f9631b56ff8bd43bce24ff5ce0f9a0e9af490 (diff) | |
download | stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.tar.gz stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.tar.bz2 stable-diffusion-webui-gfx803-957e15c4642199e0792eba817a15e244246fb012.zip |
Correct singleton comparisons
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py index 0ad8deec..69b85465 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 = ''
|