The analysis work performed with the program(s) must be non-proprietary work. Licensee and its contract users must be or be affiliated with an academic facility. Licensee may additionally permit individuals who are students at such academic facility to access and use the program(s). Such students will be considered contract users of licensee. The program(s) may not be used for commercial competitive analysis (such as benchmarking) or for any commercial activity, including consulting.
If you find the code useful, please cite:
@inproceedings{Bilen2016a,
author = "Bilen, H. and Fernando, B. and Gavves, E. and Vedaldi, A. and Gould, S.",
title = "Dynamic Image Networks for Action Recognition",
booktitle = "CVPR",
year = "2016"
}
-
Clone the Dynamic Image Net repository:
git clone --recursive https://github.com/hbilen/dynamic-image-nets
-
Compile matconvnet toolbox: (see http://www.vlfeat.org/matconvnet/install/
-
Download your dataset : (e.g. UCF101 from http://crcv.ucf.edu/data/UCF101.php)
-
Convert videos to frames, resize them to 256x256 and store them in such a directory structure:
data/UCF101/ucfTrainTestlist/ ├── classIndFixed.txt ├── classInd.txt ├── testlist01.txt ├── testlist02.txt ├── testlist03.txt ├── trainlist01.txt ├── trainlist02.txt └── trainlist03.txt data/UCF101/frames/ ├── v_ApplyEyeMakeup_g01_c01 │ ├── 00001.jpg │ ├── 00002.jpg │ ├── 00003.jpg │ ├── 00004.jpg │ ├── 00005.jpg
-
Write your own
cnn_dataset_setup_data
orcnn_ucf101_setup_data
to build your database (imdb): -
Now you can train your model by running
[net, info] = cnn_dicnn(opts)
-
Download a trained model from the following link: https://drive.google.com/open?id=0B0evBVYO74MEa29kZDQ2UlNDS1k
-
Set the appropriate opts parameters (e.g. opts.modelPath)
-
Run info = cnn_dicnn_evaluate(opts)