|
Download README.md from WhiteYC/PixelMatte: direct link, hf CLI and curl.
- Browser
- Download file 2.8 kB
-
https://huggingface.co/WhiteYC/PixelMatte/resolve/main/README.md
- Command line
-
hf download hf://WhiteYC/PixelMatte/README.md
-
curl -L -o README.md https://huggingface.co/WhiteYC/PixelMatte/resolve/main/README.md
2.8 kB
| license: apache-2.0 | |
| library_name: pytorch | |
| pipeline_tag: image-segmentation | |
| tags: | |
| - image-matting | |
| - matting | |
| - alpha-matte | |
| - diffusion-transformer | |
| base_model: | |
| - HiDream-ai/HiDream-O1-Image | |
| - Photoroom/prxpixel-t2i | |
| # High-Fidelity Image Matting with Pixel-Space Diffusion Transformers | |
| [](https://white-yc.github.io/pixelmatte/) | |
| [](https://arxiv.org/abs/2611.34929) | |
| [](https://github.com/White-YC/pixelmatte) | |
| [](https://huggingface.co/spaces/WhiteYC/PixelMatte) | |
| PixelMatte predicts an alpha matte from an image and a trimap with a pixel-space diffusion transformer, in a single network | |
| evaluation and without a VAE. Please visit our [GitHub repository](https://github.com/White-YC/pixelmatte) for how to use these | |
| models. | |
| ## Structure | |
| ``` | |
| PixelMatte/ | |
| βββ HiDream-8B/ built on HiDream-O1-Image, network input with short side 2048 | |
| β βββ config.json | |
| β βββ model.safetensors | |
| βββ PRX-7B/ built on PRX, network input with short side 1024 | |
| βββ config.json | |
| βββ model.safetensors | |
| ``` | |
| Each `model.safetensors` contains the backbone, LayerShift and the High-Pass Refiner, stored in bfloat16. No text encoder or | |
| VAE is needed. | |
| ## Usage | |
| ```python | |
| from PIL import Image | |
| from pixelmatte import PixelMattePipeline # from the GitHub repository | |
| pipe = PixelMattePipeline.from_pretrained("WhiteYC/PixelMatte", subfolder="HiDream-8B") # or subfolder="PRX-7B" | |
| alpha = pipe(Image.open("photo.jpg"), Image.open("trimap.png")) # float32 array [H, W] in [0, 1] | |
| ``` | |
| The trimap is a single-channel image of the same size as the photo: 0 marks background, 255 foreground and any value in | |
| between (usually 128) the unknown region. | |
| ## BibTeX | |
| ```bibtex | |
| @misc{yang2026pixelmatte, | |
| title = {High-Fidelity Image Matting with Pixel-Space Diffusion Transformers}, | |
| author = {Baihan Yang and Xin Lin and Yufan Wei and Baiang Li and Yuheng Liu and Juanxi Tian and Xiaohui Xie and Truong Nguyen}, | |
| year = {2026}, | |
| eprint = {2611.34929}, | |
| archivePrefix = {arXiv}, | |
| primaryClass = {cs.CV}, | |
| url = {https://arxiv.org/abs/2611.34929} | |
| } | |
| ``` | |
| ## Licence | |
| The weights are released under the Apache License 2.0. `HiDream-8B` is fine-tuned from | |
| [HiDream-O1-Image](https://huggingface.co/HiDream-ai/HiDream-O1-Image) (MIT licence) and `PRX-7B` from | |
| [PRX](https://huggingface.co/Photoroom/prxpixel-t2i) (Apache License 2.0). | |