by yjxiong

yjxiong / anet2016-cuhk

Action Recognition Toolbox for CUHK&ETHZ&SIAT submission to ActivityNet 2016

215 Stars 81 Forks Last release: Not found Other 46 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

CUHK & ETH & SIAT Solution to ActivityNet Challenge 2016

This repository holds the materials necessary to reproduce the results for our solution to ActivityNet Challenge 2016. We won the 1st place in the untrimmed video classification task.

Although initially designed for the challenge, the repository also means to provide an accessible framework for general video classification tasks.

  • We are currently organizing the codebase. Please stay tuned.*

  • Jul 14 - The correct reference flow model is available for download. See here.

  • Jul 11 - Demo website is now online!

  • Jul 10 - Web demo code released

Functionalities & Release Status

  • [x] Basic utilities
  • [x] Action recognition with single video
    • [x] Web demo for action recognition
  • [ ] ActivityNet validation set evaluation
  • [x] Training action recognition system - We use the TSN framework to train our models.


The codebase is written in Python. It is recommended to use Anaconda distribution package with it.

Besides, we also use Caffe and OpenCV. Particularly, the OpenCV should be compiled with VideoIO support. GPU support will be good if possible. If you use
, it will locally install these dependencies for you.


NVIDIA GPU with CUDA support. At least 4GB display memory is needed to run the reference models.

Get the code

Use Git

git clone --recursive

If you happen to forget adding

to the command. You can still go to the project directory and issue
git submodule update --init

Single Video Classification

  • Build all modules In the root directory of the project, run the following command
  • Get the reference models
    bash models/
  • Run the classification There is a video clip in the
    for your example. To do single video classification with RGB model one can run
    python examples/ data/plastering.avi
    It should print the top 3 prediction in the output. To use the two-stream model, one can add
    flag to the command. The framework will then extract optical flow on the fly.
    python examples/ --use_flow data/plastering.avi
    You can use your own video files by specifying the filename.

One can also specify a youtube url here to do the classification, for example

python examples/

The two-stream model here consists of one reset-200 model for RGB input and one BN-Inception model for optical flow input. The model spec and parameter files can be found in


Web Demo

We also provide a light-weighted demo server. The server uses Flask.


It will be run on
. It supports uploading local files and directly analyzing Youtube-style video urls.

For a quick start, we have set up a public demo server at

Action Recognition Web Demo

The server runs on the Titan X GPU awarded for winning the challenge. Thanks to the organizers!

Related Projects


Released under BSD 2-Clause license.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.