SAM-pose2seg: Pose-Guided Human Instance Segmentation in Crowds
Constantin Kolomiiets, Miroslav Purkrabek, Jiri Matas
TL;DR
This work tackles occlusion-robust human instance segmentation by adapting the Segment Anything Model (SAM) 2.1 with minimal encoder changes and a pose-guided prompting strategy. It introduces PoseMaskRefine, a refinement scheme that leverages visible pose keypoints to guide iterative mask updates, and demonstrates that using the three most visible keypoints suffices for accurate segmentation. Evaluations across COCO, CIHP, and OCHuman show strong generalization, with competitive AP under detected and ground-truth poses, and ablations confirm the primary role of the first keypoint and the effectiveness of simple prompting in crowded scenes. The approach preserves SAM’s generalization while achieving occlusion-aware performance, offering a practical component for BMP loops and dataset annotation tasks.
Abstract
Segment Anything (SAM) provides an unprecedented foundation for human segmentation, but may struggle under occlusion, where keypoints may be partially or fully invisible. We adapt SAM 2.1 for pose-guided segmentation with minimal encoder modifications, retaining its strong generalization. Using a fine-tuning strategy called PoseMaskRefine, we incorporate pose keypoints with high visibility into the iterative correction process originally employed by SAM, yielding improved robustness and accuracy across multiple datasets. During inference, we simplify prompting by selecting only the three keypoints with the highest visibility. This strategy reduces sensitivity to common errors, such as missing body parts or misclassified clothing, and allows accurate mask prediction from as few as a single keypoint. Our results demonstrate that pose-guided fine-tuning of SAM enables effective, occlusion-aware human segmentation while preserving the generalization capabilities of the original model. The code and pretrained models will be available at https://mirapurkrabek.github.io/BBox-MaskPose.
