Ignotus / theano-flownet

FlowNetS and FlowNetC port to Theano
MIT License
8 stars 4 forks source link
computer-vision deep-learning lasagne optical-flow theano

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

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.