mmmikael / loadcaffe

Load Caffe networks in Torch7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loadcaffe

Load Caffe networks in Torch7

There is no Caffe dependency, only protobuf has to be installed. In Ubuntu do:

sudo apt-get install libprotobuf-dev

To load a network do:

require 'loadcaffe'

model = loadcaffe.load('deploy.prototxt', 'bvlc_alexnet.caffemodel', 'ccn2')

Models from Caffe Model Zoo:

Network ccn2 cunn cudnn
bvlc_alexnet + - -
bvlc_reference_caffenet + - -
bvlc_reference_rcnn_ilsvrc13 + - -
finetune_flickr_style + - -
VGG_CNN_S + - -
VGG_CNN_M + - -
VGG_CNN_M_2048 + - -
VGG_CNN_M_1024 + - -
VGG_CNN_M_128 + - -
VGG_CNN_F + - -
VGG ILSVRC-2014 16-layer + + +
VGG ILSVRC-2014 19-layer + + +
Network-in-Network Imagenet - + +
Network-in-Network CIFAR-10 - + +

For nets without local response normalization cudnn can be used. If you want to use nn routines only, please install https://github.com/szagoruyko/imagine-nn, which has a ceil max-pooling. Note that it is not required for ccn2 and cudnn.

You can also use Caffe inside Torch with this: https://github.com/szagoruyko/torch-caffe-binding However you can't use both loadcaffe in caffe in one torch session.

Rights to caffe.proto belong to the University of California.

About

Load Caffe networks in Torch7


Languages

Language:C++ 65.7%Language:Lua 34.3%