Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 750 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 750 Bytes

caffe-to-theano

Convert a Caffe Model to a Theano Model. This currently works on AlexNet, but should work for any Caffe model that only includes layers that have been impemented.

Usage

To run:

python caffe_to_theano.py MODEL.prototxt MODEL.caffemodel

where MODEL.prototxt is the protocol buffer text file with the structure of the model, for example, [this file] (https://github.com/BVLC/caffe/blob/master/models/bvlc_alexnet/deploy.prototxt) for Caffe's AlexNet. The MODEL.caffemodel is the binary file with all the weights, for example, this file for Caffe's AlexNet. The full AlexNet model can be found here.