mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-15 14:30:06 +08:00
Fix vae load with --cpu-vae
This commit is contained in:
parent
bcbd7884e3
commit
3a83168f87
@ -913,7 +913,7 @@ def vae_dtype(device=None, allowed_dtypes=[]):
|
|||||||
return torch.float16
|
return torch.float16
|
||||||
elif args.bf16_vae:
|
elif args.bf16_vae:
|
||||||
return torch.bfloat16
|
return torch.bfloat16
|
||||||
elif args.fp32_vae:
|
elif args.fp32_vae or (device and is_device_cpu(device)):
|
||||||
return torch.float32
|
return torch.float32
|
||||||
|
|
||||||
for d in allowed_dtypes:
|
for d in allowed_dtypes:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user