aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authoryfszzx <yfszzx@gmail.com>2022-10-20 15:58:52 +0000
committeryfszzx <yfszzx@gmail.com>2022-10-20 15:58:52 +0000
commitd07cb46f34b3d9fe7a78b102f899ebef352ea56b (patch)
tree5f64790fd3e3060892f6120033ac822ac37d3345 /webui.py
parent604620a7f08d1126a8689f9f4bec8ade0801a69b (diff)
downloadstable-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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index 177bef74..5923905f 100644
--- a/webui.py
+++ b/webui.py
@@ -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)