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)
https://colab.research.google.com/drive/1uqTZNVmaEZzb89aJq6fvfaa43Gfm5zPa?usp=sharing
https://colab.research.google.com/drive/1SIRThv_Fhz5Ru_rPND5GkwAC135cIOG5?usp=sharing
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 Videos
folder
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.