lavinal712/transfusion-vae

来源:🤗mit84M 参数335 MBsafetensors✓ 2 个校验和561 天前更新
或提交种子

Transfusion - VAE

How to use with 🧨 diffusers

from diffusers.models import AutoencoderKL
vae = AutoencoderKL.from_pretrained("lavinal712/transfusion-vae")

Model

This model was trained for 50 (legacy: 7) epochs on ImageNet, COCO and FFHQ (legacy: ImageNet), with training parameters following the original Transfusion paper.

$$\mathcal{L}{\mathrm{VAE}} = \mathcal{L}1 + \mathcal{L}{\mathrm{LPIPS}} + 0.5\mathcal{L}{\mathrm{GAN}} + 0.2\mathcal{L}{\mathrm{ID}} + 0.000001\mathcal{L}{\mathrm{KL}}$$

Evaluation

ImageNet 2012 (256x256, val, 50000 images)

Model rFID PSNR SSIM LPIPS
Transfusion-VAE 0.408 28.723 0.845 0.081
SD-VAE 0.692 26.910 0.772 0.130

COCO 2017 (256x256, val, 5000 images)

Model rFID PSNR SSIM LPIPS
Transfusion-VAE 2.749 28.556 0.855 0.078
SD-VAE 4.246 26.622 0.784 0.127

Evaluation (legacy)

ImageNet 2012 (256x256, val, 50000 images)

Model rFID PSNR SSIM LPIPS
Transfusion-VAE 0.567 28.195 0.829 0.100
SD-VAE 0.692 26.910 0.772 0.130

Paper: Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Model

Dataset: ImageNet, COCO, FFHQ

Base Code: lavinal712/AutoencoderKL

Training Code: lavinal712/AutoencoderKL/tree/transfusion_vae