Human Activity Recognition Using Deep Neural Network
Currently use Neural Network to classify Human Activities We use 3 different types of models cnn2d cnn3d and lstm to classify human activites. Till now 2 different datasets are used. UCF101 and SDHA2010
The project depends on keras, sklearn, opencv, tqdm, requests and their respective dependencies
Use pip install -r requirements.txt
to install dependencies.
To train, do the following
-
Edit the config[3d].py file to set the desired hyperparameters and select the
DATASET
asucf101
orsdha2010
. -
To download the dataset automatically use the command
python dataset.py download
OR
Download the dataset manually from http://crcv.ucf.edu/ICCV13-Action-Workshop/download.html
-
Extract the dataset in a folder named
videos
in the dataset folder. -
Run
python dataset.py extract[3d]
for the extraction of frames from the dataset. -
Run fit[3d].py to train a model from the extracted images
-
All results and vmetrics will be stored in the
results
folder on completion.
To use 3d networks do the above steps with 3d.py files
For actual live video demonstration we use a stacked yolo model to extract the roi for our models. To use demo,
- Download the pretrained yolo model into the repo
- Run
python demo.py
Do checkout https://github.com/experiencor/keras-yolo2