diff options
author | yfszzx <yfszzx@gmail.com> | 2022-10-20 15:58:52 +0000 |
---|---|---|
committer | yfszzx <yfszzx@gmail.com> | 2022-10-20 15:58:52 +0000 |
commit | d07cb46f34b3d9fe7a78b102f899ebef352ea56b (patch) | |
tree | 5f64790fd3e3060892f6120033ac822ac37d3345 /webui.py | |
parent | 604620a7f08d1126a8689f9f4bec8ade0801a69b (diff) | |
download | stable-diffusion-webui-gfx803-d07cb46f34b3d9fe7a78b102f899ebef352ea56b.tar.gz stable-diffusion-webui-gfx803-d07cb46f34b3d9fe7a78b102f899ebef352ea56b.tar.bz2 stable-diffusion-webui-gfx803-d07cb46f34b3d9fe7a78b102f899ebef352ea56b.zip |
inspiration pull request
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -72,6 +72,11 @@ def wrap_gradio_gpu_call(func, extra_outputs=None): return modules.ui.wrap_gradio_call(f, extra_outputs=extra_outputs)
def initialize():
+ if cmd_opts.ui_debug_mode:
+ class enmpty():
+ name = None
+ shared.sd_upscalers = [enmpty()]
+ return
modelloader.cleanup_models()
modules.sd_models.setup_model()
codeformer.setup_model(cmd_opts.codeformer_models_path)
|