diff options
author | Zac Liu <liuguang@baai.ac.cn> | 2022-11-30 03:14:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 03:14:04 +0000 |
commit | a39a57cb1f5964d9af2b541f7b352576adeeac0f (patch) | |
tree | ebae98ea40ecc5b34497424bee19310e9fac4068 /modules/devices.py | |
parent | 4b3c5bc24bffdf429c463a465763b3077fe55eb8 (diff) | |
parent | 0831ab476c626eb796b609acf8771177692bfab7 (diff) | |
download | stable-diffusion-webui-gfx803-a39a57cb1f5964d9af2b541f7b352576adeeac0f.tar.gz stable-diffusion-webui-gfx803-a39a57cb1f5964d9af2b541f7b352576adeeac0f.tar.bz2 stable-diffusion-webui-gfx803-a39a57cb1f5964d9af2b541f7b352576adeeac0f.zip |
Merge pull request #1 from 920232796/master
Add AltDiffusion
Diffstat (limited to 'modules/devices.py')
-rw-r--r-- | modules/devices.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices.py b/modules/devices.py index f00079c6..e69c1fe3 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -38,8 +38,8 @@ def get_optimal_device(): if torch.cuda.is_available(): return torch.device(get_cuda_device_string()) - if has_mps(): - return torch.device("mps") + # if has_mps(): + # return torch.device("mps") return cpu |