diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-11 15:33:57 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-11 15:33:57 +0000 |
commit | 6d09b8d1df3a96e1380bb1650f5961781630af96 (patch) | |
tree | 43c91f918ba0a53492c6e0a7410cd4c41df45230 /modules/hypernetworks/ui.py | |
parent | d682444ecc99319fbd2b142a12727501e2884ba7 (diff) | |
download | stable-diffusion-webui-gfx803-6d09b8d1df3a96e1380bb1650f5961781630af96.tar.gz stable-diffusion-webui-gfx803-6d09b8d1df3a96e1380bb1650f5961781630af96.tar.bz2 stable-diffusion-webui-gfx803-6d09b8d1df3a96e1380bb1650f5961781630af96.zip |
produce error when training with medvram/lowvram enabled
Diffstat (limited to 'modules/hypernetworks/ui.py')
-rw-r--r-- | modules/hypernetworks/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py index cdddcce1..3541a388 100644 --- a/modules/hypernetworks/ui.py +++ b/modules/hypernetworks/ui.py @@ -25,6 +25,8 @@ def train_hypernetwork(*args): initial_hypernetwork = shared.loaded_hypernetwork
+ assert not shared.cmd_opts.lowvram and not shared.cmd_opts.medvram, 'Training models with lowvram or medvram is not possible'
+
try:
sd_hijack.undo_optimizations()
|