aboutsummaryrefslogtreecommitdiff
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-02 20:48:58 +0700
committerMuhammad Rizqi Nur <rizqinur2010@gmail.com>2022-11-02 20:48:58 +0700
commit237e79c77deec1924b3547f49402b9c1e51c9535 (patch)
tree589f9aea7ea27791df575371ff322d99ad3f3dbc /modules/interrogate.py
parentd5ea878b2aa117588d85287cbd8983aa52177df5 (diff)
parent172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff)
Merge branch 'master' into gradient-clipping
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)