ShadowAdapter: Adapting Segment Anything Model with Auto-Prompt for shadow detection

被引:1
作者
Jie, Leiping [1 ]
Zhang, Hui [2 ]
机构
[1] Guangdong Ocean Univ, Fac Math & Comp Sci, Zhanjiang 524088, Peoples R China
[2] BNU HKBU United Int Coll, Dept Comp Sci & Technol, Zhuhai 519087, Peoples R China
基金
中国国家自然科学基金;
关键词
Image segmentation; Shadow detection; Segment Anything; Adapter; Auto-Prompt;
D O I
10.1016/j.eswa.2025.126809
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Segment anything model (SAM) has shown its spectacular performance in segmenting universal objects, especially when elaborate prompts are provided. However, the drawback of SAM is twofold. On the first hand, it fails to segment specific targets, e.g., shadow images or lesions in medical images. On the other hand, manually specifying prompts is extremely time-consuming. To overcome the problems, we propose AdapterShadow, which adapts SAM model for shadow detection. To adapt SAM for shadow images, trainable adapters are proposed and inserted into the frozen image encoder of SAM, considering that the training of the whole SAM model is both time and memory consuming. Moreover, we introduce a novel grid sampling method to generate dense point prompts, which helps to automatically segment shadows without any manual interventions. Extensive experiments are conducted on four widely used benchmark datasets to demonstrate the superior performance of our proposed method. Codes are publicly available at https://github.com/LeipingJie/ AdapterShadow.
引用
收藏
页数:12
相关论文
共 68 条
[1]  
Chen TR, 2024, Arxiv, DOI [arXiv:2408.04579, DOI 10.48550/ARXIV.2408.04579]
[2]   SAM-Adapter: Adapting Segment Anything in Underperformed Scenes [J].
Chen, Tianrun ;
Zhu, Lanyun ;
Ding, Chaotao ;
Cao, Runlong ;
Wang, Yan ;
Zhang, Shangzhan ;
Li, Zejian ;
Sun, Lingyun ;
Zang, Ying ;
Mao, Papa .
2023 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION WORKSHOPS, ICCVW, 2023, :3359-3367
[3]  
Chen TR, 2023, Arxiv, DOI arXiv:2304.09148
[4]   Make Segment Anything Model Perfect on Shadow Detection [J].
Chen, Xiao-Diao ;
Wu, Wen ;
Yang, Wenya ;
Qin, Hongshuai ;
Wu, Xiantao ;
Mao, Xiaoyang .
IEEE TRANSACTIONS ON GEOSCIENCE AND REMOTE SENSING, 2023, 61 :1-13
[5]   A Multi-task Mean Teacher for Semi-supervised Shadow Detection [J].
Chen, Zhihao ;
Zhu, Lei ;
Wan, Liang ;
Wang, Song ;
Feng, Wei ;
Heng, Pheng-Ann .
2020 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2020, :5610-5619
[6]  
Cheng DJ, 2023, Arxiv, DOI [arXiv:2305.00035, DOI 10.48550/ARXIV.2305.00035]
[7]  
Chun-Ting Chen, 2010, 2010 International Conference on Green Circuits and Systems (ICGCS 2010), P679, DOI 10.1109/ICGCS.2010.5542975
[8]   SDDNet: Style-guided Dual-layer Disentanglement Network for Shadow Detection [J].
Cong, Runmin ;
Guan, Yuchen ;
Chen, Jinpeng ;
Zhang, Wei ;
Zhao, Yao ;
Kwong, Sam .
PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON MULTIMEDIA, MM 2023, 2023, :1202-1211
[9]   Detecting moving objects, ghosts, and shadows in video streams [J].
Cucchiara, R ;
Grana, C ;
Piccardi, M ;
Prati, A .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2003, 25 (10) :1337-1342
[10]  
Dai HX, 2024, Arxiv, DOI arXiv:2307.01187