Code for "SaliencyCut: Augmenting Plausible Anomalies for Anomaly Detection".
- matplotlib==3.5.1
- numpy==1.21.5
- pandas==1.3.5
- Pillow==8.4.0
- scikit_learn==1.0.2
- torch==1.9.0
- torchvision==0.10.0
- tqdm==4.64.0
python train.py --dataset_root=./data/mvtec_anomaly_detection --classname='carpet' --nAnomaly=10 --know_class='cut'
dataset_rootdenotes the path of the dataset.classnamedenotes the subset name of the dataset.nAnomalydenotes the number of anomaly samples involved in training (general setting: 10, hard setting: 1, anomaly-free setting: 0).know_class(optional) specifies the anomaly category in the training set to evaluate under hard setting.
@article{ye2023saliencycut,
title={SaliencyCut: Augmenting Plausible Anomalies for Open-set Fine-Grained Anomaly Detection},
author={Ye, Jianan and Hu, Yijie and Yang, Xi and Wang, Qiu-Feng and Huang, Chao and Huang, Kaizhu},
journal={arXiv preprint arXiv:2306.08366},
year={2023}
}