aboutsummaryrefslogtreecommitdiffstats
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorSihan Wang <31711261+shwang95@users.noreply.github.com>2022-11-02 06:09:33 +0000
committerGitHub <noreply@github.com>2022-11-02 06:09:33 +0000
commit5c864be010b42373e51eac4c6869d561adca4202 (patch)
tree1de5f558ab056bc766ac51d3612356f0de52b1f8 /modules/interrogate.py
parent7bd8581e461623932ffbd5762ee931ee51f798db (diff)
parent65522ff157e4be4095a99421da04ecb0749824ac (diff)
downloadstable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.gz
stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.tar.bz2
stable-diffusion-webui-gfx803-5c864be010b42373e51eac4c6869d561adca4202.zip
Merge branch 'AUTOMATIC1111: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)