Skip to content

S7-S8 Main Project: Concatenation of Attention Enhanced Spatial and Temporal Features for Violence Detection from Videos

Notifications You must be signed in to change notification settings

004Ajay/Main-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concatenation of Attention Enhanced Spatial and Temporal Features for Violence Detection from Videos

This work is an attempt towards simulating how humans react to violent situations using Convolutional Neural Network (CNN) and Long Short Term Memory (LSTM) architectures.

Dataset: Hockey Fights

Dataset Directory Structure:

───HockeyFight
    ├───train
    │   ├───Fight
    │   │       Fight_1.avi
    │   │       Fight_2.avi
    │   │
    │   └───No_Fight
    │           No_Fight_1.avi
    │           No_Fight_2.avi
    └───val
        ├───Fight
        │       Fight_1.avi
        │       Fight_1.avi
        │
        └───No_Fight
                No_Fight_1.avi
                No_Fight_2.avi

Try it yourself (Windows):

  1. Clone the repository:
    https://github.com/004Ajay/Main-Project.git
  1. Navigate to the project directory:
    cd Main-Project
  1. Create a virtual environment or see this for a detailed guide.
    python -m venv <your env name>

    cd <your env name>

    Scripts\activate
  1. Install the required dependencies
    pip install -r requirements.txt

dependecies does not include libraries for the files in the Experiments Folder.

  1. Download the dataset and arrange as per the structure given above.

  2. Start training:

    python train.py
  1. Evaluate your model:
    python evaluate.py

Documents


Poster

Poster


Creators

Ajay T Shaju | Emil Saj Abraham | Justin Thomas Jo | Vishnuprasad KG

About

S7-S8 Main Project: Concatenation of Attention Enhanced Spatial and Temporal Features for Violence Detection from Videos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •