Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.6 KB

README.md

File metadata and controls

53 lines (40 loc) · 2.6 KB

Action Detection

Action Detection is ipython notebook contains all steps of training action recognition model with optical flow and single person tracking

Requirements

Dataset

  • MERL_Shopping_Dataset

About

the implementation of the model was based on on A Multi-Stream Bi-Directional Recurrent Neural Network for Fine-Grained Action Detection paper

the model consist of three stages

  1. person detection and tracking
  2. optical flow
  3. action detection

Person Detection & Tracking

for this part we peruse pytorch-ssd repo. we faced some problems cause of the view angle of the camera, some time model didn't notice the person as person or mistake the dimensions of him but we solved by those steps:

  1. take highest object's score as a person, and ignoring the detection label of it
  2. make fixed box instead of dynamic one
  3. for the missing person frames, keep the previous one as the current

Optical Flow

for this part we peruse flowiz repo. the problem w faced at this point was the output of the repo wasn't good enough when we use two consecutive frames so that we decided to take frame[n] and frame[n-6] to calculate the optical flow in frame n

Projection layer

projection layer

Action Detection

for this part we peruse Action Recognition repo. model consist of:

  • vgg16 net as features extractor (encoder)
  • lstm net with attention mechanism (decoder)

trained by make prediction every 6 frames

projection layer

How to run

after download this repo and it's requirements, you have to download pytorch-ssd repo inside action recognition directory , and put crop.py file into pytorch-ssd repo directory and enjoy with playing by the notebook