Home

Awesome

Caffe to TensorFlow

Convert Caffe models to TensorFlow.

Usage

Run convert.py to convert an existing Caffe model to TensorFlow.

Make sure you're using the latest Caffe format (see the notes section for more info).

The output consists of two files:

  1. A data file (in NumPy's native format) containing the model's learned parameters.
  2. A Python class that constructs the model's graph.

Examples

See the examples folder for more details.

Verification

The following converted models have been verified on the ILSVRC2012 validation set using validate.py.

ModelTop 5 Accuracy
ResNet 15292.92%
ResNet 10192.63%
ResNet 5092.02%
VGG 1689.88%
GoogLeNet89.06%
Network in Network81.21%
CaffeNet79.93%
AlexNet79.84%

Notes