Code Monkey home page Code Monkey logo

eco-pytorch's Introduction

This is a fork of Can Zhang's PyTorch implementation for the paper:

" ECO: Efficient Convolutional Network for Online Video Understanding, European Conference on Computer Vision (ECCV), 2018." By Mohammadreza Zolfaghari, Kamaljeet Singh, Thomas Brox
NOTE
  • Trained models on Kinetics dataset for ECO Lite and C3D are provided but they are not final models.

  • Keep watching for updates

  • Pre-trained model for 2D-Net is provided by tsn-pytorch.

Environment:

  • Python 3.5.2
  • PyTorch 0.4.1
  • TorchVison: 0.2.1

Clone this repo

git clone https://github.com/mzolfaghari/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

  1. Download the initialization and trained models:
      sh models/download_models.sh
  • If you can not access Google Drive, please download the pretrained models from BaiduYun, and put them in "models" folder.
  1. Command for training ECO Lite model:
    ./scripts/run_ECOLite_kinetics.sh local
  1. For training C3D network use the following command:
    ./scripts/run_c3dres_kinetics.sh local
  1. For finetuning on UCF101 use the following command:
    ./scripts/run_ECOLite_finetune_UCF101.sh local

NOTE

  • If you want to train your model from scratch change the config as following:
    --pretrained_parts scratch
  • configurations explained in "opts.py"

TODO

  1. ECO Full
  2. Trained models on other datasets

Citation

If you use this code or ideas from the paper for your research, please cite our paper:

@inproceedings{ECO_eccv18,
author={Mohammadreza Zolfaghari and
               Kamaljeet Singh and
               Thomas Brox},
title={{ECO:} Efficient Convolutional Network for Online Video Understanding},	       
booktitle={ECCV},
year={2018}
}

Contact

Mohammadreza Zolfaghari, Can Zhang

Questions can also be left as issues in the repository. We will be happy to answer them.

eco-pytorch's People

Contributors

yjxiong avatar mzolfaghari avatar zhang-can avatar

Watchers

James Cloos avatar Jo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.