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

Defect Transformer:一种用于表面缺陷检测的高效混合Transformer结构

Defect Transformer: An Efficient Hybrid Transformer Architecture for Surface Defect Detection

Nanjing University of Aeronautics and Astronautics(南京航空航天大学)

Junpu Wang, Guili Xu, Fuju Yan, Jinjin Wang, Zhengsheng Wang

摘要:

表面缺陷检测是保证工业产品质量的一个极其关键的环节。目前,基于编解码器结构的卷积神经网络(CNN)在各种缺陷检测任务中取得了巨大的成功。然而,由于卷积的固有局部性,它们通常在显式地建模长程相互作用方面表现出限制,这对于复杂情况下的逐像素缺陷检测至关重要,例如,杂乱的背景和难以辨认的伪缺陷。最近的Transformers是特别熟练的学习全局图像的依赖关系,但有限的局部结构信息所需的详细缺陷位置。为了克服上述限制,我们提出了一种高效的混合Transformer架构,称为缺陷Transformer(DefT),用于表面缺陷检测,它将CNN和Transformer合并到一个统一的模型中,以协作地捕获局部和非局部关系。具体地,在编码器模块中,首先采用卷积干块来保留更详细的空间信息。然后,利用补丁聚合块生成四层多尺度表示,每层多尺度表示后面是一系列DefT块,分别包括用于局部位置编码的局部位置感知块、用于建模多尺度全局上下文关系的轻量级多池自注意块以及用于特征变换和进一步的位置信息学习的卷积前馈网络。最后,提出了一个简单但有效的解码器模块,以逐步恢复空间细节从跳过连接的编码器。在三个数据集上的大量实验证明了我们的方法与其他基于CNN和transformer的网络相比的优越性和效率。

英文摘要:

Surface defect detection is an extremely crucial step to ensure the quality of industrial products. Nowadays, convolutional neural networks (CNNs) based on encoder-decoder architecture have achieved tremendous success in various defect detection tasks. However, due to the intrinsic locality of convolution, they commonly exhibit a limitation in explicitly modeling long-range interactions, critical for pixel-wise defect detection in complex cases, e.g., cluttered background and illegible pseudo-defects. Recent transformers are especially skilled at learning global image dependencies but with limited local structural information necessary for detailed defect location. To overcome the above limitations, we propose an efficient hybrid transformer architecture, termed Defect Transformer (DefT), for surface defect detection, which incorporates CNN and transformer into a unified model to capture local and non-local relationships collaboratively. Specifically, in the encoder module, a convolutional stem block is firstly adopted to retain more detailed spatial information. Then, the patch aggregation blocks are used to generate multi-scale representation with four hierarchies, each of them is followed by a series of DefT blocks, which respectively include a locally position-aware block for local position encoding, a lightweight multi-pooling self-attention to model multi-scale global contextual relationships with good computational efficiency, and a convolutional feed-forward network for feature transformation and further location information learning. Finally, a simple but effective decoder module is proposed to gradually recover spatial details from the skip connections in the encoder. Extensive experiments on three datasets demonstrate the superiority and efficiency of our method compared with other CNN- and transformer-based networks.

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

↑