aboutsummaryrefslogtreecommitdiffstats
path: root/modules/interrogate.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-06 08:27:54 +0000
committerGitHub <noreply@github.com>2022-11-06 08:27:54 +0000
commit07d1bd426722b4c53b38ff682c5aab53177d8530 (patch)
tree4fdad803a4536cec2bd3e622c5f4cfb980f04550 /modules/interrogate.py
parent3f3d14afd5abd07d3843370dc1c28be299dbdbab (diff)
parent6e4de5b4422dfc0d45063b2c8c78b19f00321615 (diff)
downloadstable-diffusion-webui-gfx803-07d1bd426722b4c53b38ff682c5aab53177d8530.tar.gz
stable-diffusion-webui-gfx803-07d1bd426722b4c53b38ff682c5aab53177d8530.tar.bz2
stable-diffusion-webui-gfx803-07d1bd426722b4c53b38ff682c5aab53177d8530.zip
Merge branch 'master' into roy.add_simple_interrogate_api
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)