💡 This is the official implementation of the paper "Dual Memory Networks Guided Reverse Distillation for Unsupervised Anomaly Detection (ACCV 2024)"
conda env create -f envs/environment.yml
conda activate anomaly
pip install -e .conda create --name anomaly python=3.10.12
conda activate anomaly
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
pip install -r envs/requirements.txt
pip install -e .uv venv anomaly --python=3.10.12
source anomaly/bin/activate
uv pip install -e .For the MVTec dataset, please download it from this link.
For the BTAD dataset, please download it from this repository.
For the VisA dataset, please download it from this repository.
For the DTD dataset, please download it from this link.
bash scripts/train_mvtec.sh
bash scripts/test_mvtec.shbash scripts/train_btad.sh
bash scripts/test_btad.shbash scripts/train_visa.sh
bash scripts/test_visa.shIf you find our work useful, please cite the following:
@inproceedings{tran2024dual,
title={Dual Memory Networks Guided Reverse Distillation for Unsupervised Anomaly Detection},
author={Tran, Chi Dai and Pham, Long Hoang and Tran, Duong Nguyen-Ngoc and Ho, Quoc Pham-Nam and Jeon, Jae Wook},
booktitle={Proceedings of the Asian Conference on Computer Vision},
pages={2650--2666},
year={2024}
}
If you have any questions, feel free to contact Chi D. Tran (ctran743@gmail.com or tdc2000@skku.edu).
Our framework is built using multiple open source, thanks for their great contributions.