chickenbestlover / Abnormal_Environment_Detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Abnormal Environment Detection

Enviroment setup

To install requirements:

pip install -r requirements.txt

Dataset

Please download dataset here:

Pre-trained Weights

Please download pre-trained weights here:

Train

To train convolutional neural network (embedding):

cd Code
python TRAIN_crossentropy.py # for training unsupervised setting
python TRAIN_crossentropy_finetune_with_supcon.py # for finetuning

Evaluation

To evaluate and visualize before finetuning:

cd Code
python VISUALIZE_crossentropy.py
1 1
Clustering Results before Finetuning.

To evaluate and visualize after finetuning:

cd Code
python VISUALIZE_crossentropy_finetune_with_supcon.py
1 1
Clustering Results after Finetuning.

About


Languages

Language:Python 100.0%