aboutsummaryrefslogtreecommitdiffstats
path: root/script.js
diff options
context:
space:
mode:
authorPatryk Wychowaniec <pwychowaniec@pm.me>2022-10-20 17:22:59 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-10-21 06:52:12 +0000
commit7157e5d064741fa57ca81a2c6432a651f21ee82f (patch)
treeb55a09468a5611fc90d7487512db3a077b278d0b /script.js
parent5f4fec307c14dd7f817244ffa92e8a4a64abed0b (diff)
downloadstable-diffusion-webui-gfx803-7157e5d064741fa57ca81a2c6432a651f21ee82f.tar.gz
stable-diffusion-webui-gfx803-7157e5d064741fa57ca81a2c6432a651f21ee82f.tar.bz2
stable-diffusion-webui-gfx803-7157e5d064741fa57ca81a2c6432a651f21ee82f.zip
interrogate: Fix CLIP-interrogation on CPU
Currently, trying to perform CLIP interrogation on a CPU fails, saying: ``` RuntimeError: "slow_conv2d_cpu" not implemented for 'Half' ``` This merge request fixes this issue by detecting whether the target device is CPU and, if so, force-enabling `--no-half` and passing `device="cpu"` to `clip.load()` (which then does some extra tricks to ensure it works correctly on CPU).
Diffstat (limited to 'script.js')
0 files changed, 0 insertions, 0 deletions