diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-16 06:51:01 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-16 06:51:01 +0000 |
commit | 179e3ca752d0133470fd3ae44153ee0b71450c9f (patch) | |
tree | e6fb32b93bbd8d8f316026ee6e5ec6f918d59826 /modules/extras.py | |
parent | 2ce27728f6433911274efa67856315d22df56629 (diff) | |
download | stable-diffusion-webui-gfx803-179e3ca752d0133470fd3ae44153ee0b71450c9f.tar.gz stable-diffusion-webui-gfx803-179e3ca752d0133470fd3ae44153ee0b71450c9f.tar.bz2 stable-diffusion-webui-gfx803-179e3ca752d0133470fd3ae44153ee0b71450c9f.zip |
honor --hide-ui-dir-config option for #2807
Diffstat (limited to 'modules/extras.py')
-rw-r--r-- | modules/extras.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/extras.py b/modules/extras.py index 5b52b27d..0819ed37 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -35,6 +35,8 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_ imageArr.append(image)
imageNameArr.append(os.path.splitext(img.orig_name)[0])
elif extras_mode == 2:
+ assert not shared.cmd_opts.hide_ui_dir_config, '--hide-ui-dir-config option must be disabled'
+
if input_dir == '':
return outputs, "Please select an input directory.", ''
image_list = [file for file in [os.path.join(input_dir, x) for x in os.listdir(input_dir)] if os.path.isfile(file)]
|