aboutsummaryrefslogtreecommitdiffstats
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorpapuSpartan <30642826+papuSpartan@users.noreply.github.com>2022-11-01 19:05:57 +0000
committerGitHub <noreply@github.com>2022-11-01 19:05:57 +0000
commitd0d74e459dee07fdb63783812a1a442d03fbe54f (patch)
tree18e08ec3d8c0450a6328aae0355403854944cd02 /modules/interrogate.py
parent401350cd59555439570ba5bc95f0ac5698e372e4 (diff)
parent198a1ffcfc963a3d74674fad560e87dbebf7949f (diff)
downloadstable-diffusion-webui-gfx803-d0d74e459dee07fdb63783812a1a442d03fbe54f.tar.gz
stable-diffusion-webui-gfx803-d0d74e459dee07fdb63783812a1a442d03fbe54f.tar.bz2
stable-diffusion-webui-gfx803-d0d74e459dee07fdb63783812a1a442d03fbe54f.zip
Merge branch 'AUTOMATIC1111:master' into js
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)