Qwen-Image 2.1 Direct Pixel Head (v0.3 Haar Wavelet High-Fidelity & v0.1 Fast RGBA)
English | 简体中文 | ComfyUI Node (GitHub) | Comfy Registry
Original Author Attribution & Credits: Substantial parts of this pixel head architecture, ComfyUI tap-and-decode workflow, and training pipeline (no-skip ConvNeXt +
PixelShuffle1x/2xreadout, pre-linear CFG-exact feature tap + latent patch fusion, single-step teacher-forcedReplayBufferdistillation againstVAE(x̂0), RGBA readout, and 2D Haar wavelet + detached-LLadversarial refinement) are derived from and inspired by Seunghyun Ji (sorryhyun)'s original work insorryhyun/anima_lora,sorryhyun/anima_pixel_decoder, andsorryhyun/ComfyUI-Anima-PixelDecoder(MIT License,Copyright (c) 2026 Seunghyun Ji), alongside the foundational direct pixel readout formulation in FastFrames: Video Generation at Interactive Latency (arXiv:2611.23226) (Gene Chou et al., Apple & Cornell, 2026).
English
v0.3 Release Notes (2026-11-24 — 2D Haar Wavelet + Latent Spatial Highway + Detached-LL HF-GAN)
v0.3 (qwen_image_2.1_pixel_head_v03_bf16.safetensors, 79.3 MiB) upgrades v0.2 across speed, peak VRAM, and pixel fidelity on 1024×1024 multi-step generations:
3.07×faster thanv0.2(17.9×faster than Official644.2 MiBVAE) with44.2%lower activation VRAM (504 MiBvs904 MiB): Predicts512×512exact 2D Haar wavelet subbands(LL, LH, HL, HH)via norm-freeWaveletConvBlock2dlayers followed by an analytical0-parameteriDWTto1024×1024(37.51 msvs115.05 mson NVIDIA L4).- Multi-Scale
LatentSpatialHighway: Extracts neighbor-aware3×3spatial features directly from the64-channel denoised latentx0_hat_norminto the8px,4px, and2pxgrids, sharpening slanted barcode print (36.2 dB) and1pxcopperplate cross-hatching (+0.56 dBdomain gain overv0.2). - Zero-PSNR-Penalty High-Frequency Wavelet PatchGAN (
LL.detach()): Hinge adversarial training acts exclusively on(LH, HL, HH)while detaching low-frequencyLL, raising overallPSNRto33.81 dB(+0.79 dBoverv0.2,+1.19 dBoverv0.1;39.17 dBon close-up portraits) and loweringLPIPS-VGGto0.0736(-42.1%vsv0.1). - Node version requirement: Update ComfyUI-QwenImage21-PixelHead to
v1.3.0+(git pullor ComfyUI Manager) before loadingv0.3weights.v0.3,v0.2, andv0.1(1x/2x) weights are all loaded by the same node.
Checkpoint Guide
| File | Size | Version / Tier | Notes |
|---|---|---|---|
qwen_image_2.1_pixel_head_v03_bf16.safetensors |
79.3 MiB |
v0.3 Wavelet (1x) |
Recommended default. 37.51 ms on L4 (17.9×), 33.81 dB PSNR, 0.0736 LPIPS-VGG. |
qwen_image_2.1_pixel_head_v03.safetensors |
158.1 MiB |
v0.3 Wavelet (1x FP32) |
Full FP32 v0.3 checkpoint (41.43M params). |
qwen_image_2.1_pixel_head_bf16.safetensors |
48.8 MiB |
v0.1 Fast (1x) |
7.77 ms on L4 (3.4 ms A100) for rapid batch seed exploration. |
qwen_image_2.1_pixel_head_x2_bf16.safetensors |
52.1 MiB |
v0.1 Fast (1x + 2x) |
Includes 1x + single-pass 2x (1024 → 2048) branch via output_scale. |
qwen_image_2.1_pixel_head_v02_bf16.safetensors |
78.5 MiB |
v0.2 1px Pyramid (1x) |
Previous full-resolution 1px pyramid checkpoint (115.05 ms on L4). |
*_v02.safetensors / *.safetensors / *_x2.safetensors |
97.0–156.5 MiB |
v0.2 / v0.1 FP32 |
Full FP32 weights for v0.2 and v0.1. |
workflows/*.json |
18 KB |
ComfyUI Workflows | EN & ZH zero-VAE workflows (defaulting to v0.3). |
Benchmark (1024×1024 Held-Out Multi-Step Split on NVIDIA L4: 8s Turbo, 20s CFG=3.5, 24s CFG=4.5)
| Decoder | BF16 Size | 1024² Latency (L4) |
Speedup | Overall PSNR (↑) | Overall LPIPS-VGG (↓) | Portrait PSNR / LPIPS | Small Text PSNR / LPIPS | Etching PSNR / LPIPS |
|---|---|---|---|---|---|---|---|---|
| Official Qwen-Image 2.1 VAE | 644.2 MiB |
671.57 ms |
1.0× |
(ref) | 0.0000 |
(ref) | (ref) | (ref) |
PixelHead v0.3 (Haar Wavelet) |
79.3 MiB |
37.51 ms |
17.9× |
33.81 dB |
0.0736 |
39.17 / 0.0572 |
33.61 / 0.0727 |
27.41 / 0.0987 |
PixelHead v0.2 (1px Pyramid) |
78.5 MiB |
115.05 ms |
5.8× |
33.02 dB |
0.0808 |
38.25 / 0.0630 |
32.80 / 0.0792 |
26.85 / 0.1107 |
PixelHead v0.1 (8×8 Linear) |
48.8 MiB |
7.77 ms |
86.4× |
32.62 dB |
0.1272 |
37.29 / 0.1211 |
32.50 / 0.1235 |
26.82 / 0.1490 |
Full 6-row 1:1 4-way comparison board: samples/v03_4way_1to1_comparison.png.
Attribution, Credits & License
- Original Pixel Decoder & Training Pipeline Author: Seunghyun Ji (
sorryhyun) (GitHub@sorryhyun) — author and publisher ofsorryhyun/anima_lora(project/pixel_decoder,library/anima/pixel_head.py,scripts/pixel_head/),sorryhyun/anima_pixel_decoder, andsorryhyun/ComfyUI-Anima-PixelDecoder. Key architectural and training recipes adapted here — including the no-skip ConvNeXt +2×PixelShuffle1x/2xhead layout, pre-linearf_u + g·(f_c - f_u)feature tap + latent patch embedding, single-step teacher-forcedReplayBufferdistillation againstVAE(x̂0)across mixed Base/Turboσpoints, 4-channel RGBA readout, and 2D Haar wavelet(LL, LH, HL, HH)+ detached-LLadversarial training — build directly uponsorryhyun's work. - Foundational Paper: FastFrames: Video Generation at Interactive Latency (
arXiv:2611.23226) (Gene Chou, Guandao Yang, Fujun Luan, Lars Mescheder, Wei Dong, Stephan R. Richter, Vladlen Koltun — Apple & Cornell, 2026). - License: Released under the MIT License (retaining
Copyright (c) 2026 Seunghyun JiandCopyright (c) 2026 Wither033 / pocis). Usage with Qwen-Image 2.1, Krea-2, or MiniMax-H3 models remains subject to each respective upstream base model's license terms.
简体中文
v0.3 更新说明(2026-11-24 · 2D Haar 小波直出 + 潜空间多尺度桥 + 纯高频对抗精修)
本次发布的 v0.3(qwen_image_2.1_pixel_head_v03_bf16.safetensors,79.3 MiB) 在推理速度、运行显存和微距清晰度三个维度上全面升级了 v0.2:
- **解码速度比
v0.2快3.07×(比官方644.2 MiBVAE 快17.9×),激活显存下降44.2%**:改在512×512半分辨率网格预测 2D Haar 小波四子带(LL, LH, HL, HH)并通过零参数解析iDWT还原1024×1024(NVIDIA L4 耗时从115.05 ms降至 **37.51 ms**,运行期显存从904 MiB降至504 MiB); - 多尺度潜空间
3×3空间桥(LatentSpatialHighway):直接从64通道去噪潜变量提取跨 Token 邻域笔画特征注入8px、4px与2px层,斜排条码小字局部达36.2 dB,铜版交叉排线子集比v0.2提升+0.56 dB; - 锁死
LL.detach()的纯高频小波 PatchGAN:对抗损失只约束高频边缘(LH, HL, HH)不动底色,总体PSNR升至 **33.81 dB**(近景人像达 **39.17 dB**,单张局部41.2 dB),LPIPS-VGG降至 **0.0736**(比v0.1下降42.1%); - 使用前请更新节点插件:请先将
ComfyUI-QwenImage21-PixelHead更新至 **v1.3.0+**(git pull或通过 ComfyUI Manager 更新),再将权重放入ComfyUI/models/pixel_heads/或ComfyUI/models/vae/。
权重选型建议
- 日常出图默认推荐:下载
qwen_image_2.1_pixel_head_v03_bf16.safetensors(79.3 MiB),37.5 ms低延迟下兼顾近景肤质、小字与细密排线; - 大批量快速抽卡 /
2x一步预览:可选用qwen_image_2.1_pixel_head_bf16.safetensors(48.8 MiB,L47.77 ms)或_x2_bf16.safetensors(52.1 MiB)。
相关仓库
| 适配模型 | ComfyUI 节点仓库 | Hugging Face 权重 | 说明 |
|---|---|---|---|
| Qwen-Image 2.1 (本仓库) | Wither033/ComfyUI-QwenImage21-PixelHead | pocis/Qwen-Image-2.1-PixelHead | v0.3 小波版 (79.3 MiB, 37.5 ms, LPIPS 0.0736) + v0.1 快速版 (48.8 MiB),4 通道 RGBA |
| Krea-2 | Wither033/ComfyUI-Krea2-PixelHead | pocis/Krea-2-PixelHead | 52.6 MiB BF16,6144d 降维桥 RGB,59.55 ms (24.7×) |
| MiniMax-H3 (预览版) | Wither033/ComfyUI-MiniMaxH3-PixelHead | pocis/MiniMax-H3-Video-PixelHead | 实验预览版(复杂运动碎纹理偏软) |
| 训练框架与复盘 | Wither033/FastFrames-PixelHead-Trainer | HF 合集页 | 通用训练框架与 01~07 训练脚本(MIT License) |
原作者署名、致谢与开源协议(Attribution & License)
- 原作者与核心管线致谢:本项目的像素头核心结构、ComfyUI
Tap + Decode挂载范式及训练管线(包括无跳连 ConvNeXt +2× PixelShuffle1x/2x解码结构、末层线性映射前f_u + g·(f_c - f_u)特征截获与潜变量块融合、基于VAE(x̂0)的跨 Base/Turbo 单步ReplayBuffer蒸馏、RGBA 四通道读出,以及v0.3的 2D Haar 小波子带预测与锁定低频LL的高频对抗训练思路)衍生并改编自原作者 **Seunghyun Ji (sorryhyun)**(GitHub@sorryhyun)在sorryhyun/anima_lora、sorryhyun/anima_pixel_decoder与sorryhyun/ComfyUI-Anima-PixelDecoder中的开创性开源工作(MIT License,Copyright (c) 2026 Seunghyun Ji)。特此向原作者sorryhyun致谢! - 基础论文参考:直接像素读出(Direct Pixel Readout)理论框架参考 FastFrames: Video Generation at Interactive Latency (
arXiv:2611.23226)(Gene Chou et al., Apple & Cornell, 2026)。 - 开源协议:MIT License(完整保留原作者
Copyright (c) 2026 Seunghyun Ji版权声明;配合各扩散底座模型使用时请同时遵守对应底模的许可证条款)。
Model tree for pocis/Qwen-Image-2.1-PixelHead
Base model
Qwen/Qwen-Image-2.1