Skip to content

Latest commit

 

History

History
 
 

Violence Detection

YOUTUBE VIDEO FOR EXPLANATION

https://youtu.be/D4mjEBgAXPU

MOBILENETV2 TRAINING COLAB NOTEBOOK

https://colab.research.google.com/drive/1pHW_BLuxmvY6VDbHnG_oZBr5HJBvHGK_?usp=sharing

(Run this file on a local jupyter notebook on a laptop with NVIDIA GPU installed)

VIOLENT VIDEO TESTING COLAB NOTEBOOK

https://colab.research.google.com/drive/1uqTZNVmaEZzb89aJq6fvfaa43Gfm5zPa?usp=sharing

NON-VIOLENT VIDEO TESTING COLAB NOTEBOOK

https://colab.research.google.com/drive/1SIRThv_Fhz5Ru_rPND5GkwAC135cIOG5?usp=sharing

DETAILS

The modelnew.h5 file is the trained model, we trained it for 50 epochs only. An accuracy of 96% was obtained. Feel free to use it.

The testing videos for the violence and non violence classes are in the Testing Videosfolder

DATASET FOR TRAINING

https://www.kaggle.com/datasets/mohamedmustafa/real-life-violence-situations-dataset

We have used only 350 videos from each category (violence and non-violence) out of 1000.