mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-05 05:12:28 -08:00
inspiration pull request
This commit is contained in:
parent
604620a7f0
commit
d07cb46f34
8 changed files with 225 additions and 7 deletions
5
webui.py
5
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue