mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-21 23:00:59 -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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user