PixelHead is a distilled direct pixel decoder designed to replace the decoding step of the official Qwen-Image 2.1 VAE, outputting 4-channel RGBA. The v0.2 released on 11 24 (approximately 78.5 MiB in BF16) adopts a progressive refinement structure from 16 pixels to 1 pixels, trained with real 1024 × 1024 image generation trajectories along with perceptual and sharpness supervision; the faster v0.1 (48.8 MiB) also has a version with 2x upscaling. The authors state that when decoding 1024 × 1024 images on A100, the official VAE (644.2 MiB) takes approximately 201 ms, v0.2 takes approximately 61 ms, and v0.1 takes approximately 3.4 ms; using the official VAE output as a reference, the PSNR of v0.2 is 33.86 dB.
Why It Matters The original VAE decoder is large and slow; replacing it with a pixel head of only tens of MB saves VRAM and speeds up batch generation. The new version, released in response to community feedback, restores details in small text and portraits.
Hugging Face Likes 17 · Hugging Face Trending Score 17 · Hugging Face Downloads 0
License: Research Only (base model restrictions) · ComfyUI: Mentioned in model card · VRAM: ≈1 GB estimated
Reasons
- Hugging Face Likes 17 (indicating attention only); weights are MIT licensed, the accompanying ComfyUI node is listed on the Comfy Registry, and the repository includes zero-VAE workflows in both Chinese and English
- The model card provides comparison tables of size, latency, and PSNR / LPIPS for each version, along with 1:1 comparison images; the changes in v0.2 are explicitly stated as a response to feedback in Issue #1
Usage
- Install or update ComfyUI-QwenImage21-PixelHead to v1.2.0 or higher via ComfyUI-Manager, place qwen_image_2.1_pixel_head_v02_bf16.safetensors in models/pixel_heads (or models/vae), load the workflow from the repository's workflows folder, and use its loading node to replace VAE Decode
Risks
- It approximates the output of the official VAE and will not be clearer than the VAE; speed and quality metrics are self-reported by the authors
- Requires installing third-party custom nodes, which are unaudited; image generation still uses Qwen-Image 2.1, and the base model's license (marked as research-only in the program) still applies