本文提出 ShadowSAM,通过边界框微调 SAM 并结合长短期注意力实现视频阴影传播检测,在 MAE、IoU 和推理速度上均优于现有方法。
摘要:
Segment anything model(SAM,分割一切模型)在自然图像分割领域取得了巨大成功。然而,SAM 往往将阴影视为背景,因此不会对其进行分割。本文提出 ShadowSAM,这是一个简单而有效的框架,通过微调 SAM 来检测阴影。此外,通过将其与长短期注意力机制相结合,我们扩展了其能力,以实现高效的视频阴影检测。具体而言,我们首先利用从真实阴影掩码获得的边界框,在 ViSha 训练数据集上对 SAM 进行微调。然后在推理阶段,我们通过提供边界框来模拟用户交互,以检测特定帧(例如第一帧)。随后,以检测到的阴影掩码为先验,我们采用长短期网络学习远距离帧之间的空间相关性以及相邻帧之间的时间一致性,从而在视频帧之间实现精确的阴影信息传播。大量实验结果证明了本方法的有效性,在 MAE 和 IoU 指标上相较最先进方法具有显著优势。此外,与以往的视频阴影检测方法相比,本方法表现出更快的推理速度,验证了其有效性和效率。源代码现已公开发布于 https://github.com/harrytea/Detect-AnyShadow。
英文摘要:
Segment anything model (SAM) has achieved great success in the field of natural image segmentation. Nevertheless, SAM tends to consider shadows as background and therefore does not perform segmentation on them. In this paper, we propose ShadowSAM, a simple yet effective framework for fine-tuning SAM to detect shadows. Besides, by combining it with long short-term attention mechanism, we extend its capability for efficient video shadow detection. Specifically, we first fine-tune SAM on ViSha training dataset by utilizing the bounding boxes obtained from the ground truth shadow mask. Then during the inference stage, we simulate user interaction by providing bounding boxes to detect a specific frame (e.g., the first frame). Subsequently, using the detected shadow mask as a prior, we employ a long short-term network to learn spatial correlations between distant frames and temporal consistency between adjacent frames, thereby achieving precise shadow information propagation across video frames. Extensive experimental results demonstrate the effectiveness of our method, with notable margin over the state-of-the-art approaches in terms of MAE and IoU metrics. Moreover, our method exhibits accelerated inference speed compared to previous video shadow detection approaches, validating the effectiveness and efficiency of our method. The source code is now publicly available at https://github.com/harrytea/Detect-AnyShadow.
SAM Fails to Segment Anything? -- SAM-Adapter: Adapting SAM in Underperformed Scenes: Camouflage, Shadow, Medical Image Segmentation, and More
KOKONI, Moxin (Huzhou) Tech. Co., LTD(莫西(湖州)科技有限公司KOKONI);Beihang University(北京航空航天大学);Zhejiang University(浙江大学);Huzhou University(湖州师范学院);Singapore University of Technology and Design(新加坡科技设计大学)
SAM3-Adapter: Efficient Adaptation of Segment Anything 3 for Camouflage Object Segmentation, Shadow Detection, and Medical Image Segmentation
KOKONI, Moxin (Huzhou) Tech. Co., LTD(摩西(湖州)科技有限公司);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);School of Computer Science and Engineering, Nanjing University of Science and Technology(南京理工大学计算机科学与工程学院);School of Information Engineering, Huzhou University(湖州大学信息工程学院);School of Electrical and Electronic Engineering, Nanyang Technological University(新加坡南洋理工大学电子与电气工程学院);College of Computing and Data Science, Nanyang Technological University(新加坡南洋理工大学计算与数据科学学院);School of Information Science and Technology, University of Science and Technology of China(中国科学技术大学信息科学与技术学院)
SAM2-Adapter: Evaluating & Adapting Segment Anything 2 in Downstream Tasks: Camouflage, Shadow, Medical Image Segmentation, and More
KOKONI, Moxin (Huzhou) Tech. Co., LTD(科科尼(湖州)魔芯科技有限公司);School of Information Engineering, Huzhou University(湖州大学信息工程学院);School of Information Science and Technology, University of Science and Technology of China(中国科学技术大学信息科学技术学院);School of Software Technology, Zhejiang University(浙江大学软件学院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Information Systems Technology and Design Pillar, Singapore University of Technology and Design(新加坡科技设计大学信息系统技术与设计支柱学院)
Nanyang Technological University(南洋理工大学);SenseTime Research(商汤科技研究院);Carnegie Mellon University(卡内基梅隆大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)
TASAM: Terrain-and-Aware Segment Anything Model for Temporal-Scale Remote Sensing Segmentation
University of Alabama at Birmingham(阿拉巴马大学伯明翰分校);Wuhan University(武汉大学);Dalian University of Technology(大连理工大学);University of Chinese Academy of Sciences(中国科学院大学)
Biomedical SAM 2: Segment Anything in Biomedical Images and Videos
University of Georgia(佐治亚大学);Massachusetts General Hospital(麻省总医院);Harvard Medical School(哈佛医学院);Lehigh University(理海大学);Northeastern University(东北大学);University of Notre Dame(圣母大学)
Segment Anything Model Can Not Segment Anything: Assessing AI Foundation Model's Generalizability in Permafrost Mapping
Arizona State University(亚利桑那州立大学);Woodwell Climate Research Center(伍德韦尔气候研究中心);University of Connecticut(康涅狄格大学);U.S. Geological Survey(美国地质调查局);University of California, Santa Barbara(加利福尼亚大学圣巴巴拉分校);University of Illinois at Urbana-Champaign(伊利诺伊大学香槟分校)
本文评估了以 Meta SAM 为代表的视觉基础模型在永久冻土地貌分割中的表现,通过多种提示策略和微调测试其零样本能力与领域适应性,并指出其在挑战性地理空间任务中仍需改进。
Cross Prompting Consistency with Segment Anything Model for Semi-supervised Medical Image Segmentation
The Chinese University of Hong Kong(香港中文大学);Massachusetts General Hospital(麻省总医院);Harvard Medical School(哈佛医学院);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Institute of Medical Intelligence and XR, The Chinese University of Hong Kong(香港中文大学医学智能与XR研究所)
提出 CPC-SAM,在双分支框架中通过 SAM 交叉提示和提示一致性正则化利用标注与未标注数据,显著提升半监督医学图像分割性能。
MergeSAM: Unsupervised change detection of remote sensing images based on the Segment Anything Model
School of Geography and Planning, Sun Yat-sen University(中山大学地理科学与规划学院);Unit 33269 of the PLA(中国人民解放军33269部队);Intelligent Science & Technology Academy Limited of CASIC(中国航天科工集团智能科技研究院有限公司)
Enhancing the Reliability of Segment Anything Model for Auto-Prompting Medical Image Segmentation with Uncertainty Rectification
Artificial Intelligence Innovation and Incubation Institute, Fudan University(复旦大学人工智能创新与孵化研究院);Shanghai Academy of Artificial Intelligence for Science(上海科学人工智能研究院)
SAMRS: Scaling-up Remote Sensing Segmentation Dataset with Segment Anything Model
Wuhan University(武汉大学);The University of Sydney(悉尼大学);National Engineering Research Center of Speech and Language Information Processing(国家语音及语言信息处理工程技术研究中心)
Slender Object Scene Segmentation in Remote Sensing Image Based on Learnable Morphological Skeleton with Segment Anything Model
School of Mathematical Sciences, Beijing Normal University(北京师范大学数学科学学院);State Key Laboratory of Remote Sensing Science, Faculty of Geographical Science, Beijing Normal University(北京师范大学地理科学学部遥感科学国家重点实验室)
SAM3-UNet: Simplified Adaptation of Segment Anything Model 3
Sun Yat-sen University(中山大学);Jiangxi Normal University(江西师范大学);Hainan University(海南大学);Dalian University of Technology(大连理工大学);Chizhou University(池州学院);Wuhan University(武汉大学)
SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentation
School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);School of Computer and Information Engineering, Jiangxi Normal University(江西师范大学计算机与信息工程学院);The Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳));Tianjin University(天津大学);Monash University(墨尔本大学);Pazhou Lab(琶洲实验室);Smart Hospital Research Institute, Peking University Shenzhen Hospital(北京大学深圳医院智能医院研究所)
Generalization vs. Specialization: Evaluating Segment Anything Model (SAM3) Zero-Shot Segmentation Against Fine-Tuned YOLO Detectors
Cornell University, Department of Biological and Environmental Engineering(康奈尔大学生物与环境工程系);University of the Peloponnese, Department of Informatics and Telecommunications(希腊皮埃里亚大学信息与电信系)
On Efficient Variants of Segment Anything Model: A Survey
School of Computer Science and Engineering(计算机科学与工程学院);School of Computing and Communications(计算与通信学院);School of Computer Science and Technology(计算机科学与技术学院)
AI-SAM: Automatic and Interactive Segment Anything Model
The Pennsylvania State University(宾夕法尼亚州立大学);Huck Institutes of the Life Sciences(哈克生命科学研究所);Northwestern Memorial Hospital(西北纪念医院);Northwestern University(西北大学)
Multi-Sequence Parotid Gland Lesion Segmentation via Expert Text-Guided Segment Anything Model
Department of Radiology, Sun Yat-sen Memorial Hospital, Sun Yat-sen University(中山大学附属第一医院放射科);Department of Radiology, State Key Laboratory of Oncology in South China, Collaborative Innovation Center for Cancer Medicine, Sun Yat-Sen University Cancer Center(中山大学南方学院肿瘤学国家重点实验室、癌症医学创新中心、中山大学肿瘤中心放射科);Department of Radiology, Shantou Central Hospital(汕头市中心医院放射科);Guangdong Provincial Key Laboratory of Malignant Tumor Epigenetics and Gene Regulation, Medical Research Center, Sun Yat-Sen Memorial Hospital, Sun Yat-Sen University(广东省恶性肿瘤表观遗传学与基因调控重点实验室、中山大学附属第一医院医学研究中心、中山大学);Department of Radiology, Shenshan Medical Center, Sun Yat-sen Memorial Hospital, Sun Yat-sen University(中山大学附属山田医院放射科)
I-MedSAM: Implicit Medical Image Segmentation with Segment Anything
Peking University(北京大学);University of Chinese Academy of Sciences(中国科学院大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);Beihang University(北京航空航天大学);Beijing University of Posts and Telecommunications(北京邮电大学)
Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentation
University of Oxford(牛津大学);National University of Singapore(新加坡国立大学);University of Alberta(阿尔伯塔大学);A*STAR(新加坡科技研究局);Carnegie Mellon University(卡内基梅隆大学);Singapore Eye Research Institute(新加坡眼科研究所);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);University of Hongkong(香港大学)
本文提出Medical SAM Adapter(Med-SA),通过轻量适配技术将医学知识融入SAM,利用SD-Trans和HyP-Adpt适配2D模型至3D医学图像,在17个任务上以仅2%参数更新超越SOTA方法。
Prompting Segment Anything Model with Domain-Adaptive Prototype for Generalizable Medical Image Segmentation
National Engineering Research Center for Multimedia Software(国家多媒体软件工程技术研究中心);Medical Artificial Intelligence Research Institute of Renmin Hospital, Wuhan University(武汉大学人民医院医学人工智能研究院);School of Computer Science, Central China Normal University(华中师范大学计算机学院)