Fix LivePreview not working with fp8 UNet (#2412)

* fix dtype
This commit is contained in:
Haoming 2024-12-05 19:33:35 +08:00 committed by GitHub
parent bae1bba891
commit 9fbba69297
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ device_interrogate: torch.device = memory_management.text_encoder_device() # fo
device_gfpgan: torch.device = memory_management.get_torch_device() # will be managed by memory management system
device_esrgan: torch.device = memory_management.get_torch_device() # will be managed by memory management system
device_codeformer: torch.device = memory_management.get_torch_device() # will be managed by memory management system
dtype: torch.dtype = memory_management.unet_dtype()
dtype: torch.dtype = torch.float32 if memory_management.unet_dtype() is torch.float32 else torch.float16
dtype_vae: torch.dtype = memory_management.vae_dtype()
dtype_unet: torch.dtype = memory_management.unet_dtype()
dtype_inference: torch.dtype = memory_management.unet_dtype()