aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lowvram.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-05 05:12:37 +0000
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-05 05:12:37 +0000
commitd56a9cfe6a0611465d01e6881f79c2d9128744de (patch)
tree05878010fb1b638a0c6454fcff197fb0df3d4b93 /modules/lowvram.py
parenta6b245e46f28efe013637e5e9b0600b88df79dc9 (diff)
parenta32f270a4758597ff97dfc55894e3cacf118ce5c (diff)
downloadstable-diffusion-webui-gfx803-d56a9cfe6a0611465d01e6881f79c2d9128744de.tar.gz
stable-diffusion-webui-gfx803-d56a9cfe6a0611465d01e6881f79c2d9128744de.tar.bz2
stable-diffusion-webui-gfx803-d56a9cfe6a0611465d01e6881f79c2d9128744de.zip
Merge branch 'dev' into efficient-vae-methods
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 = {}