Summary

PixelMatte is a high-fidelity trimap image matting model from Baihan Yang and colleagues that separates a foreground subject from the background of an image with exceptional precision. Given an image and a rough mask of the subject, it predicts the alpha matte in a single forward pass directly in pixel space with a pixel-space diffusion transformer, with no VAE compression, so it preserves fine details like individual strands of hair and partially transparent regions. Two checkpoints ship: HiDream-8B for a 2048 short side and PRX-7B for a 1024 short side, each a single bf16 safetensors file. Note that the doc's claim that code was still coming soon is outdated: inference and evaluation code, both checkpoints, and an online demo were released November 27, 2026; only training code is still pending.

Key Features

One-step trimap matting directly in pixel space — no VAE compression, so fine detail is preserved
Two checkpoints: HiDream-8B (2048 short side) and PRX-7B (1024 short side), each a single bf16 safetensors
LayerShift per-layer calibration module corrects regional opacity in the unknown region
High-Pass Refiner sharpens boundary transitions at full resolution
Lowest SAD and gradient errors on P3M-500-NP, AM-2K, AIM-500 and RenderMatte-2K vs ViTMatte, DiffMatte and RenderMatte
No text encoder or VAE needed; inference runs in ~16–18 GB GPU memory (bf16)
CLI (`infer.py`) and Python `PixelMattePipeline` API; evaluation code for all four benchmarks included
Online Hugging Face demo live alongside the released checkpoints

About PixelMatte


Two modules improve quality beyond a plain diffusion pass: LayerShift per-layer calibration corrects regional opacity in the unknown region, and a High-Pass Refiner sharpens boundary transitions at full resolution. On benchmarks it records the lowest SAD and gradient errors on P3M-500-NP, AM-2K, AIM-500, and RenderMatte-2K against ViTMatte, DiffMatte, and RenderMatte, with 24 to 44 percent lower errors than RenderMatte on P3M-500-NP and AM-2K. No text encoder or VAE is needed, and inference runs in about 16 to 18 GB of GPU memory in bf16.


PixelMatte is free: code and model weights are Apache 2.0. Weights are on Hugging Face as WhiteYC/PixelMatte, code is on GitHub at White-YC/pixelmatte, and the project page is at white-yc.github.io/pixelmatte, with a live Hugging Face demo. The HiDream-8B backbone is fine-tuned from HiDream-O1-Image under MIT and PRX-7B from PRX under Apache 2.0. It ships a command-line tool and a Python PixelMattePipeline API, plus evaluation code for all four benchmarks. It is aimed at creators and developers who need precise cutouts with hair-level detail for compositing and editing.

FAQs about PixelMatte

Get more likes & reach the top of search results by adding this button on your site!

Embed button preview - Light theme
Embed button preview - Dark theme
TurboType Banner

Subscribe to the AI Search Newsletter

Get top updates in AI to your inbox every weekend. It's free!