PyramidFlow: High-Resolution Defect Contrastive Localization using Pyramid Normalizing Flow

CVPR 2023  ·  Jiarui Lei, Xiaobo Hu, Yue Wang, Dong Liu ·

During industrial processing, unforeseen defects may arise in products due to uncontrollable factors. Although unsupervised methods have been successful in defect localization, the usual use of pre-trained models results in low-resolution outputs, which damages visual performance. To address this issue, we propose PyramidFlow, the first fully normalizing flow method without pre-trained models that enables high-resolution defect localization. Specifically, we propose a latent template-based defect contrastive localization paradigm to reduce intra-class variance, as the pre-trained models do. In addition, PyramidFlow utilizes pyramid-like normalizing flows for multi-scale fusing and volume normalization to help generalization. Our comprehensive studies on MVTecAD demonstrate the proposed method outperforms the comparable algorithms that do not use external priors, even achieving state-of-the-art performance in more challenging BTAD scenarios.

PDF Abstract CVPR 2023 PDF CVPR 2023 Abstract

Datasets


Results from the Paper


Ranked #5 on Anomaly Detection on BTAD (using extra training data)

     Get a GitHub badge
Task Dataset Model Metric Name Metric Value Global Rank Uses Extra
Training Data
Result Benchmark
Anomaly Detection BTAD PyramidFlow (Res18) Segmentation AUROC 97.7 # 5
Detection AUROC 95.8 # 1
Anomaly Detection MVTec AD PyramidFlow (Res18) Segmentation AUROC 97.1 # 52
Segmentation AUPRO 96.5 # 7
Anomaly Detection MVTec AD PyramidFlow (FNF) Segmentation AUROC 96.0 # 64
Segmentation AUPRO 94.5 # 19

Methods