Home

Awesome

<p align="center"> <h1><center> Remembering Normality </center></h1> </p>

Unofficial implementation of the paper : "Remembering Normality: Memory-guided Knowledge Distillation for Unsupervised Anomaly Detection" Article

<p align="left"> <img width="700" height="320" src="RememberingNormality.png"> </p>

We designed the code following the guidelines of the official Paper and its Supplementary materials

Getting Started

You will need Python 3.10+ and the packages specified in requirements.txt.

Install packages with:

$ pip install -r requirements.txt

Configure and Run

To run the code, please download the MVTEC AD dataset and add the path in the config.yaml file Link to download the dataset : https://www.mvtec.com/company/research/datasets/mvtec-ad

To run train and test the model :
With STPM backbone (Article)

python trainRM_ST.py  

With RD backbone (Article)

python trainRM_RD.py  

To modify the object categories or hyperparameters, you can modify the config.yaml file.

Datasets

To download the datasets, please refer to the following links:
mvtec ad
visa
mvtec3d-ad
eyecandies

List of TODOs

Feel free to ask for any improvements need in the code :)

License

This project is licensed under the MIT License.