mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 04:11:15 -08:00
When device is MPS, use CPU for GFPGAN instead
GFPGAN will not work if the device is MPS, so default to CPU instead.
This commit is contained in:
parent
84e97a98c5
commit
bdaa36c844
2 changed files with 4 additions and 4 deletions
|
|
@ -34,7 +34,7 @@ errors.run(enable_tf32, "Enabling TF32")
|
|||
|
||||
|
||||
device = get_optimal_device()
|
||||
device_codeformer = cpu if has_mps else device
|
||||
device_gfpgan = device_codeformer = cpu if device.type == 'mps' else device
|
||||
|
||||
|
||||
def randn(seed, shape):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue