Skip to content

Ignotus/theano-flownet

Repository files navigation

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.

Releases

No releases published

Packages

No packages published