Action Recognition Model to detect Suspicious activties through Surveillance videos
https://www.kaggle.com/mateohervas/dcsass-dataset
Delete the second DCSASS Dataset folder and Labels folder
python3
opencv3 (with ffmpeg)
keras
numpy
pandas
- First extract the dataset folder to the same folder as the repository
- The
utils
folder contains 3 python scripts to run - run
python utilties/resort_dataset.py
- run
python utilties/create_normal_class.py
- run
python utilties/preprocess.py
The train_set.ipynb
contains all functions needed to train model. Run all cells and adjust parameters in main()
function for training.
For our experiment we used slowfast model with batch size 8
, img_size 224
and frames 25
.
Our slowfast model trained on above settings for 100
epochs can be found here https://www.mediafire.com/file/idn98l5m9rfcuvt/slowfast_finalmodel.hd5/file
- First load model or use exisiting model after training.
- Run
predictions()
giving the video to predict as input. We have provided some sample videos intest/
3DCNN : https://github.com/dipakkr/3d-cnn-action-recognition
Slowfast : https://github.com/facebookresearch/SlowFast
Keras - Slowfast : https://github.com/xuzheyuan624/slowfast-keras
Keras - i3D - https://github.com/dlpbc/keras-kinetics-i3d