mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
add an option to enable tiling image generation
This commit is contained in:
5
webui.py
5
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())
|
||||
|
Reference in New Issue
Block a user