Project website: http://crcv.ucf.edu/projects/TCNN/
By Rui Hou, Chen Chen and Mubarak Shah
We propose an end-to-end deep network called Tube Convolutional Neural Network (T-CNN) for action detection in videos. The proposed architecture is a unified deep network that is able to recognize and localize action based on 3D convolution features. A video is first divided into equal length clips and next for each clip a set of tube proposals are generated based on 3D Convolutional Network (ConvNet) features. Finally, the tube proposals of different clips are linked together employing network flow and spatio-temporal action detection is performed using these linked video proposals. Extensive experiments on several video datasets demonstrate the superior performance of TCNN for classifying and localizing actions in b
This code has been tested on Ubuntu 16.04 with a single NVIDIA GeForce GTX TITAN Xp graphic card.
Current code is our rough version and we are improving its implementation details, while the current version suffices to run demo, repeat our experimental results, and train your own models.
T-CNN is released under the MIT License (refer to the LICENSE file for details).
If you find T-CNN useful, please consider citing:
@article{hou2017tube,
title={Tube Convolutional Neural Network (T-CNN) for Action Detection in Videos},
author={Hou, Rui and Chen, Chen and Shah, Mubarak},
journal={arXiv preprint arXiv:1703.10664},
year={2017} }
- Hint: please refer to C3D-v1.0 and Caffe for more details about compilation such as making your own Makefile.config
- For the sake of using our code smoothly, please first get familiar with C3D.
- This demo is designed to let users to have a quick try of tcnn feature extraction.
- More details of this demo:
- we provide input data in
data/jhmdb
. You can prepare the download the dataset bybash prepre_jhmdb.sh
- run the demo:
cd demo; ./xfeat.sh;
- output results will be stored in
data/jhmdb/results
- Data preparation
- Move to the root directory of this project. e.g.
cd ~/tcnn
- Run the script to download and extract frames, annotations and splits of dataset
bash prepre_jhmdb.sh
- The generated dataset is located at
./data/jhmdb
- T-CNN network prediction
- Download the trained model
- the last layer of our trained model has 22 nodes corresponding to 21 possible frame-level classes(from the first to the last: background, action1-22)
- Run
python tpn_eval.py
for bounding boxes on each frame. - Run
python cls_eval.py
for recogntion prediction.
- Prepare pre-trained model as init: as explained in the paper, we use weights in sports1m model (
wget www.cs.ucf.edu/~rhou/files/c3d_pretrain_model
) to init our network. - Run
bash tpn_train.sh
for training TPN. - Run
bash cls_train.sh
for recognition network.
Please find our caffe implementation at ruihou/mtcnn