Skip to content

Latest commit

 

History

History

process_data

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Process data

This folder has some tools to process UCF101, HMDB51 and Kinetics400 datasets.

1. Download

Download the videos from source: UCF101 source, HMDB51 source, Kinetics400 source.

Make sure datasets are stored as follows:

  • UCF101
{your_path}/UCF101/videos/{action class}/{video name}.avi
{your_path}/UCF101/splits_classification/trainlist{01/02/03}.txt
{your_path}/UCF101/splits_classification/testlist{01/02/03}}.txt
  • HMDB51
{your_path}/HMDB51/videos/{action class}/{video name}.avi
{your_path}/HMDB51/split/testTrainMulti_7030_splits/{action class}_test_split{1/2/3}.txt
  • Kinetics400
{your_path}/Kinetics400/videos/train_split/{action class}/{video name}.mp4
{your_path}/Kinetics400/videos/val_split/{action class}/{video name}.mp4

Also keep the downloaded csv files, make sure you have:

{your_path}/Kinetics/kinetics_train/kinetics_train.csv
{your_path}/Kinetics/kinetics_val/kinetics_val.csv
{your_path}/Kinetics/kinetics_test/kinetics_test.csv

2. Extract frames

Edit path arguments in main_*() functions, and python extract_frame.py. Video frames will be extracted.

3. Collect all paths into csv

Edit path arguments in main_*() functions, and python write_csv.py. csv files will be stored in data/ directory.