Skip to content

Abnormal events detection using autoencoder (U-Net) and memory module to save the features.

Notifications You must be signed in to change notification settings

anhhuu/anodetection-aemem

Repository files navigation

anodetection-aemem

image

Abnormal events detection using autoencoder (U-Net) and memory module.

Demo

Dataset

How to run

Use this folder structure, copy dataset into folder ./dataset/. For example, ./dataset/ped2/.

  1. Training: Use this command, and you can freely define parameters with your own settings like
python3 Train.py --dataset_type dataset_type

Example for avenue:

python3 Train.py --dataset_type avenue

Need to help? Run this command:

python3 Train.py -h
  1. Evaluation
python3 Evaluate.py --dataset_type dataset_type --model_dir your_model.pth --m_items_dir your_m_items.pt

Example for avenue:

python3 Evaluate.py --dataset_type avenue --model_dir ./pre_trained_model/avenue_prediction_model.pth --m_items_dir ./pre_trained_model/avenue_prediction_keys.pt

Need to help? Run this command:

python3 Evaluate.py -h
  1. Run demo app
python3 app.py --method pred --dataset_type dataset_type

Example for avenue:

python3 app.py --method pred --dataset_type avenue

Model

pre-trained model

Fully pre-trained

Prediction hightest

Paper pre-trained model

Works Cited

Demo Images

Avenue

image

Ped1

image

Ped2

image

About

Abnormal events detection using autoencoder (U-Net) and memory module to save the features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages