Downloads · 30 days
3.2K
27% of all-time downloads
facebook/sapiens2-matting-1b
sapiens2-matting-1b is a image segmentation model from facebook. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. It is set up for sapiens2. The card lists the license as other.
Per-pixel human image matting with a soft alpha matte and pre-multiplied foreground RGB output.
Downloads · 30 days
3.2K
27% of all-time downloads
All-time downloads
11.7K
Public
Parameters
1.5B
6.2 GB on disk
Likes
11
Trending 1
Click a slice to open those files.
.safetensors12.3 GB · 100%
How the weights are stored.
F321.5B · 100%
From the Hugging Face model README
Per-pixel human image matting with a soft alpha matte and pre-multiplied foreground RGB output.
This repository contains the 1B Human Matting checkpoint, finetuned from the Sapiens2-1B pretrained backbone.
sapiens2_1b_matting.safetensorsInstall the Sapiens2 repo (pip install -e .), download the checkpoint, and run the demo:
# 1. Download the checkpoint to $SAPIENS_CHECKPOINT_ROOT/matting/
hf download facebook/sapiens2-matting-1b sapiens2_1b_matting.safetensors \
--local-dir ~/sapiens2_host/matting
# 2. Run the demo (edit INPUT, OUTPUT, and MODEL_NAME inside the script)
cd $SAPIENS_ROOT/sapiens/dense
./scripts/demo/matting.sh
See the Human Matting guide for details on inputs, outputs, and visualization options.
| Field | Value |
|---|---|
| Architecture | Sapiens2 ViT backbone + Human Matting head |
| Backbone parameters | 1.462 B |
| Backbone FLOPs | 4.715 T |
| Embedding dim | 1536 |
| Layers | 40 |
| Attention heads | 24 |
| Inference resolution | 1024 × 768 (H × W) |
| Patch size | 16 |
| Model | Params | FLOPs | Embed dim | Layers | Heads |
|---|---|---|---|---|---|
| Sapiens2-1B (this) | 1.462 B | 4.715 T | 1536 | 40 | 24 |
See the Sapiens2 Collection for all variants and other downstream task checkpoints.
Released under the Sapiens2 License.
@article{khirodkarsapiens2,
title={Sapiens2},
author={Khirodkar, Rawal and Wen, He and Martinez, Julieta and Dong, Yuan and Su, Zhaoen and Saito, Shunsuke},
journal={arXiv preprint arXiv:2604.21681},
year={2026}
}