diff options
author | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 00:25:08 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 00:25:08 +0700 |
commit | f8c6468d42e1202f7aeaeb961ab003aa0a2daf99 (patch) | |
tree | a2542ce9bd8bba1e8aa93acd510a12ca8a0b344f /modules/interrogate.py | |
parent | 7c8c3715f552378cf81ad28f26fad92b37bd153d (diff) | |
parent | 198a1ffcfc963a3d74674fad560e87dbebf7949f (diff) |
Merge branch 'master' into vae-picker
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)
|