Merge pull request #3 from 920232796/master

fix device support for mps
update the support for SD2.0
This commit is contained in:
Zac Liu
2022-12-06 09:17:57 +08:00
committed by GitHub
4 changed files with 75 additions and 4 deletions

View File

@@ -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