aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lowvram.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-05 04:52:50 +0000
committerGitHub <noreply@github.com>2023-08-05 04:52:50 +0000
commitc613416af375092f55b9bc8649c949e95d250c44 (patch)
tree69e3bf4d53f4113f192116c252a2e410bb5b1f90 /modules/lowvram.py
parent0ae2767ae6bb775de448b0d8cda1806edb2aef67 (diff)
parent22ecb78b51f7e6f0234cbc0efbde4ee9a2dc466f (diff)
downloadstable-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/lowvram.py')
-rw-r--r--modules/lowvram.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/lowvram.py b/modules/lowvram.py
index 3f830664..96f52b7b 100644
--- a/modules/lowvram.py
+++ b/modules/lowvram.py
@@ -15,6 +15,9 @@ def send_everything_to_cpu():
def setup_for_low_vram(sd_model, use_medvram):
+ if getattr(sd_model, 'lowvram', False):
+ return
+
sd_model.lowvram = True
parents = {}