aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-18 15:10:04 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-18 15:10:04 +0000
commitb270ded268c92950a35a7a326da54496ef4151c8 (patch)
tree935626eeb3687a1dbfa7a1d87db24819e25a1616 /modules/sd_models.py
parentbe16d274f85a59b742f7480cdb79a596c972f598 (diff)
downloadstable-diffusion-webui-gfx803-b270ded268c92950a35a7a326da54496ef4151c8.tar.gz
stable-diffusion-webui-gfx803-b270ded268c92950a35a7a326da54496ef4151c8.tar.bz2
stable-diffusion-webui-gfx803-b270ded268c92950a35a7a326da54496ef4151c8.zip
fix the issue with /sdapi/v1/options failing (this time for sure!)
fix automated tests downloading CLIP model
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r--modules/sd_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py
index 5813b550..fb31a793 100644
--- a/modules/sd_models.py
+++ b/modules/sd_models.py
@@ -494,7 +494,7 @@ def load_model(checkpoint_info=None, already_loaded_state_dict=None):
sd_model = None
try:
- with sd_disable_initialization.DisableInitialization(disable_clip=clip_is_included_into_sd):
+ with sd_disable_initialization.DisableInitialization(disable_clip=clip_is_included_into_sd or shared.cmd_opts.do_not_download_clip):
sd_model = instantiate_from_config(sd_config.model)
except Exception:
pass