Add GenFirst-EAR ImageNet-256 checkpoint and f16d16 VAE
#2
by zhengzhou - opened
Files changed (7)
5 unmodified lines67891011121333 unmodified lines47484948505152531 unmodified line555657585960616263646566566768697071617273747533 unmodified lines1091101111121131141151161175 unmodified lines## VAE bundles
- `vae/e2e-f8d4/`: ImageNet f8d4 VAE initialized from SD-VAE.- `vae/e2e-ear-f16d16/`: ImageNet f16d16 VAE trained from scratch jointly with the continuous autoregressive `EAR-L` prior (`GenFirst-EAR`, Table 6).- `vae/e2e-f16d32/`: decoder-finetuned f16d32 VAE used by the ImageNet-256 class-conditional results.- `vae/e2e-f16d32-nodecft/`: pre-decoder-finetune f16d32 VAE used by the33 unmodified lines
## Class-conditional priors
ImageNet-256, paired with `vae/e2e-f16d32/`:ImageNet-256 (`EiT` diffusion priors), paired with `vae/e2e-f16d32/`:
- `class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt`: weak model required for the paper's autoguidance evaluation.1 unmodified line- `class-conditional/imagenet256/eit-imagenet256-480ep.pt`- `class-conditional/imagenet256/eit-imagenet256-800ep.pt`
ImageNet-256 (`EAR` continuous autoregressive GMM prior, Table 6):
- `class-conditional/imagenet256/ear-imagenet256-640ep.pt`: end-to-end `500 + 140` epoch `EAR-L` + `f16d16` VAE checkpoint (`2.10` gFID, `246.7` IS with resampling CFG 1.5; `6.10` gFID, `138.4` IS unguided). Self-contained (embeds both `model_ema` and `vae`), directly accepted by `EAR/generate.py --ckpt`, `EAR/scripts/eval_ear.sh`, `eval_recon.py --vae-arch f16d16 --vae-ckpt`, and `EAR/train_e2e_ear.py --resume`.
ImageNet-512, paired with `vae/e2e-f16d32-nodecft/`:ImageNet-512 (`EiT` diffusion priors), paired with `vae/e2e-f16d32-nodecft/`:
- `class-conditional/imagenet512/eit-imagenet512-80ep.pt`- `class-conditional/imagenet512/eit-imagenet512-400ep.pt`
These prior checkpoints are directly accepted byThe `EiT` prior checkpoints are directly accepted by`Prior_only/generate.py --ckpt` and `Prior_only/scripts/eval_fid.sh` through its`CKPT` override. Do not convert or strip them.
33 unmodified lines
- `train_prior_only.py`, `train_t2i_frozen.py`, and `train_joint_frozen.py` save final checkpoints in direct evaluation format.- `EAR/train_e2e_ear.py` saves self-contained checkpoints (`model`, `model_ema`, `vae`, `vae_ema`, `vae_disc`, optimizers, `steps`, `args`) directly accepted by `EAR/generate.py` and `eval_recon.py --vae-arch f16d16`.- Class-conditional `train_e2e.py` checkpoints can be used directly by the top-level `generate.py`; all `train_e2e.py`, `train_e2e_vae.py`, and `train_decoder_ft.py` checkpoints can be evaluated directly for reconstruction.8 unmodified lines910111213141519 unmodified lines35363737383839404142437 unmodified lines5152535253545556575810 unmodified lines6970717273747536 unmodified lines11211311411511611711852 unmodified lines17117217317417517617717817918018118218318418518618779 unmodified lines2672682692552562572582592702712722732742752762772788 unmodified lines - variational-autoencoder - text-to-image - class-conditional-image-generation - autoregressive - sit - mmdit---19 unmodified linesrecovers detail. The result is a latent space that a diffusion prior fits wellwhile remaining a good autoencoder.
This release covers the **EiT** (diffusion-prior) instantiation. Theautoregressive **EAR** instantiation from the paper is not released.This release covers both instantiations from the paper: **EiT** (diffusionprior: `SiT` / `MMDiT`) and **EAR** (continuous autoregressive Transformer +GMM prior: `EAR-L`).
Two kinds of artifact are published, and they are used together:
7 unmodified lines| | ||---|---|| Developed by | Guangting Zheng, Yiyuan Zhang, Tao Yang, Yunpeng Chen, Rui Zhu, Jiajun Deng, Yanyong Zhang || Model type | Latent diffusion (flow matching / stochastic interpolant) with a jointly trained VAE || Prior architecture | SiT-XL and MMDiT-XL: 28 blocks, width 1152, 16 attention heads (~675M parameters) || Model type | Latent diffusion (`EiT`) and continuous autoregressive GMM (`EAR`) with a jointly trained VAE || Prior architecture | `SiT-XL` / `MMDiT-XL` (28 blocks, width 1152, 16 heads, ~675M params); `EAR-L` (24 blocks, width 1024, 16 heads, 64-component GMM head, ~312M params) || Text encoder (text-to-image) | CLIP-L, frozen, not modified by us || Precision | Weights released in fp32; sampling tested in bf16 || Framework | PyTorch |10 unmodified lines| EiT, 80 epochs | 256x256 | `f16d32` | 2.79 | 175.4 | 1.38 | 271.3 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-80ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EiT, 480 epochs | 256x256 | `f16d32` | 1.60 | 216.8 | 0.988 | 270.7 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-480ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EiT, 800 epochs | 256x256 | `f16d32` | **1.45** | 226.7 | **0.969** | 283.4 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-800ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EAR, 500 + 140 E2E epochs (`EAR-L`) | 256x256 | `f16d16` (embedded) | 6.10 | 138.4 | 2.10 | 246.7 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/ear-imagenet256-640ep.pt) · [VAE](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-ear-f16d16) || EiT, 80 epochs | 512x512 | `f16d32` | – | – | 1.63 | 278.9 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet512/eit-imagenet512-80ep.pt) || EiT, 400 epochs | 512x512 | `f16d32` | – | – | **1.23** | 286.1 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet512/eit-imagenet512-400ep.pt) |
36 unmodified lines| VAE | Downsample / channels | Initialized from | rFID | PSNR | SSIM | LPIPS | Download ||---|---|---|---|---|---|---|---|| `f8d4` | 8x, 4ch | SD-VAE (`stabilityai/sd-vae-ft-ema`) | **0.57** | 25.13 | 0.71 | 0.14 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f8d4) || `f16d16` (`e2e-ear-f16d16`, @256) | 16x, 16ch | from scratch (joint with `EAR-L`) | 1.26 | 21.93 | 0.58 | 0.17 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-ear-f16d16) || `f16d32` (decoder-ft, @256) | 16x, 32ch | VA-VAE (LightningDiT) | 0.36 | 25.82 | 0.74 | 0.12 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f16d32) || `f16d32` (no dec-ft, @512) | 16x, 32ch | VA-VAE (LightningDiT) | – | – | – | – | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f16d32-nodecft) || `f8d16` variant A | 8x, 16ch | FLUX.1 VAE | 0.23 | 29.43 | 0.85 | 0.07 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-flux-vae-sit-imagenet-s2) |52 unmodified lines```
`--model` must match the VAE: `SiT-XL/2` for `f8d4`, `SiT-XL/1` for `f16d32`.For the continuous autoregressive `GenFirst-EAR` checkpoint (which embeds both`EAR-L` and its `f16d16` VAE in a single `.pt` file):
```bashpython EAR/generate.py \ --ckpt /path/to/ear-imagenet256-640ep.pt \ --num-fid-samples 64 --per-proc-batch-size 64 \ --label-sampling random --cfg-scale 1.5 \ --sample-dir samples/ear_preview```
Text-to-image sampling, the guidance settings that reproduce the numbers above,and the full evaluation harness are documented in the repository under `docs/`.
79 unmodified linesnon-commercial research use only, with attribution.** This is stricter than theMIT licence on the code and is the binding constraint on these artifacts.
The code in the GitHub repository is MIT, but the repository as a whole is notusable commercially as it stands: the data preprocessing derives from[NVIDIA EDM2](https://github.com/NVlabs/edm2) under CC BY-NC-SA 4.0, andseveral vendored encoders and samplers trace back to Meta projects underCC BY-NC 4.0. The repository's `NOTICE` lists this component by component.The code in the GitHub repository (including `EAR/`) is MIT, but the repositoryas a whole is not usable commercially as it stands: the data preprocessingderives from [NVIDIA EDM2](https://github.com/NVlabs/edm2) underCC BY-NC-SA 4.0, and several vendored encoders and samplers trace back to Metaprojects under CC BY-NC 4.0. The repository's `NOTICE` lists this component bycomponent.
These weights are also derivative of upstream models, each carrying its ownterms that continue to apply and that you should verify for your use:8 unmodified lines910111213141519 unmodified lines35363737383839404142437 unmodified lines5152535253545556575810 unmodified lines6970717273747536 unmodified lines11211311411511611711852 unmodified lines17117217317417517617717817918018118218318418518618779 unmodified lines2672682692552562572582592702712722732742752762772788 unmodified lines - variational-autoencoder - text-to-image - class-conditional-image-generation - autoregressive - sit - mmdit---19 unmodified linesrecovers detail. The result is a latent space that a diffusion prior fits wellwhile remaining a good autoencoder.
This release covers the **EiT** (diffusion-prior) instantiation. Theautoregressive **EAR** instantiation from the paper is not released.This release covers both instantiations from the paper: **EiT** (diffusionprior: `SiT` / `MMDiT`) and **EAR** (continuous autoregressive Transformer +GMM prior: `EAR-L`).
Two kinds of artifact are published, and they are used together:
7 unmodified lines| | ||---|---|| Developed by | Guangting Zheng, Yiyuan Zhang, Tao Yang, Yunpeng Chen, Rui Zhu, Jiajun Deng, Yanyong Zhang || Model type | Latent diffusion (flow matching / stochastic interpolant) with a jointly trained VAE || Prior architecture | SiT-XL and MMDiT-XL: 28 blocks, width 1152, 16 attention heads (~675M parameters) || Model type | Latent diffusion (`EiT`) and continuous autoregressive GMM (`EAR`) with a jointly trained VAE || Prior architecture | `SiT-XL` / `MMDiT-XL` (28 blocks, width 1152, 16 heads, ~675M params); `EAR-L` (24 blocks, width 1024, 16 heads, 64-component GMM head, ~312M params) || Text encoder (text-to-image) | CLIP-L, frozen, not modified by us || Precision | Weights released in fp32; sampling tested in bf16 || Framework | PyTorch |10 unmodified lines| EiT, 80 epochs | 256x256 | `f16d32` | 2.79 | 175.4 | 1.38 | 271.3 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-80ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EiT, 480 epochs | 256x256 | `f16d32` | 1.60 | 216.8 | 0.988 | 270.7 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-480ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EiT, 800 epochs | 256x256 | `f16d32` | **1.45** | 226.7 | **0.969** | 283.4 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-800ep.pt) · [weak-20ep](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/eit-imagenet256-weak-20ep.pt) || EAR, 500 + 140 E2E epochs (`EAR-L`) | 256x256 | `f16d16` (embedded) | 6.10 | 138.4 | 2.10 | 246.7 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet256/ear-imagenet256-640ep.pt) · [VAE](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-ear-f16d16) || EiT, 80 epochs | 512x512 | `f16d32` | – | – | 1.63 | 278.9 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet512/eit-imagenet512-80ep.pt) || EiT, 400 epochs | 512x512 | `f16d32` | – | – | **1.23** | 286.1 | [checkpoint](https://huggingface.co/ByteDance-Seed/GenFirst/blob/main/class-conditional/imagenet512/eit-imagenet512-400ep.pt) |
36 unmodified lines| VAE | Downsample / channels | Initialized from | rFID | PSNR | SSIM | LPIPS | Download ||---|---|---|---|---|---|---|---|| `f8d4` | 8x, 4ch | SD-VAE (`stabilityai/sd-vae-ft-ema`) | **0.57** | 25.13 | 0.71 | 0.14 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f8d4) || `f16d16` (`e2e-ear-f16d16`, @256) | 16x, 16ch | from scratch (joint with `EAR-L`) | 1.26 | 21.93 | 0.58 | 0.17 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-ear-f16d16) || `f16d32` (decoder-ft, @256) | 16x, 32ch | VA-VAE (LightningDiT) | 0.36 | 25.82 | 0.74 | 0.12 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f16d32) || `f16d32` (no dec-ft, @512) | 16x, 32ch | VA-VAE (LightningDiT) | – | – | – | – | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-f16d32-nodecft) || `f8d16` variant A | 8x, 16ch | FLUX.1 VAE | 0.23 | 29.43 | 0.85 | 0.07 | [Hugging Face](https://huggingface.co/ByteDance-Seed/GenFirst/tree/main/vae/e2e-flux-vae-sit-imagenet-s2) |52 unmodified lines```
`--model` must match the VAE: `SiT-XL/2` for `f8d4`, `SiT-XL/1` for `f16d32`.For the continuous autoregressive `GenFirst-EAR` checkpoint (which embeds both`EAR-L` and its `f16d16` VAE in a single `.pt` file):
```bashpython EAR/generate.py \ --ckpt /path/to/ear-imagenet256-640ep.pt \ --num-fid-samples 64 --per-proc-batch-size 64 \ --label-sampling random --cfg-scale 1.5 \ --sample-dir samples/ear_preview```
Text-to-image sampling, the guidance settings that reproduce the numbers above,and the full evaluation harness are documented in the repository under `docs/`.
79 unmodified linesnon-commercial research use only, with attribution.** This is stricter than theMIT licence on the code and is the binding constraint on these artifacts.
The code in the GitHub repository is MIT, but the repository as a whole is notusable commercially as it stands: the data preprocessing derives from[NVIDIA EDM2](https://github.com/NVlabs/edm2) under CC BY-NC-SA 4.0, andseveral vendored encoders and samplers trace back to Meta projects underCC BY-NC 4.0. The repository's `NOTICE` lists this component by component.The code in the GitHub repository (including `EAR/`) is MIT, but the repositoryas a whole is not usable commercially as it stands: the data preprocessingderives from [NVIDIA EDM2](https://github.com/NVlabs/edm2) underCC BY-NC-SA 4.0, and several vendored encoders and samplers trace back to Metaprojects under CC BY-NC 4.0. The repository's `NOTICE` lists this component bycomponent.
These weights are also derivative of upstream models, each carrying its ownterms that continue to apply and that you should verify for your use:123version https://git-lfs.github.com/spec/v1oid sha256:33fc8b9007b9e5dc82af3af6dd4ec19b92b7a6c614b46684185cfeefbfb49577size 6098706822123version https://git-lfs.github.com/spec/v1oid sha256:00c5ae7ac2b7282666187cea279d41a715337d4034de2bf6b5a639757287496csize 11077240123version https://git-lfs.github.com/spec/v1oid sha256:084bc5ce9089736a04f87c2fdabce4cfe4519821044ed2b0dd5265d7030bc203size 1814123version https://git-lfs.github.com/spec/v1oid sha256:041722821c9e145a36c8f140f5c743bf9dd69c2bc11c4a319ee4bd65c0ea7e16size 265923110MANIFEST.md+17-3
MODEL_CARD.md+25-9
README.md+25-9
class-conditional/imagenet256/ear-imagenet256-640ep.ptAdded+3
vae/e2e-ear-f16d16/e2e-ear-f16d16-discriminator-ckpt.ptAdded+3
vae/e2e-ear-f16d16/e2e-ear-f16d16-latents-stats.ptAdded+3
vae/e2e-ear-f16d16/e2e-ear-f16d16.ptAdded+3