CINFormer: Transformer network with multi-stage CNN feature injection for surface defect segmentation

Xiaoheng Jiang, Kaiyi Guo, Yang Lu, Feng Yan, Hao Liu +3 more
9/22/2023
cs.CV

No confident code implementation found for this paper.

Abstract

Surface defect inspection is of great importance for industrial manufacture and production. Though defect inspection methods based on deep learning have made significant progress, there are still some challenges for these methods, such as indistinguishable weak defects and defect-like interference in the background. To address these issues, we propose a transformer network with multi-stage CNN (Convolutional Neural Network) feature injection for surface defect segmentation, which is a UNet-like structure named CINFormer. CINFormer presents a simple yet effective feature integration mechanism that injects the multi-level CNN features of the input image into different stages of the transformer network in the encoder. This can maintain the merit of CNN capturing detailed features and that of transformer depressing noises in the background, which facilitates accurate defect detection. In addition, CINFormer presents a Top-K self-attention module to focus on tokens with more important information about the defects, so as to further reduce the impact of the redundant background. Extensive experiments conducted on the surface defect datasets DAGM 2007, Magnetic tile, and NEU show that the proposed CINFormer achieves state-of-the-art performance in defect detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jiang2023cinformer,
  title  = {CINFormer: Transformer network with multi-stage CNN feature injection for surface defect segmentation},
  author = {Xiaoheng Jiang and Kaiyi Guo and Yang Lu and Feng Yan and Hao Liu and Jiale Cao and Mingliang Xu and Dacheng Tao},
  year   = {2023},
  eprint = {2309.12639},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.12639v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.12639.svg)](https://codeofpaper.com/paper/2309.12639)

Discussion