Detect Any Shadow: Segment Anything for Video Shadow Detection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 42 of its 78 references that are in the map. First posted on arXiv 26 May 2023.
Builds on
42 of 78 references.
References · 42
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2016Layer Normalizationcited by 5,579
30 more
- 2016Feature Pyramid Networks for Object Detectioncited by 5,021
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 942
- 2022Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Taskscited by 510
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2019Video Object Segmentation using Space-Time Memory Networkscited by 436
- 2022XMem: Long-Term Video Object Segmentation with an Atkinson-Shiffrin Memory Modelcited by 436
- 2018YouTube-VOS: A Large-Scale Video Object Segmentation Benchmarkcited by 381
- 2021Learning Spatio-Temporal Transformer for Visual Trackingcited by 348
- 2021Associating Objects with Transformers for Video Object Segmentationcited by 225
- 2021Keeping Your Eye on the Ball: Trajectory Attention in Video Transformerscited by 224
- 2016Deeply supervised salient object detection with short connectionscited by 196
- 2019FEELVOS: Fast End-to-End Embedding Learning for Video Object Segmentationcited by 178
- 2020See More, Know More: Unsupervised Video Object Segmentation with Co-Attention Siamese Networkscited by 138
- 2022AiATrack: Attention in Attention for Transformer Visual Trackingcited by 137
- 2019Motion Guided Attention for Video Salient Object Detectioncited by 72
- 2021Joint Inductive and Transductive Learning for Video Object Segmentationcited by 61
- 2017Direction-aware Spatial Context Features for Shadow Detectioncited by 56
- 2021Reliable Propagation-Correction Modulation for Video Object Segmentationcited by 36
- 2019Revisiting Shadow Detection: A New Benchmark Dataset for Complex Worldcited by 34
- 2021Learning from Synthetic Shadows for Shadow Detection and Removalcited by 26
- 2021Triple-cooperative Video Shadow Detectioncited by 22
- 2022SCOTCH and SODA: A Transformer Video Shadow Detection Frameworkcited by 19
- 2022Video Shadow Detection via Spatio-Temporal Interpolation Consistency Trainingcited by 12
- 2022Learning Shadow Correspondence for Video Shadow Detectioncited by 9
- 2021Temporal Feature Warping for Video Shadow Detectioncited by 5
Built on by
Citing papers per year: 2023: 4; 2024: 7; 2025: 3; 2026: 2.
16 papers.
Sort:
By area:
- 2024PTQ4SAM: Post-Training Quantization for Segment Anythingcited by 32
- 2023SAM-PARSER: Fine-tuning SAM Efficiently by Parameter Space Reconstructioncited by 23
- 2023When 3D Bounding-Box Meets SAM: Point Cloud Instance Segmentation with Weak-and-Noisy Supervisioncited by 9
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
- 2024Timeline and Boundary Guided Diffusion Network for Video Shadow Detectioncited by 6
- 2024Unveiling Deep Shadows: A Survey and Benchmark on Image and Video Shadow Detection, Removal, and Generation in the Deep Learning Eracited by 6
- 2024Extending Segment Anything Model into Auditory and Temporal Dimensions for Audio-Visual Segmentationcited by 5
- 2024Segment Anything for Videos: A Systematic Surveycited by 5
- 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaulcited by 4
- 2024SAVE: Segment Audio-Visual Easy way using Segment Anything Modelcited by 4
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantizationcited by 3
- 2024MST: Adaptive Multi-Scale Tokens Guided Interactive Segmentationcited by 2
4 more
- 2025DTTNet: Improving Video Shadow Detection via Dark-Aware Guidance and Tokenized Temporal Modelingcited by 0
- 2025Power of Boundary and Reflection: Semantic Transparent Object Segmentation using Pyramid Vision Transformer with Transparent Cuescited by 0
- 2026SPDA-SAM: A Self-prompted Depth-Aware Segment Anything Model for Instance Segmentationcited by 0
- 2026Revisiting Shadow Detection from a Vision-Language Perspectivecited by 0
- 2026Revisiting Shadow Detection from a Vision-Language Perspective12 May 2026
- 2026SPDA-SAM: A Self-prompted Depth-Aware Segment Anything Model for Instance Segmentation6 Feb 2026
- 2025Power of Boundary and Reflection: Semantic Transparent Object Segmentation using Pyramid Vision Transformer with Transparent Cues7 Dec 2025
- 2025DTTNet: Improving Video Shadow Detection via Dark-Aware Guidance and Tokenized Temporal Modeling10 Nov 2025
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantization5 Mar 2025
- 2024Unveiling Deep Shadows: A Survey and Benchmark on Image and Video Shadow Detection, Removal, and Generation in the Deep Learning Era3 Sep 2024
- 2024Timeline and Boundary Guided Diffusion Network for Video Shadow Detection21 Aug 2024
- 2024Segment Anything for Videos: A Systematic Survey31 Jul 2024
- 2024SAVE: Segment Audio-Visual Easy way using Segment Anything Model2 Jul 2024
- 2024Extending Segment Anything Model into Auditory and Temporal Dimensions for Audio-Visual Segmentation10 Jun 2024
- 2024PTQ4SAM: Post-Training Quantization for Segment Anything6 May 2024
- 2024MST: Adaptive Multi-Scale Tokens Guided Interactive Segmentation9 Jan 2024
4 more
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Survey11 Dec 2023
- 2023When 3D Bounding-Box Meets SAM: Point Cloud Instance Segmentation with Weak-and-Noisy Supervision2 Sep 2023
- 2023SAM-PARSER: Fine-tuning SAM Efficiently by Parameter Space Reconstruction28 Aug 2023
- 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaul24 Jul 2023
- 2024PTQ4SAM: Post-Training Quantization for Segment Anythingcited by 32
- 2023SAM-PARSER: Fine-tuning SAM Efficiently by Parameter Space Reconstructioncited by 23
- 2023When 3D Bounding-Box Meets SAM: Point Cloud Instance Segmentation with Weak-and-Noisy Supervisioncited by 9
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
- 2024Unveiling Deep Shadows: A Survey and Benchmark on Image and Video Shadow Detection, Removal, and Generation in the Deep Learning Eracited by 6
- 2024Extending Segment Anything Model into Auditory and Temporal Dimensions for Audio-Visual Segmentationcited by 5
- 2024Segment Anything for Videos: A Systematic Surveycited by 5
- 2023Industrial Segment Anything -- a Case Study in Aircraft Manufacturing, Intralogistics, Maintenance, Repair, and Overhaulcited by 4
- 2024SAVE: Segment Audio-Visual Easy way using Segment Anything Modelcited by 4
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantizationcited by 3
- 2024MST: Adaptive Multi-Scale Tokens Guided Interactive Segmentationcited by 2
- 2025DTTNet: Improving Video Shadow Detection via Dark-Aware Guidance and Tokenized Temporal Modelingcited by 0
12 most cited of 15 All 15 (JSON)
- 2026Revisiting Shadow Detection from a Vision-Language Perspective12 May 2026
- 2026SPDA-SAM: A Self-prompted Depth-Aware Segment Anything Model for Instance Segmentation6 Feb 2026
- 2025Power of Boundary and Reflection: Semantic Transparent Object Segmentation using Pyramid Vision Transformer with Transparent Cues7 Dec 2025
- 2025DTTNet: Improving Video Shadow Detection via Dark-Aware Guidance and Tokenized Temporal Modeling10 Nov 2025
- 2025AHCQ-SAM: Toward Accurate and Hardware-Compatible Post-Training Segment Anything Model Quantization5 Mar 2025
- 2024Unveiling Deep Shadows: A Survey and Benchmark on Image and Video Shadow Detection, Removal, and Generation in the Deep Learning Era3 Sep 2024
- 2024Segment Anything for Videos: A Systematic Survey31 Jul 2024
- 2024SAVE: Segment Audio-Visual Easy way using Segment Anything Model2 Jul 2024
- 2024Extending Segment Anything Model into Auditory and Temporal Dimensions for Audio-Visual Segmentation10 Jun 2024
- 2024PTQ4SAM: Post-Training Quantization for Segment Anything6 May 2024
- 2024MST: Adaptive Multi-Scale Tokens Guided Interactive Segmentation9 Jan 2024
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Survey11 Dec 2023
12 newest of 15 All 15 (JSON)