mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add sd3
This commit is contained in:
@@ -44,7 +44,7 @@ def full_vae_decode(latents, model):
|
||||
upcast = (model.vae.dtype == torch.float16) and getattr(model.vae.config, 'force_upcast', False) and hasattr(model, 'upcast_vae')
|
||||
if upcast: # this is done by diffusers automatically if output_type != 'latent'
|
||||
model.upcast_vae()
|
||||
if hasattr(model.vae, "post_quant_conv"):
|
||||
if getattr(model.vae, "post_quant_conv", None) is not None:
|
||||
latents = latents.to(next(iter(model.vae.post_quant_conv.parameters())).dtype)
|
||||
|
||||
# normalize latents
|
||||
|
||||
Reference in New Issue
Block a user