Skip to content
/ CDO Public

[TII 2023] Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization

License

Notifications You must be signed in to change notification settings

caoyunkang/CDO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWC PWC

Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization

IEEE Transactions on Industrial Informatics 2023

🔥 News

  • 2023.03:  🎉🎉 We published a new paper related to point cloud anomaly detection, Complementary Pseudo Multimodal Feature for Point Cloud Anomaly Detection.

Abstract

Most unsupervised image anomaly localization methods suffer from overgeneralization because of the high generalization abilities of convolutional neural networks, leading to unreliable predictions. To mitigate the overgeneralization, this study proposes to collaboratively optimize normal and abnormal feature distributions with the assistance of synthetic anomalies, namely collaborative discrepancy optimization (CDO). CDO introduces a margin optimization module and an overlap optimization module to optimize the two key factors determining the localization performance, i.e. , the margin and the overlap between the discrepancy distributions (DDs) of normal and abnormal samples. With CDO, a large margin and a small overlap between normal and abnormal DDs are obtained, and the prediction reliability is boosted. Experiments on MVTec2D and MVTec3D show that CDO effectively mitigates the overgeneralization and achieves great anomaly localization performance with real-time computation efficiency. A real-world automotive plastic parts inspection application further demonstrates the capability of the proposed CDO.

BibTex Citation

If you like our paper or code, please use the following BibTex:

@ARTICLE{10034849,
  author={Cao, Yunkang and Xu, Xiaohao and Liu, Zhaoge and Shen, Weiming},
  journal={IEEE Transactions on Industrial Informatics}, 
  title={Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization}, 
  year={2023},
  volume={},
  number={},
  pages={1-10},
  doi={10.1109/TII.2023.3241579}}

Installation

  • Clone this repository: tested on Python 3.7
  • Install PyTorch: tested on v1.7

Datasets

We support MVTec AD dataset and MVTec3D AD dataset for anomaly localization in factory setting.

Training Models

  • Run code by selecting device, dataset, category, model (backbone, wi/o MOM and OOM), etc.
python train.py --gpu-id 0 --dataset mvtec2d --class-name carpet --backbone hrnet32 --MOM True --OOM True --gamma 2.

CDO Architecture

CDO

Reference CDO Quantitative Results

CDO

Reference CDO Qualitative Results

CDO

About

[TII 2023] Collaborative Discrepancy Optimization for Reliable Image Anomaly Localization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages