---
title: sapiens2-seg-1b
canonical_url: "https://www.modelscope.cn/models/facebook/sapiens2-seg-1b"
md_url: "https://www.modelscope.cn/models/facebook/sapiens2-seg-1b.md"
repository: facebook/sapiens2-seg-1b
last_updated: 2026-06-15
license: other
pipeline_tag: image-segmentation
tasks:
  - image-segmentation
model_type:
  - sapiens2
architectures:
  - Sapiens2ForSemanticSegmentation
base_model:
  - facebook/sapiens2-pretrain-1b
base_model_relation: finetune
parameters: 1.5B
tensor_type:
  - F32
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 207
stars: 0
tags:
  - sapiens
  - sapiens2
  - human-centric
  - seg
  - transformers
---

# sapiens2-seg-1b

> sapiens2-seg-1b - facebook 在 ModelScope 开源的模型。Sapiens2-1B-Body-Part

facebook/sapiens2-seg-1b 是 ModelScope 魔搭社区上的 1.5B 参数image-segmentation模型，采用 other 许可，基于 facebook/sapiens2-pretrain-1b 构建。

- **Repository**: facebook/sapiens2-seg-1b
- **License**: other
- **Tasks**: image-segmentation
- **Parameters**: 1.5B
- **Base model**: facebook/sapiens2-pretrain-1b
- **Tags**: sapiens, sapiens2, human-centric, seg, transformers
- **Downloads**: 207
- **Stars**: 0
- **Last updated**: 2026-06-15

Source: https://www.modelscope.cn/models/facebook/sapiens2-seg-1b

---

# Sapiens2-1B-Body-Part

Per-pixel body-part segmentation with 29 classes (28 parts + background).

This repository contains the **1B Body-Part Segmentation** checkpoint, finetuned from the [Sapiens2-1B pretrained backbone](https://huggingface.co/facebook/sapiens2-pretrain-1b).

- 📄 **Paper:** [arXiv:2604.21681](https://arxiv.org/pdf/2604.21681)
- 🌐 **Project Page:** [rawalkhirodkar.github.io/sapiens2](https://rawalkhirodkar.github.io/sapiens2)
- 💻 **Code:** [github.com/facebookresearch/sapiens2](https://github.com/facebookresearch/sapiens2)

## Model Details

- **Developed by:** Meta
- **Model type:** Vision Transformer
- **License:** [Sapiens2 License](https://github.com/facebookresearch/sapiens2/blob/main/LICENSE.md)
- **Task:** seg
- **Base model:** [facebook/sapiens2-pretrain-1b](https://huggingface.co/facebook/sapiens2-pretrain-1b)
- **Format:** safetensors
- **File:** `sapiens2_1b_seg.safetensors`

## Quick Start

Install the [Sapiens2 repo](https://github.com/facebookresearch/sapiens2) (`pip install -e .`), download the checkpoint, and run the demo:

```bash
# 1. Download the checkpoint to $SAPIENS_CHECKPOINT_ROOT/seg/
hf download facebook/sapiens2-seg-1b sapiens2_1b_seg.safetensors \
    --local-dir ~/sapiens2_host/seg

# 2. Run the demo (edit INPUT, OUTPUT, and MODEL_NAME inside the script)
cd $SAPIENS_ROOT/sapiens/dense
./scripts/demo/seg.sh
```

See the [Body-Part Segmentation guide](https://github.com/facebookresearch/sapiens2/blob/main/docs/SEG.md) for details on inputs, outputs, and visualization options.

## Model Card

| Field | Value |
|-------|-------|
| Architecture | Sapiens2 ViT backbone + Body-Part Segmentation 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 |

### Sapiens2-Body-Part Family

| Model | Params | FLOPs | Embed dim | Layers | Heads |
|-------|--------|-------|-----------|--------|-------|
| [Sapiens2-0.4B](https://huggingface.co/facebook/sapiens2-seg-0.4b) | 0.398 B | 1.260 T | 1024 | 24 | 16 |
| [Sapiens2-0.8B](https://huggingface.co/facebook/sapiens2-seg-0.8b) | 0.818 B | 2.592 T | 1280 | 32 | 16 |
| **Sapiens2-1B** *(this)* | 1.462 B | 4.715 T | 1536 | 40 | 24 |
| [Sapiens2-1B-4K](https://huggingface.co/facebook/sapiens2-pretrain-1b-4k) | 1.607 B | — | 1536 | 40 | 24 |
| [Sapiens2-5B](https://huggingface.co/facebook/sapiens2-seg-5b) | 5.071 B | 15.722 T | 2432 | 56 | 32 |

See the [Sapiens2 Collection](https://huggingface.co/collections/facebook/sapiens2) for all variants and other downstream task checkpoints.

## Intended Use

- Body-Part Segmentation on human-centric imagery
- Research on human-centric vision

## License

Released under the [Sapiens2 License](https://github.com/facebookresearch/sapiens2/blob/main/LICENSE.md).

## Citation

```bibtex
@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}
}
```
