diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-04 23:16:36 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-04 23:16:36 +0000 |
commit | f91d0c3d19ac2b849cd15a519f711f9281e782cd (patch) | |
tree | c9aa258638e795f1f7ecdc78079ed2b3c58c98c8 /webui.py | |
parent | a039878c0f583aab3cd75b32635ef00cd7a5c2b5 (diff) | |
download | stable-diffusion-webui-gfx803-f91d0c3d19ac2b849cd15a519f711f9281e782cd.tar.gz stable-diffusion-webui-gfx803-f91d0c3d19ac2b849cd15a519f711f9281e782cd.tar.bz2 stable-diffusion-webui-gfx803-f91d0c3d19ac2b849cd15a519f711f9281e782cd.zip |
add an option to enable tiling image generation
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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())
|