Reproduce “Detect Any Shadow: Segment Anything for Video Shadow Detection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yonghui Wang, Wengang Zhou, Yunyao Mao, Houqiang Li

The ShadowSAM framework adapts the Segment Anything Model (SAM) with a Long Short-Term Network (LSTN) to achieve state-of-the-art accuracy and efficiency in video shadow detection. It improves Mean Absolute Error by 31.0% over previous methods, demonstrating robust performance across diverse video scenes.

Key insights

  • A simple yet effective strategy of fine-tuning only the lightweight mask decoder of a foundation model is sufficient to adapt it for specialized segmentation tasks like shadow detection.
  • Combining a robust single-frame shadow prior from a fine-tuned SAM with a specialized temporal propagation network significantly enhances both accuracy and efficiency in video shadow detection.
  • The dual attention mechanism within the LSTN, utilizing both long-term and short-term temporal information, effectively mitigates error drift and maintains local consistency in dynamic video shadows.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.