DTTNet: Improving Video Shadow Detection via Dark-Aware Guidance and Tokenized Temporal Modeling
Zhicheng Li, Kunyang Sun, Rui Yao, Hancheng Zhu, Fuyuan Hu, Jiaqi Zhao, Zhiwen Shao, Yong Zhou
TL;DR
Video shadow detection is challenged by shadow-background ambiguity and dynamic shadow deformations across time. DTTNet addresses this with a Vision-language Match Module that supplies text-guided priors and a Dark-aware Semantic Block that injects semantic guidance into encoder features, complemented by a Tokenized Temporal Block for efficient cross-frame temporal modeling. Penalized supervision for penumbra regions and edge-focused decoder supervision further stabilizes training. Experiments on ViSha and CVSD show state-of-the-art accuracy and real-time inference, highlighting the practical impact of combining vision-language priors with token-based temporal encoding for robust shadow localization in videos.
Abstract
Video shadow detection confronts two entwined difficulties: distinguishing shadows from complex backgrounds and modeling dynamic shadow deformations under varying illumination. To address shadow-background ambiguity, we leverage linguistic priors through the proposed Vision-language Match Module (VMM) and a Dark-aware Semantic Block (DSB), extracting text-guided features to explicitly differentiate shadows from dark objects. Furthermore, we introduce adaptive mask reweighting to downweight penumbra regions during training and apply edge masks at the final decoder stage for better supervision. For temporal modeling of variable shadow shapes, we propose a Tokenized Temporal Block (TTB) that decouples spatiotemporal learning. TTB summarizes cross-frame shadow semantics into learnable temporal tokens, enabling efficient sequence encoding with minimal computation overhead. Comprehensive Experiments on multiple benchmark datasets demonstrate state-of-the-art accuracy and real-time inference efficiency. Codes are available at https://github.com/city-cheng/DTTNet.
