aboutsummaryrefslogtreecommitdiffstats
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorKyuSeok Jung <wjdrbtjr495@gmail.com>2022-11-02 08:10:56 +0000
committerGitHub <noreply@github.com>2022-11-02 08:10:56 +0000
commitaf6fba247553e670ef5e2dcc1866279f9f065d6d (patch)
tree160b205b1c11025b0195c3857c8a73cccc0c80c5 /modules/interrogate.py
parent467cae167a3066ffa2b2a5e6f16dd42642219aba (diff)
parent95c6308ccd2e075d1fb804f5b98a4f0b07b87b7d (diff)
downloadstable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.tar.gz
stable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.tar.bz2
stable-diffusion-webui-gfx803-af6fba247553e670ef5e2dcc1866279f9f065d6d.zip
Merge branch 'master' into master
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)