aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
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 dbc9dd54..6f483482 100644
--- a/webui.py
+++ b/webui.py
@@ -140,6 +140,11 @@ try:
except Exception:
pass
+
+if cmd_opts.tiling:
+ # this has to be done before the model is loaded
+ modules.sd_hijack.add_circular_option_to_conv_2d()
+
sd_config = OmegaConf.load(cmd_opts.config)
shared.sd_model = load_model_from_config(sd_config, cmd_opts.ckpt)
shared.sd_model = (shared.sd_model if cmd_opts.no_half else shared.sd_model.half())