nvidia/PiD
PiD — Pixel Diffusion Decoder
<p align="center"> <img src="figures/teaser.jpg" alt="PiD teaser" width="100%"> </p>
[Paper](https://arxiv.org/abs/2605.23902), [Project Page](https://research.nvidia.com/labs/sil/projects/pid/)
Yifan Lu, Qi Wu, Jay Zhangjie Wu, Zian Wang, Huan Ling, Sanja Fidler, Xuanchi Ren <br>
News
- [July 2026] PiD v1.5 checkpoints for FLUX, FLUX.2, and Qwen-Image are released. See the comparison page for the improvements:
- Improved decoding color fidelity
- Removed grid artifacts in image corners
- Improved anime and facial details
PiD reformulates the latent-to-pixel decoder as a conditional pixel-space diffusion model, unifying decoding and upsampling into a single generative module. It denoises directly in high-resolution pixel space and produces a super-resolved image in one pass. This repository hosts the released decoder checkpoints, plus the encoder/decoder ("VAE") weights they depend on.
The distilled PiD_* checkpoints in this repo are 4-step distilled. The non-PiD_* entries (ae.safetensors, flux2_ae.safetensors, sdxl_vae.safetensors, QwenImage_VAE_2d.pth, sd3_vae/, rae/, scale_rae/) are the corresponding encoder/decoder VAE weights that PiD plugs into — they're not PiD checkpoints themselves.
License/Terms of Use
This model is released under the NSCLv1 License. The work and any derivative works may only be used for non-commercial (research or evaluation) purposes.
Deployment Geography:
Global
PiD checkpoints
PiD checkpoint variants:
- `2k` - trained at 2048px, used as a 4× decoder (512 LDM → 2048 px), or as an 8× decoder for the Scale-RAE backbone (256 → 2048).
- `2kto4k_v1pt5` - the recommended up-to-4K decoder for FLUX, FLUX.2, and Qwen-Image latent spaces.
- `2kto4k` - the legacy up-to-4K decoder still used for SD3 and SDXL. The previous FLUX / FLUX.2 / Qwen-Image
2kto4kcheckpoints are deprecated and have been moved tocheckpoints_deprecated/.
Each checkpoint directory contains a single file, model_ema_bf16.pth, which is the EMA weights cast to bfloat16, the format the inference scripts load by default.
Distilled checkpoints
Undistilled checkpoints
PixelDiT 2k-to-4k checkpoint
Latent space → compatible LDMs
A PiD decoder is tied to a latent space, not to a single generative model. Any LDM that produces latents in that space can reuse the same checkpoint. The --backbone aliases below pick the right LDM pipeline; they all decode through the latent space's checkpoint above.
For example, Z-Image and Z-Image-Turbo share Flux1-dev's VAE, so they reuse the flux checkpoints (both 2k and 2kto4k_v1pt5) — no separate zimage checkpoint is shipped. Likewise qwenimage-2512 reuses the qwenimage decoder (same VAE, different transformer).
Usage
The decoder checkpoints are loaded by the inference scripts in the PiD codebase. The exact (backbone, ckpt_type) → path mapping is the single source of truth in `pid/_src/inference/checkpoint_registry.py` — clone the repo, point it at this snapshot, and the demos pick the right file automatically:
# Pull just the checkpoints/ tree into the repo root (skips this README and
# the teaser figure so they don't clobber the files in the source repo).
hf download nvidia/PiD --local-dir . --include "checkpoints/*"
# Then run any of the demos, e.g.:
PYTHONPATH=. python -m pid._src.inference.from_ldm --backbone flux \
--prompt "A photorealistic half-body portrait of a brown tabby cat with bold stripes sitting attentively on a rustic wooden kitchen table, soft morning light streaming sideways through a large window, fine fur detail and stripe patterns sharply visible, intense amber-green eyes in razor-sharp focus, warm farmhouse kitchen softly out of focus, cinematic shallow depth of field, ultra-detailed fur texture, photorealistic" \
--ldm_inference_steps 28 --save_xt_steps 24 \
--output_dir ./results/official_demo/flux \
--pid_inference_steps 4Pick --pid_ckpt_type 2kto4k_v1pt5 for FLUX / FLUX.2 / Qwen-Image 4K decoding. Use --pid_ckpt_type 2kto4k for SD3 / SDXL 4K decoding.
Citation
@article{lu2026pid,
title={PiD: Fast and High-Resolution Latent Decoding with Pixel Diffusion},
author={Lu, Yifan and Wu, Qi and Wu, Jay Zhangjie and Wang, Zian and Ling, Huan and Fidler, Sanja and Ren, Xuanchi},
journal={arXiv preprint arXiv:2605.23902},
year={2026}
}