Violence Recognition Network that uses VGG16 network as base and LSTM as one of the top layers.
tensorflow==2.4.0
opencv-python==4.2.0.34
h5py==2.10.0
To evaluate/train model, you will need to download the required dataset:
If you want to evaluate/train model on different dataset, you will have to create directory structure as below:
├── dataset
│ ├── Fight
│ │ ├── video0.avi
│ │ └── video1.avi
│ │ ...
│ └── NonFight
│ ├── video0.avi
│ └── video1.avi
│ ...
Training using our settings:
python vrn.py
All the settings like directory paths or hyperparameters you have to set inside vrn.py file