SwinShadow:用于模糊相邻阴影检测的移位窗口
SwinShadow: Shifted Window for Ambiguous Adjacent Shadow Detection
AI总结:
本文提出基于 Transformer 的 SwinShadow 网络,利用移位窗口机制结合深度监督、双注意力和多级聚合模块,有效解决物体与阴影颜色相似时的相邻阴影检测难题,并在多个基准数据集上取得良好性能。
摘要:
阴影检测是许多计算机视觉应用中的一项基础且具有挑战性的任务。直观上,大多数阴影来自物体本身对光线的遮挡,导致物体与其阴影相邻(本文中称为相邻阴影)。在这种情况下,当物体的颜色与阴影的颜色相似时,现有方法难以实现准确检测。为了解决这一问题,我们提出了 SwinShadow,这是一种基于 Transformer 的架构,充分利用强大的移位窗口机制来检测相邻阴影。该机制分两步运行。首先,它在单个窗口内应用局部自注意力,使网络能够关注局部细节。随后,它移位注意力窗口以促进窗口间注意力,从而能够捕获更广泛的相邻信息。这些步骤的组合显著提高了网络区分阴影与附近物体的能力。整个过程可分为三个部分:编码器、解码器和特征集成。在编码过程中,我们采用 Swin Transformer 来获取分层特征。然后在解码过程中,对于浅层,我们提出了一个深度监督(DS)模块来抑制误报并增强阴影特征的表示能力以供后续处理,而对于深层,我们利用双注意力(DA)模块在一个阶段中集成局部窗口和移位窗口,以实现更大的感受野并增强信息的连续性。最后,应用一种新的多级聚合(MLA)机制来融合解码后的特征以进行掩码预测。在三个阴影检测基准数据集 SBU、UCF 和 ISTD 上的大量实验表明,我们的网络在平衡错误率(BER)方面取得了良好的性能。
英文摘要:
Shadow detection is a fundamental and challenging task in many computer vision applications. Intuitively, most shadows come from the occlusion of light by the object itself, resulting in the object and its shadow being contiguous (referred to as the adjacent shadow in this paper). In this case, when the color of the object is similar to that of the shadow, existing methods struggle to achieve accurate detection. To address this problem, we present SwinShadow, a transformer-based architecture that fully utilizes the powerful shifted window mechanism for detecting adjacent shadows. The mechanism operates in two steps. Initially, it applies local self-attention within a single window, enabling the network to focus on local details. Subsequently, it shifts the attention windows to facilitate inter-window attention, enabling the capture of a broader range of adjacent information. These combined steps significantly improve the network's capacity to distinguish shadows from nearby objects. And the whole process can be divided into three parts: encoder, decoder, and feature integration. During encoding, we adopt Swin Transformer to acquire hierarchical features. Then during decoding, for shallow layers, we propose a deep supervision (DS) module to suppress the false positives and boost the representation capability of shadow features for subsequent processing, while for deep layers, we leverage a double attention (DA) module to integrate local and shifted window in one stage to achieve a larger receptive field and enhance the continuity of information. Ultimately, a new multi-level aggregation (MLA) mechanism is applied to fuse the decoded features for mask prediction. Extensive experiments on three shadow detection benchmark datasets, SBU, UCF, and ISTD, demonstrate that our network achieves good performance in terms of balance error rate (BER).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。