Coder Social home page Coder Social logo

flownet2.tf's Introduction

FlowNet2 (TensorFlow)

This repo includes FlowNetC, S, CS, CSS, CSS-ft-sd, SD, and 2 for TensorFlow. Most part are from this repo, and we have made some modifications:

  • It can deal with arbitrary size of input now.
  • After installation, just copy the whole folder FlowNet2_src to your codebase to use. See demo.py for details.

Environment

This code has been tested with Python3.6 and TensorFlow1.2.0, with a Tesla K80 GPU. The system is Ubuntu 14.04.

Installation

You must have CUDA installed: make all

Note: you might need to modify this line, according to the GPU you use.

Download weights

To download the weights for all models (4.4GB), run the download.sh script in the FlowNet2_src/checkpoints directory. All test scripts rely on these checkpoints to work properly.

Inference mode

python demo.py

If installation is successful, you should see the following: FlowNet2 Sample Prediction

Notice that the model itself will handle the RGB to BGR operation for you. And please be care about your input scale and datatype.

Performance (w/o fine-tuning)

Model KITTI2012 Train EPE KITTI2015 Train EPE KITTI2015 Train F1 Sintel Final Train EPE
FlowNetS 7.2457 14.0753 0.5096 3.9140
FlowNetC 5.9793 11.8957 0.4509 3.1001
FlowNet2 4.3167 10.9869 0.3241 2.1592

FlowNetS and FlowNetC are better than paper, but FlowNet2 is slightly worse.

TODO

  • Add fine-tune mode
  • Remove the training_schedule variable from inference mode.

Reference

[1] E. Ilg, N. Mayer, T. Saikia, M. Keuper, A. Dosovitskiy, T. Brox FlowNet 2.0: Evolution of Optical Flow Estimation with Deep Networks, IEEE Conference in Computer Vision and Pattern Recognition (CVPR), 2017.

Acknowledgments

As noted in the beginning, most part are from sampepose/flownet2-tf

flownet2.tf's People

Contributors

yuliang-zou avatar

Watchers

 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.