mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix upcast
This commit is contained in:
@@ -56,7 +56,7 @@ def full_vae_decode(latents, model):
|
||||
if upcast:
|
||||
if hasattr(model, 'upcast_vae'): # this is done by diffusers automatically if output_type != 'latent'
|
||||
model.upcast_vae()
|
||||
model.vae = model.vae.to(dtype=torch.float32)
|
||||
# model.vae = model.vae.to(dtype=torch.float32)
|
||||
latents = latents.to(torch.float32)
|
||||
else:
|
||||
latents = latents.to(devices.device)
|
||||
|
||||
Reference in New Issue
Block a user