开源软件名称(OpenSource Name):gudovskiy/cflow-ad开源软件地址(OpenSource Url):https://github.com/gudovskiy/cflow-ad开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing FlowsWACV 2022 preprint:https://arxiv.org/abs/2107.12571 AbstractUnsupervised anomaly detection with localization has many practical applications when labeling is infeasible and, moreover, when anomaly examples are completely missing in the train data. While recently proposed models for such data setup achieve high accuracy metrics, their complexity is a limiting factor for real-time processing. In this paper, we propose a real-time model and analytically derive its relationship to prior methods. Our CFLOW-AD model is based on a conditional normalizing flow framework adopted for anomaly detection with localization. In particular, CFLOW-AD consists of a discriminatively pretrained encoder followed by a multi-scale generative decoders where the latter explicitly estimate likelihood of the encoded features. Our approach results in a computationally and memory-efficient model: CFLOW-AD is faster and smaller by a factor of 10x than prior state-of-the-art with the same input setting. Our experiments on the MVTec dataset show that CFLOW-AD outperforms previous methods by 0.36% AUROC in detection task, by 1.12% AUROC and 2.5% AUPRO in localization task, respectively. We open-source our code with fully reproducible experiments. BibTex CitationIf you like our paper or code, please cite its WACV 2022 preprint using the following BibTex:
Installation
Install all packages with this command:
DatasetsWe support MVTec AD dataset for anomaly localization in factory setting and Shanghai Tech Campus (STC) dataset with surveillance camera videos. Please, download dataset from URLs and extract to data folder or make symlink to that folder or change default data path in main.py). Code Organization
Training Models
Testing Pretrained Models
CFLOW-AD ArchitectureReference CFLOW-AD Results for MVTec |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论