diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-12-02 06:46:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-02 06:46:19 +0000 |
commit | 88736b5557a64f47dec36057acc0f97f9b89f2dc (patch) | |
tree | 1bc67b9177119e760c1d5dfdb2ee8d53b0c37546 /modules | |
parent | 9eadc4f146daf9a43290e0f469c22dd5549572a3 (diff) | |
parent | 3cd6e1d0a0877e6f1ac931c8253e6eee09da3805 (diff) | |
download | stable-diffusion-webui-gfx803-88736b5557a64f47dec36057acc0f97f9b89f2dc.tar.gz stable-diffusion-webui-gfx803-88736b5557a64f47dec36057acc0f97f9b89f2dc.tar.bz2 stable-diffusion-webui-gfx803-88736b5557a64f47dec36057acc0f97f9b89f2dc.zip |
Merge pull request #14131 from read-0nly/patch-1
Update devices.py - Make 'use-cpu all' actually apply to 'all'
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices.py b/modules/devices.py index 1d4eb563..f97f9cfb 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -38,7 +38,7 @@ def get_optimal_device(): def get_device_for(task): - if task in shared.cmd_opts.use_cpu: + if task in shared.cmd_opts.use_cpu or "all" in shared.cmd_opts.use_cpu: return cpu return get_optimal_device() |