Files
diffusers/docs/source/en/api/models/autoencoder_kl_hunyuanimage_refiner.md
YiYi Xu a138d71ec1 HunyuanImage21 (#12333)
* add hunyuanimage2.1


---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
2025-10-23 22:31:12 -10:00

1.2 KiB

AutoencoderKLHunyuanImageRefiner

The 3D variational autoencoder (VAE) model with KL loss used in HunyuanImage2.1 for its refiner pipeline.

The model can be loaded with the following code snippet.

from diffusers import AutoencoderKLHunyuanImageRefiner

vae = AutoencoderKLHunyuanImageRefiner.from_pretrained("hunyuanvideo-community/HunyuanImage-2.1-Refiner-Diffusers", subfolder="vae", torch_dtype=torch.bfloat16)

AutoencoderKLHunyuanImageRefiner

autodoc AutoencoderKLHunyuanImageRefiner

  • decode
  • all

DecoderOutput

autodoc models.autoencoders.vae.DecoderOutput