aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-08 12:19:36 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-08 12:19:36 +0000
commitf5001246e27e78422bb11187160702bcaba7daca (patch)
treef61b564d088b5b2df74d86fae6c2ad4cb9cb7dd7 /webui.py
parent3eea3c4dab96e75afcafbd37c3da5a31cac0f9cb (diff)
downloadstable-diffusion-webui-gfx803-f5001246e27e78422bb11187160702bcaba7daca.tar.gz
stable-diffusion-webui-gfx803-f5001246e27e78422bb11187160702bcaba7daca.tar.bz2
stable-diffusion-webui-gfx803-f5001246e27e78422bb11187160702bcaba7daca.zip
honor tiling settings for RealESRGAN also
load scripts earlier to get errors before model loads
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/webui.py b/webui.py
index d846b843..c9421eec 100644
--- a/webui.py
+++ b/webui.py
@@ -153,6 +153,7 @@ def wrap_gradio_gpu_call(func):
return modules.ui.wrap_gradio_call(f)
+modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
try:
# this silences the annoying "Some weights of the model checkpoint were not used when initializing..." message at start.
@@ -174,8 +175,6 @@ else:
modules.sd_hijack.model_hijack.hijack(shared.sd_model)
-modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
-
def webui():
# make the program just exit at ctrl+c without waiting for anything
@@ -194,6 +193,5 @@ def webui():
demo.launch(share=cmd_opts.share, server_name="0.0.0.0" if cmd_opts.listen else None, server_port=cmd_opts.port)
-
if __name__ == "__main__":
webui()