Krea-2 Bridged Direct Pixel Head
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).
Related Repositories
| Model | ComfyUI Node | Weights | Notes |
|---|---|---|---|
| Krea-2 (this repo) | Wither033/ComfyUI-Krea2-PixelHead | pocis/Krea-2-PixelHead | 52.6 MiB BF16, 6144d bridged RGB, 59.55 ms (24.7×), 33.33 dB |
| Qwen-Image 2.1 | Wither033/ComfyUI-QwenImage21-PixelHead | pocis/Qwen-Image-2.1-PixelHead | v0.3 Wavelet (79.3 MiB, 37.5 ms, 33.81 dB, LPIPS 0.0736) + v0.1 (48.8 MiB, 7.8 ms), 4-ch RGBA |
| MiniMax-H3 (preview) | Wither033/ComfyUI-MiniMaxH3-PixelHead | pocis/MiniMax-H3-Video-PixelHead | Experimental preview (not recommended for production yet; high-frequency textures are soft) |
| Training Code & Notes | Wither033/FastFrames-PixelHead-Trainer | HF Collection | Training toolkit, DiT hook notes, and Colab L4 scripts |
English
Krea-2-PixelHead is a 27.49M-parameter (52.6 MiB BF16) bridged direct pixel readout head for Krea-2 (Comfy-Org/Krea-2, krea/Krea-2-Turbo, krea/Krea-2-Raw, FP8/INT8/GGUF quantizations, and fine-tunes).
Following FastFrames (arXiv:2611.23226), it reads SingleStreamDiT's 6144-dim modulated target-image tokens right before last.linear (stripping text and style-reference tokens) together with the denoised 2×2 latent patches (d_lat = 64), decoding to RGB in 59.55 ms vs 1468.9 ms for the 242.0 MiB 3D-causal qwen_image_vae.safetensors (24.7× faster).
Files
| File | Size | Notes |
|---|---|---|
krea2_pixel_head_bf16.safetensors | 52.6 MiB | Recommended (BF16 trunk + FP32 output projection). |
krea2_pixel_head.safetensors | 104.9 MiB | Full FP32 checkpoint (27.49M params). |
workflows/01_Krea2_PixelHead_ZeroVAE_EN.json | 8 KB | Zero-VAE workflow + optional stock VAE comparison (English). |
workflows/01_Krea2_PixelHead_ZeroVAE_ZH.json | 8 KB | 免 VAE 直出与官方 VAE 对比工作流(简体中文)。 |
Benchmark (768×768 Held-Out Fine-Art Split, NVIDIA L4)
| Decoder | Size | Median Latency | Speedup | PSNR (↑) | LPIPS-VGG (↓) | Extra VRAM |
|---|---|---|---|---|---|---|
Official qwen_image_vae | 242.0 MiB | 1468.90 ms | 1.0× | (ref) | 0.0000 | ~1.8–5.5 GB |
Krea2PixelHead | 52.6 MiB | 59.55 ms | 24.7× | 33.33 dB | 0.2300 | < 0.2 GB |
1:1 Crops (Left: Official 242 MB VAE · Right: 52.6 MB Krea2PixelHead)
Lace Collar Portrait (37.1 dB) | Oil Portrait Hands (39.1 dB) |
|---|---|
![]() | ![]() |
Color Illustration (32.9 dB) | Copperplate Etching (30.8 dB) |
![]() | ![]() |
Setup in ComfyUI
- Install ComfyUI-Krea2-PixelHead via ComfyUI Manager (
comfyui-krea2-pixelhead) orgit clone. - Place
krea2_pixel_head_bf16.safetensorsintoComfyUI/models/pixel_heads/(orComfyUI/models/vae/). - Insert
Krea-2 Pixel Head Tapon theMODELwire beforeKSampler, and replaceVAEDecodewithKrea-2 Pixel Decode (Zero VAE).
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.
简体中文
Krea-2-PixelHead 是适配 Krea-2(含 Comfy-Org/Krea-2、8 步 krea2_turbo、krea2_raw 原版、FP8/INT8/GGUF 量化版及微调版)的免 VAE 像素直出头,BF16 权重体积 52.6 MiB。
模型在采样最后一步读取 SingleStreamDiT 进入 last.linear 前的 6144 维图像特征与 2×2 去噪潜块:
- 解码耗时:在 L4 上解码
768×768中位耗时从官方qwen_image_vae的1468.9 ms降至59.55 ms(约24.7×),文生图无需加载 VAE; - 还原精度:40 张留出油画与版画样本均值
33.33 dBPSNR(肖像类样本37.1~41.6 dB); - 兼容模式:支持 8 步 Turbo(
CFG = 1.0)、20~35 步多步采样(CFG > 1.0)以及风格参考图输入。
原作者署名、致谢与开源协议(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版权声明;配合各扩散底座模型使用时请同时遵守对应底模的许可证条款)。



