arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.16698cs.CV
收藏

检测任意阴影:面向视频阴影检测的分割一切模型

Detect Any Shadow: Segment Anything for Video Shadow Detection

University of Science and Technology of China(中国科学技术大学);Hefei Comprehensive National Science Center(合肥综合性国家科学中心)

Yonghui Wang, Wengang Zhou, Yunyao Mao, Houqiang Li

AI总结:

本文提出 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑