Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

SAM Fails to Segment Anything? -- SAM-Adapter: Adapting SAM in Underperformed Scenes: Camouflage, Shadow, Medical Image Segmentation, and More

About

The emergence of large models, also known as foundation models, has brought significant advancements to AI research. One such model is Segment Anything (SAM), which is designed for image segmentation tasks. However, as with other foundation models, our experimental findings suggest that SAM may fail or perform poorly in certain segmentation tasks, such as shadow detection and camouflaged object detection (concealed object detection). This study first paves the way for applying the large pre-trained image segmentation model SAM to these downstream tasks, even in situations where SAM performs poorly. Rather than fine-tuning the SAM network, we propose \textbf{SAM-Adapter}, which incorporates domain-specific information or visual prompts into the segmentation network by using simple yet effective adapters. By integrating task-specific knowledge with general knowledge learnt by the large model, SAM-Adapter can significantly elevate the performance of SAM in challenging tasks as shown in extensive experiments. We can even outperform task-specific network models and achieve state-of-the-art performance in the task we tested: camouflaged object detection, shadow detection. We also tested polyp segmentation (medical image segmentation) and achieves better results. We believe our work opens up opportunities for utilizing SAM in downstream tasks, with potential applications in various fields, including medical image processing, agriculture, remote sensing, and more.

Tianrun Chen, Lanyun Zhu, Chaotao Ding, Runlong Cao, Yan Wang, Zejian Li, Lingyun Sun, Papa Mao, Ying Zang• 2023

Related benchmarks

TaskDatasetResultRank
Polyp SegmentationKvasir
Dice Score84.7
128
Polyp SegmentationETIS
Dice Score59
108
Polyp SegmentationCVC-ClinicDB
Dice Coefficient77.4
81
Polyp SegmentationCVC-ColonDB
mDice67.1
66
Polyp SegmentationEndoScene
mDice81.5
61
Camouflaged Object DetectionCAMO 250 (test)
M (Mean Score)0.07
59
Marine Animal SegmentationMAS3K (test)
mIoU0.714
47
Marine Animal SegmentationRMAS (test)
mIoU65.6
47
Marine Animal SegmentationRUWI
mIoU86.7
22
Marine Animal SegmentationUFO120
mIoU0.757
22
Showing 10 of 13 rows

Other info

Follow for update