SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentation

16 Aug 2024  ยท  Xinyu Xiong, Zihuang Wu, Shuangyi Tan, Wenxue Li, Feilong Tang, Ying Chen, Siying Li, Jie Ma, Guanbin Li ยท

Image segmentation plays an important role in vision understanding. Recently, the emerging vision foundation models continuously achieved superior performance on various tasks. Following such success, in this paper, we prove that the Segment Anything Model 2 (SAM2) can be a strong encoder for U-shaped segmentation models. We propose a simple but effective framework, termed SAM2-UNet, for versatile image segmentation. Specifically, SAM2-UNet adopts the Hiera backbone of SAM2 as the encoder, while the decoder uses the classic U-shaped design. Additionally, adapters are inserted into the encoder to allow parameter-efficient fine-tuning. Preliminary experiments on various downstream tasks, such as camouflaged object detection, salient object detection, marine animal segmentation, mirror detection, and polyp segmentation, demonstrate that our SAM2-UNet can simply beat existing specialized state-of-the-art methods without bells and whistles. Project page: \url{https://github.com/WZH0120/SAM2-UNet}.

PDF Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Salient Object Detection DUT-OMRON SAM2-UNet MAE 0.039 # 1
E-measure 0.912 # 1
S-measure 0.884 # 1
Salient Object Detection DUTS-TE SAM2-UNet MAE 0.020 # 2
E-measure 0.959 # 2
Smeasure 0.934 # 1
Salient Object Detection ECSSD SAM2-UNet MAE 0.020 # 2
S-measure 0.950 # 1
E-measure 0.970 # 2
Salient Object Detection HKU-IS SAM2-UNet MAE 0.019 # 2
E-measure 0.971 # 2
S-measure 0.941 # 1
Image Segmentation MAS3K SAM2-UNet S-measure 0.903 # 1
mIoU 0.799 # 1
E-measure 0.943 # 1
MAE 0.021 # 1
Image Segmentation MSD (Mirror Segmentation Dataset) SAM2-UNet MAE 0.022 # 1
IoU 0.918 # 1
F-measure 0.957 # 1
Salient Object Detection PASCAL-S SAM2-UNet MAE 0.043 # 2
S-measure 0.894 # 2
E-measure 0.931 # 2
Image Segmentation PMD SAM2-UNet MAE 0.027 # 1
IoU 0.728 # 1
F-measure 0.826 # 1
Image Segmentation RMAS SAM2-UNet S-measure 0.874 # 1
mIoU 0.738 # 2
E-measure 0.944 # 2
MAE 0.022 # 2

Methods


No methods listed for this paper. Add relevant methods here