diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-05 04:52:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-05 04:52:50 +0000 |
commit | c613416af375092f55b9bc8649c949e95d250c44 (patch) | |
tree | 69e3bf4d53f4113f192116c252a2e410bb5b1f90 /modules/sd_models_xl.py | |
parent | 0ae2767ae6bb775de448b0d8cda1806edb2aef67 (diff) | |
parent | 22ecb78b51f7e6f0234cbc0efbde4ee9a2dc466f (diff) | |
download | stable-diffusion-webui-gfx803-c613416af375092f55b9bc8649c949e95d250c44.tar.gz stable-diffusion-webui-gfx803-c613416af375092f55b9bc8649c949e95d250c44.tar.bz2 stable-diffusion-webui-gfx803-c613416af375092f55b9bc8649c949e95d250c44.zip |
Merge pull request #12227 from AUTOMATIC1111/multiple_loaded_models
option to keep multiple models in memory
Diffstat (limited to 'modules/sd_models_xl.py')
-rw-r--r-- | modules/sd_models_xl.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sd_models_xl.py b/modules/sd_models_xl.py index bc219508..01123321 100644 --- a/modules/sd_models_xl.py +++ b/modules/sd_models_xl.py @@ -98,10 +98,10 @@ def extend_sdxl(model): model.conditioner.wrapped = torch.nn.Module()
-sgm.modules.attention.print = lambda *args: None
-sgm.modules.diffusionmodules.model.print = lambda *args: None
-sgm.modules.diffusionmodules.openaimodel.print = lambda *args: None
-sgm.modules.encoders.modules.print = lambda *args: None
+sgm.modules.attention.print = shared.ldm_print
+sgm.modules.diffusionmodules.model.print = shared.ldm_print
+sgm.modules.diffusionmodules.openaimodel.print = shared.ldm_print
+sgm.modules.encoders.modules.print = shared.ldm_print
# this gets the code to load the vanilla attention that we override
sgm.modules.attention.SDP_IS_AVAILABLE = True
|