diff options
author | Billy Cao <aliencaocao@gmail.com> | 2022-11-03 05:08:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 05:08:26 +0000 |
commit | 688aa2c9c1ce6cf65c43b6113411a185e294412b (patch) | |
tree | 32514b496717c3375988e180d51daa608b045e60 /modules/interrogate.py | |
parent | fb1374791bf4b4c9b49de5378f29b12fdabcac97 (diff) | |
parent | d98eacea40c7a40227f36dbea9cf92f90489310b (diff) | |
download | stable-diffusion-webui-gfx803-688aa2c9c1ce6cf65c43b6113411a185e294412b.tar.gz stable-diffusion-webui-gfx803-688aa2c9c1ce6cf65c43b6113411a185e294412b.tar.bz2 stable-diffusion-webui-gfx803-688aa2c9c1ce6cf65c43b6113411a185e294412b.zip |
Merge branch 'AUTOMATIC1111:master' into fix_nowebui_arg
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)
|