Coder Social home page Coder Social logo

theano-flownet's Introduction

theano-flownet

This is a port of the caffe implementation of the ICCV'15 paper "FlowNet: Learning Optical Flow with Convolutional Networks" by Dosovitskiy et al to Theano and Lasagne. It contains both FlowNetS and FlowNetC models and a port of the correlation layer.

Ground Truth FlowNetS FlowNetC
img img img

Requirements

  • flownet-caffe (for the weight conversion script only).
  • Theano 0.8.2
  • Lasagne
  • numpy
  • flow-io-opencv can be used to generate optical flow visualization from *.flo outputs

Setup

caffe_to_numpy.py script can be used to convert caffe models to the npz format. caffemodel and prototxt files should be placed in the model subdirectory. Alternatively you can download weights from Google Drive.

Running

python FlowNetS.py
python FlowNetC.py

License

The source code is distributed under the MIT license. Please refer to us if you find this code useful.

theano-flownet's People

Contributors

ignotus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

theano-flownet's Issues

Batch Norm

In the original flownet implementation there is batch normalization after every conv layer. In theFloatNetC.py, I don't find any batch_norm layer. Any specific reason?

flip_filters = True / False

When training the theano-flownet, I observed that using the original code causes exploding gradients. However, after setting flip_filters option in leaky_deconv() and upsample() layer to False, the Theano training works.

So I just wonder is the flip_filters=true necessary for leaky_deconv() and upsample() ? Is this option for importing Caffe weights?

Thank you

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.