aboutsummaryrefslogtreecommitdiff
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-01 18:19:12 +0300
committerGitHub <noreply@github.com>2022-11-01 18:19:12 +0300
commitd7622d97f213897a1e8fbebdfeae983dac06b043 (patch)
tree74e8e835aa854bbe4fb7bec6c0f39453e989ebf2 /modules/interrogate.py
parentf071a1d25aa8b35bb6406a133df1d03ae5ea8d01 (diff)
parent095931afa43f9d469d711f7e67809a2c09a047bd (diff)
Merge pull request #4004 from mamawr/master
Added "--clip-models-path" switch
Diffstat (limited to 'modules/interrogate.py')
-rw-r--r--modules/interrogate.py4
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)