diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-18 15:10:04 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-18 15:10:04 +0000 |
commit | b270ded268c92950a35a7a326da54496ef4151c8 (patch) | |
tree | 935626eeb3687a1dbfa7a1d87db24819e25a1616 /modules/sd_models.py | |
parent | be16d274f85a59b742f7480cdb79a596c972f598 (diff) | |
download | stable-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.py | 2 |
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
|