Ai-is-light / ECO-pytorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECO-pytorch

  • This unofficial repo implements the ECO network structure with PyTorch, official repo is here.
  • Pre-trained model for 2D-Net is provided by tsn-pytorch, and 3D-Net use the Kinetics-pretrained model of 3D-Resnet18 provided by 3D-ResNets-PyTorch.
  • Codes modified from tsn-pytorch.

PAPER INFO

"ECO: Efficient Convolutional Network for Online Video Understanding"
By Mohammadreza Zolfaghari, Kamaljeet Singh, Thomas Brox
paper link

Environment:

  • Python 3.6.4
  • PyTorch 0.3.1

Clone this repo

git clone https://github.com/zhang-can/ECO-pytorch

Generate dataset lists

python gen_dataset_lists.py <ucf101/something> <dataset_frames_root_path>

e.g. python gen_dataset_lists.py something ~/dataset/20bn-something-something-v1/

The dataset should be organized as:
<dataset_frames_root_path>/<video_name>/<frame_images>

Training

[UCF101 - ECO - RGB] command:

python main.py ucf101 RGB <ucf101_rgb_train_list> <ucf101_rgb_val_list> \
        --arch ECO --num_segments 4 --gd 5 --lr 0.001 --lr_steps 30 60 --epochs 80 \
        -b 32 -i 4 -j 2 --dropout 0.5 --snapshot_pref ucf101_ECO --rgb_prefix img_ \
        --consensus_type identity --eval-freq 1

About

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 70.1%Language:C++ 25.1%Language:Jupyter Notebook 1.7%Language:Shell 1.4%Language:Lua 1.4%Language:Makefile 0.2%