Zero-Shot and Supervised Bird Image Segmentation Using Foundation Models: A Dual-Pipeline Approach with Grounding DINO1.5, YOLOv11, and SAM2.1
Abstract
Bird image segmentation remains a challenging task in computer vision due to extreme pose diversity, complex plumage patterns, and variable lighting conditions. This paper presents a dual-pipeline framework for binary bird image segmentation leveraging 2025 foundation models. We introduce two operating modes built upon Segment Anything Model 2.1 (SAM 2.1) as a shared frozen backbone: (1) a zero-shot pipeline using Grounding DINO 1.5 to detect birds via the text prompt "bird" before prompting SAM 2.1 with bounding boxes requiring no labelled bird data; and (2) a supervised pipeline that fine-tunes YOLOv11 on the CUB-200-2011 dataset for high-precision detection, again prompting SAM 2.1 for pixel-level masks. The segmentation model is never retrained for new species or domains. On CUB-200-2011 (11,788 images, 200 species), the supervised pipeline achieves IoU 0.912, Dice 0.954, and F1 0.953 outperforming all prior baselines including SegFormer-B2 (IoU 0.842) by +7.0 percentage points. The zero-shot pipeline achieves IoU 0.831 using only a text prompt, the first such result reported on this benchmark. We demonstrate that prompt-based foundation model pipelines outperform task specific end-to-end trained segmentation networks, while requiring only lightweight detector fine-tuning (~1 hour) for domain adaptation. Complete PyTorch implementation, dataset preparation scripts, and trained weights are publicly available.
Figures & tables
| Method | IoU | Dice | F1 | Train? |
|---|---|---|---|---|
| U-Net [ 9 ] | 0.681 | 0.811 | 0.810 | Full |
| DeepLabv3+ [ 10 ] | 0.742 | 0.851 | 0.849 | Full |
| Mask R-CNN [ 11 ] | 0.724 | 0.838 | 0.835 | Full |
| SegFormer-B2 [ 12 ] | 0.842 | 0.913 | 0.912 | Full |
| SAM 1 (box) [ 5 ] | 0.741 | 0.851 | 0.849 | None |
| ResNet50+decoder [ 14 ] | 0.622 | 0.767 | 0.766 | Full |
| Detection Stage | mAP50 | IoU | Dice | FPS |
|---|---|---|---|---|
| SAM 2.1 auto mask (no prompt) | — | 0.631 | 0.774 | 8 |
| GT boxes (oracle upper bound) | 100.0 | 0.934 | 0.966 | 6 |
| Grounding DINO 1.5 (zero-shot) | 61.3 | 0.831 | 0.907 | 6 |
| YOLOv11-m (fine-tuned) | 96.2 | 0.912 | 0.954 | 14 |
| Method | Det. | Seg. | Total | FPS |
|---|---|---|---|---|
| SegFormer-B2 (end-to-end) | — | 32 ms | 32 ms | 31 |
| GD-1.5 + SAM 2.1 | 110 ms | 55 ms | 165 ms | 6 |
| YOLOv11 + SAM 2.1 | 22 ms | 47 ms | 69 ms | 14 |
| YOLOv11 + MobileSAM | 22 ms | 18 ms | 40 ms | 25 |