From f5001246e27e78422bb11187160702bcaba7daca Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Thu, 8 Sep 2022 15:19:36 +0300 Subject: honor tiling settings for RealESRGAN also load scripts earlier to get errors before model loads --- webui.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'webui.py') 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() -- cgit v1.2.1