# MADCluster: Model-agnostic Anomaly Detection with Self-supervised Clustering Network.
This README contains code for training and testing the MADCluster: Model-agnostic Anomaly Detection with Self-supervised Clustering Network. MADCluster is a self-supervised clustering based approach for detecting anomalies under unsupervised setting.

## Getting Started
Follow these instructions to get started with using the MADCluster.


### Prerequisites
We use Pytorch version 2.2.2 and CUDA 12.5
Before running the code, make sure you have the following prerequisites installed:

- conda create -n [env-name] python=3.11.5 -y
- conda activate [env-name]
- pip install -r requirements.txt


### Dataset
- tar -zxvf dataset.tar.gz


### Running the code
To train and test the model, run the following command:

- cd scripts
- sh [dataset-name].sh

Adjust the arguments according to your testing requirements.



