Instructions to use facebook/sapiens2-pose-5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sapiens2
How to use facebook/sapiens2-pose-5b with sapiens2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- sapiens
How to use facebook/sapiens2-pose-5b with sapiens:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Transformers
How to use facebook/sapiens2-pose-5b with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, Sapiens2ForPoseEstimation processor = AutoImageProcessor.from_pretrained("facebook/sapiens2-pose-5b") model = Sapiens2ForPoseEstimation.from_pretrained("facebook/sapiens2-pose-5b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from facebook/sapiens2-pose-5b: direct link, hf CLI and curl.
- Browser
- Download file 3.65 kB
-
https://huggingface.co/facebook/sapiens2-pose-5b/resolve/main/README.md
- Command line
-
hf download hf://facebook/sapiens2-pose-5b/README.md
-
curl -L -o README.md https://huggingface.co/facebook/sapiens2-pose-5b/resolve/main/README.md
3.65 kB
| license: other | |
| license_name: sapiens2-license | |
| license_link: https://github.com/facebookresearch/sapiens2/blob/main/LICENSE.md | |
| pipeline_tag: keypoint-detection | |
| library_name: sapiens2 | |
| base_model: facebook/sapiens2-pretrain-5b | |
| tags: | |
| - sapiens | |
| - sapiens2 | |
| - human-centric | |
| - pose | |
| - transformers | |
| # Sapiens2-5B-Pose | |
| 308-keypoint top-down pose estimation including detailed face (274 keypoints), hand, and foot keypoints. Predictions follow the [Sociopticon keypoint format](https://github.com/facebookresearch/sapiens2/blob/main/sapiens/pose/configs/_base_/keypoints308.py). | |
| This repository contains the **5B Pose Estimation** checkpoint, finetuned from the [Sapiens2-5B pretrained backbone](https://huggingface.co/facebook/sapiens2-pretrain-5b). | |
| Pose is top-down — it requires bounding boxes from a person detector. We use [RTMDet](https://github.com/open-mmlab/mmdetection/tree/main/configs/rtmdet). | |
| - 📄 **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:** pose | |
| - **Base model:** [facebook/sapiens2-pretrain-5b](https://huggingface.co/facebook/sapiens2-pretrain-5b) | |
| - **Format:** safetensors | |
| - **File:** `sapiens2_5b_pose.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/pose/ | |
| hf download facebook/sapiens2-pose-5b sapiens2_5b_pose.safetensors \ | |
| --local-dir ~/sapiens2_host/pose | |
| # 2. Run the demo (edit INPUT, OUTPUT, and MODEL_NAME inside the script) | |
| cd $SAPIENS_ROOT/sapiens/pose | |
| ./scripts/demo/keypoints308.sh | |
| ``` | |
| See the [Pose Estimation guide](https://github.com/facebookresearch/sapiens2/blob/main/docs/POSE.md) for details on inputs, outputs, and visualization options. | |
| ## Model Card | |
| | Field | Value | | |
| |-------|-------| | |
| | Architecture | Sapiens2 ViT backbone + Pose Estimation head | | |
| | Backbone parameters | 5.071 B | | |
| | Backbone FLOPs | 15.722 T | | |
| | Embedding dim | 2432 | | |
| | Layers | 56 | | |
| | Attention heads | 32 | | |
| | Inference resolution | 1024 × 768 (H × W) | | |
| | Patch size | 16 | | |
| ### Sapiens2-Pose Family | |
| | Model | Params | FLOPs | Embed dim | Layers | Heads | | |
| |-------|--------|-------|-----------|--------|-------| | |
| | [Sapiens2-0.4B](https://huggingface.co/facebook/sapiens2-pose-0.4b) | 0.398 B | 1.260 T | 1024 | 24 | 16 | | |
| | [Sapiens2-0.8B](https://huggingface.co/facebook/sapiens2-pose-0.8b) | 0.818 B | 2.592 T | 1280 | 32 | 16 | | |
| | [Sapiens2-1B](https://huggingface.co/facebook/sapiens2-pose-1b) | 1.462 B | 4.715 T | 1536 | 40 | 24 | | |
| | **Sapiens2-5B** *(this)* | 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 | |
| - Pose Estimation 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} | |
| } | |
| ``` | |