Krea-2 Bridged Direct Pixel Head
English | 简体中文 | ComfyUI Node (GitHub) | Comfy Registry
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 | 48.8 MiB (1x) / 52.1 MiB (1x+2x), 4-ch RGBA, 5.55 ms (67.1×), 33.91 dB |
| 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).
简体中文
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)以及风格参考图输入。