Git Product home page Git Product logo

3d-resnet-pytorch's Introduction

This repo is modified version for this code, which is source code for CVPR2018 paper.

Requirements

  • PyTorch: 0.2 version (not test for other version)
pip3 install http://download.pytorch.org/whl/cu80/torch-0.2.0.post2-cp35-cp35m-manylinux1_x86_64.whl
pip3 install torchvision
  • Python 3
  • FFmpeg
wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar xvf ffmpeg-release-64bit-static.tar.xz
cd ./ffmpeg-3.3.3-64bit-static/; sudo cp ffmpeg ffprobe /usr/local/bin;

UCF101

  • Download videos and train/test splits from this site
  • Use FFmpeg to extract frames from raw videos
python3 datasets/video_jpg_ucf101.py ucf101_video_dir ucf101_frames_dir
  • Generate train/test video list
python3 datasets/ucf101_get_list.py ucf101_frames_dir splits/ucf101_train01_raw.txt
python3 datasets/ucf101_get_list.py ucf101_frames_dir splits/ucf101_test01_raw.txt
  • finetune model from kinetics pretrain
mkdir logs; mkdir model;
bash ucf101_train.sh
  • result

HMDB51

  • Download videos and train/test splits from this site
  • Use FFmpeg to extract frames from raw videos
python3 datasets/video_jpg_hmdb51.py hmdb51_video_dir hmdb51_frames_dir
  • Generate train/test video list
python3 datasets/hmdb51_get_list.py hmdb51_frames_dir splits/hmdb51_train01_raw.txt
python3 datasets/hmdb51_get_list.py hmdb51_frames_dir splits/hmdb51_test01_raw.txt
  • finetune model from kinetics pretrain
mkdir logs; mkdir model;
bash hmdb51_train.sh
  • result

3d-resnet-pytorch's People

Contributors

shuangshuangguo avatar

Watchers

 avatar  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.