add an option to enable tiling image generation

This commit is contained in:
AUTOMATIC
2022-09-05 02:16:36 +03:00
parent a039878c0f
commit f91d0c3d19
3 changed files with 12 additions and 0 deletions

View File

@@ -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())