GithubHelp home page GithubHelp logo

hmdb51_data_gen's Introduction

HMDB51 data generation for training of Non Local Neural Network

Requirement

PIL
numpy
cv2
glob

HMDB51 datset folder contains following actions and each action contains different videos

----HMDB51
        |-brush_hair
                  |-April_09_brush_hair_u_nm_np1_ba_goo_0.avi
                  .....
                  |-Slave_brush_my_hair_brush_hair_u_cm_np2_le_goo_2.avi
        |-cartwheel
                  |-
                  .....
                  |-
        
        |-catch
                  |-
                  .....
                  |-
        
        |-.......
        |-wave
                  |-21_wave_u_nm_np1_fr_goo_5.avi
                  .....
                  |-
                  


To extract frames from each HMDB51 actions run following code

python frameExtract.py

To create train test split we require annotation of each video in actionset which is found in splits folder downloaded from HMDB51

Train_Test split file contains following structure

----splits
        |-brush_hair_test_split1.txt
        |-brush_hair_test_split2.txt
        |-brush_hair_test_split3.txt
        |-cartwheel_test_split1.txt
        |-.......
        |-.......
        |- 
        |-action_name_test_split{}.txt

For getting train test splits run following code

python create_train_test_split.py

Above script takes about an hour to read whole dataset and saves train,test and validation data in following files respectively.

---|-train_data.txt
   |-train_labels.txt
   |-test_data.txt
   |-test_labels.txt
   |-val_data.txt
   |-val_labels.txt

For furthur use load train,test and val data directly by running

np.loadtxt('train_data.txt')

hmdb51_data_gen's People

Contributors

omkarthawakar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fendou201398

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.