diff options
author | evshiron <evshiron@gmail.com> | 2022-11-02 12:31:33 +0800 |
---|---|---|
committer | evshiron <evshiron@gmail.com> | 2022-11-02 12:31:33 +0800 |
commit | 51e0a83969925e6b7b12b9b087d028c16ce04e3c (patch) | |
tree | bbccf573783cd2449e3774fe949c81dced83b6d4 /modules/interrogate.py | |
parent | 1a4ff2de6a835cd8cc1590bbc1a8dedb5ad37e5b (diff) | |
parent | 55688c48806f9383f3a56f6b9a0ab8fbf205edd2 (diff) |
Merge branch 'master' into fix/progress-api
Diffstat (limited to 'modules/interrogate.py')
-rw-r--r-- | modules/interrogate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/interrogate.py b/modules/interrogate.py index 65b05d34..9769aa34 100644 --- a/modules/interrogate.py +++ b/modules/interrogate.py @@ -56,9 +56,9 @@ class InterrogateModels: import clip
if self.running_on_cpu:
- model, preprocess = clip.load(clip_model_name, device="cpu")
+ model, preprocess = clip.load(clip_model_name, device="cpu", download_root=shared.cmd_opts.clip_models_path)
else:
- model, preprocess = clip.load(clip_model_name)
+ model, preprocess = clip.load(clip_model_name, download_root=shared.cmd_opts.clip_models_path)
model.eval()
model = model.to(devices.device_interrogate)
|