Coder Social home page Coder Social logo

ml-lab / flowgrounded-videoprediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yijunmaverick/flowgrounded-videoprediction

0.0 3.0 0.0 9.09 MB

The source code of ECCV18 'Flow-Grounded Spatial-Temporal Video Prediction from Still Images'.

Lua 41.50% Cuda 15.76% CMake 10.48% C 12.81% C++ 4.25% Makefile 14.64% Python 0.38% Shell 0.18%

flowgrounded-videoprediction's Introduction

FlowGrounded-VideoPrediction

Torch implementation of our ECCV18 paper on video prediction based on one single still image.

In each panel from left to right: one single starting frame and the predicted sequence (next 16 frames).

Getting started

git clone https://github.com/Yijunmaverick/FlowGrounded-VideoPrediction
cd FlowGrounded-VideoPrediction

Preparation

  • Data

    • Put the video data (e.g., .mp4 or .avi) in a folder and put it under ./datasets/DTexture/raw/.
    • Run the following command to convert videos to frames and generate the metadata for training. The testing data are prepared in the same way. Make sure that the meta data for both training and testing are ready before experiments.
cd datasets/
sh data_process.sh
cd ..
  • SPyNet

    • We use the flows estimated by the great work SPyNet as the ground truth for training. Make sure that the SPyNet code is complied successfully and works well.
  • Pretrained models

    • Run the following command to download the pretrained VGG (for perceptual loss) and our models learned on the WavingFlag data for testing.
sh download_models.sh

Training

  • Train the 3DcVAE model for flow prediction:
th train_3DcVAE.lua --dataRoot datasets/DTexture
  • Train the flow2rgb model for frame generation:
th train_flow2rgb.lua --dataRoot datasets/DTexture

Testing

  • Test two steps (prediction + generation) together:
th test.lua --dataRoot datasets/DTexture
  • With ffmpeg installed, run the following command to convert the predicted frames to a gif or video:
python gif.py

Citation

@inproceedings{Prediction-ECCV-2018,
    author = {Li, Yijun and Fang, Chen and Yang, Jimei and Wang, Zhaowen and Lu, Xin and Yang, Ming-Hsuan},
    title = {Flow-Grounded Spatial-Temporal Video Prediction from Still Images},
    booktitle = {European Conference on Computer Vision},
    year = {2018}
}

Acknowledgement

  • Codes are heavily borrowed from DrNet.

flowgrounded-videoprediction's People

Contributors

yijunmaverick avatar

Watchers

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