Clean-room Apache-2.0 32×32 transparent RGBA pixel-art generators trained from scratch on Google Colab for English and Simplified Chinese prompts — running 100% locally in the browser via ONNX / WebGPU.
v3_reflow/ (50.7M · 60.2 MB INT8 · 4-Pass OKLab Flow)Pixel32 v3 replaces the 107M discrete-token Hourglass (v2 / v2.1) with a 50.7M continuous OKLab + Alpha Pixel-Space Flow Matching DiT (PixFlow32), then straightens its Euler 16s CFG 3.5 teacher trajectories via 1-stage Rectified Flow (Reflow) over 200k teacher pairs (2M views) into a 4-pass, CFG-free (1× conditional) student:
60.15 MB): v3_reflow/pixflow32_student_int8.onnx — Opset 18, FP32 I/O + 68 per-channel QInt8 DequantizeLinear MatMul weights (4-step trajectory endpoint cosine 0.9986 vs PyTorch FP32, 8-step 0.99998).102.04 MB): v3_reflow/pixflow32_student_fp16.onnx — Opset 18, FP16 I/O (0.9999998 4-step endpoint cosine).5.46 MB): v3_reflow/preset_embeddings.json — 41 EN + 中文 showcase presets with exact SigLIP-2 valid_len masks.Midpoint 2s (4 model forward passes total, cfg = 1.0, tier = 1) + OKLab → sRGB decode + frequency-weighted 20-medoid palette snap.107M v2.1 Teacher (32 passes) at half the parameters, 47% smaller INT8 download, and 2× fewer passes than v2 Turbo (8 passes), with 0.0 dust and 0 blanks.| Model | Prefix | Arch / Params | INT8 ONNX | Passes (CFG) | 3s Comp Cos | EN Cos (Top-1) | VU Cos | CN Cos (Top-1) |
|---|---|---|---|---|---|---|---|---|
| Pixel32 v3 Teacher | v3_teacher/ |
50.7M OKLab Flow |
102.0 MB (FP16) |
32 (Euler 16s, CFG 3.5) |
0.1900 |
0.1997 (100%) |
0.1903 |
0.1800 (95.8%) |
| Pixel32 v3 Reflow (Default) | v3_reflow/ |
50.7M OKLab Reflow |
60.2 MB |
4 (Midpoint 2s, 1× cond) |
0.1852 |
0.1978 (100%) |
0.1820 |
0.1757 (95.8%) |
| Pixel32 v2.1 Teacher | v2_1/ |
107M Discrete MDLM |
— | 32 (16s, CFG 3.5) |
0.1839 |
— | — | — |
| Pixel32 v2.1 Turbo | v2_1/ |
107M Discrete MDLM |
113.5 MB |
12 (12s min_p, 1× cond) |
0.1763 |
— | — | — |
| Pixel32 v2 Turbo | v2/ |
107M Discrete MDLM |
113.5 MB |
8 (8s fg_conf, 1× cond) |
0.1711 |
0.1795 |
0.1712 |
0.1627 |
| Pixel32 v1 (Original) | onnx/ |
48.4M Discrete MDLM |
53.5 MB |
32 (16s, CFG 3.0) |
— | 0.1991* |
— | 0.1679* |
*v1 numbers from original 1-seed 16-way Gate 3 eval; v2–v3 rows use the same standardized 3-seed unseen EN / val_unseen / CN benchmark.
Midpoint 2s, 4 Passes, 1× Conditional)val_unseen PromptsEuler 16s, CFG 3.5)v3_reflow/pixflow32_student_int8.onnx)google/siglip2-base-patch16-224 (max_length=64, lowercased; browser pruned EN+ZH INT8 weights at onnx/siglip2_enzh/text_model_enzh_int8.onnx + vocab_remap.bin).input_ids into SiglipTextModel (do not pass attention_mask into the text encoder), then pass the boolean non-padding mask text_mask ([1, 64], true for real tokens and false for pad) into PixFlow32 cross-attention.z: float32[1, 4, 32, 32] — standardized premultiplied (L, a, b, alpha) state (center=[0.5, 0, 0], scale=[0.5, 0.35, 0.35], alpha ∈ [-1, 1]), starting from N(0, I) at t = 0.t: float32[1] — flow time in [0, 1].text: float32[1, 64, 768] — last_hidden_state from SigLIP-2.pooled: float32[1, 768] — pooler_output from SigLIP-2.text_mask: bool[1, 64] — valid token mask (1..valid_len).tier: int64[1] — set to [1] (gold HQ tier).velocity: float32[1, 4, 32, 32].Midpoint 2s, 4 passes):v1 = f(z, 0.0); z_mid = z + 0.25 * v1; v_mid = f(z_mid, 0.25); z = z + 0.5 * v_midv1 = f(z, 0.5); z_mid = z + 0.25 * v1; v_mid = f(z_mid, 0.75); z = z + 0.5 * v_midz[:, 3] >= 0 for opaque pixels, clamp z[:, :3] to [-1, 1], denormalize OKLab (L = zL * 0.5 + 0.5, a = zA * 0.35, b = zB * 0.35), convert OKLab → sRGB, and apply frequency-weighted 20-medoid projection in OKLab space for crisp pixel-art palettes.v3_reflow/ — Recommended default 50.7M 4-pass Reflow student (pixflow32_student_int8.onnx, pixflow32_student_fp16.onnx, preset_embeddings.json, PyTorch EMA weights, student_manifest.json).v3_teacher/ — 50.7M PixFlow32 OKLab Flow teacher (pixflow32_ema.pt, pixflow32_fp16.onnx, teacher_manifest.json).onnx/siglip2_enzh/ — Pruned EN+ZH INT8 SigLIP-2 text encoder (133 MB) shared by v2 and v3 browser runtimes.v2/, v2_1/, v1_5/, v1_5b/, distill_v1/, onnx/ — Archived earlier discrete-diffusion checkpoints and ONNX exports preserved for reproducibility and live comparison.v2/checkpoints/latest.pt 2.0 GiBv3_teacher/training_state.pt 774 MiBv3_gate1b/training_state.pt 774 MiBv3_gate1b_fix/training_state.pt 774 MiBv1_5b/checkpoint_stage1.pt 739 MiBv1_5/checkpoint_stage2.pt 739 MiBv1_5b/checkpoint_stage2.pt 739 MiBdistill_v1/checkpoint_latest.pt 739 MiBv2/ema_teacher_weights.pt 410 MiBv2_1/ema_teacher_weights.pt 410 MiBv2_1/ema_turbo_weights.pt 410 MiBv2/ema_turbo_weights.pt 410 MiBcheckpoint_latest.pt 369 MiBv1_5/checkpoint_stage1.pt 369 MiBv2_1/model_v21_turbo_fp16.onnx 207 MiBv2/model_v2_turbo_fp16.onnx 207 MiBv3_reflow/pixflow32_student_ema.pt 194 MiBv3_reflow/pixflow32_student.pt 194 MiBv3_teacher/pixflow32_ema_12M.pt 194 MiBv3_teacher/pixflow32_ema_8M.pt 194 MiBv3_teacher/pixflow32_ema.pt 194 MiBv3_gate1b/pixflow32_ema.pt 194 MiBv3_gate1b_fix/pixflow32_ema.pt 194 MiBema_weights.pt 185 MiBv1_5/ema_teacher_weights.pt 185 MiBv1_5b/ema_teacher_weights.pt 185 MiBv1_5/ema_turbo_weights.pt 185 MiBv1_5b/ema_turbo_weights.pt 185 MiBdistill_v1/ema_weights.pt 185 MiBonnx/siglip2_enzh/text_model_enzh_int8.onnx 126 MiBv2/model_v2_turbo_int8.onnx 108 MiBv2_1/model_v21_turbo_int8.onnx 108 MiBv3_gate1b/pixflow32_fp16.onnx 97 MiBv3_gate1b_fix/pixflow32_fp16.onnx 97 MiBv3_reflow/pixflow32_student_fp16.onnx 97 MiBv3_teacher/pixflow32_fp16.onnx 97 MiBv1_5b/model_v15b_turbo_fp16.onnx 94 MiBv1_5/model_v15_turbo_fp16.onnx 94 MiBdistill_v1/model_distill_fp16.onnx 94 MiBonnx/model_fp16.onnx 94 MiBv3_reflow/pixflow32_student_int8.onnx 57 MiBv1_5b/model_v15b_turbo_int8.onnx 51 MiBv1_5/model_v15_turbo_int8.onnx 51 MiBdistill_v1/model_distill_int8.onnx 51 MiBonnx/model_int8.onnx 51 MiBv3_teacher/golden_replay.pt 558.1 KiBonnx/siglip2_enzh/vocab_remap.bin 500 KiB