ethereon / caffe-tensorflow

Caffe models in TensorFlow
Other
2.8k stars 1.04k forks source link

How to import Tensorflow for Python 2.7 #148

Open xy-lin opened 6 years ago

xy-lin commented 6 years ago

Hi there, I am new to both Tensorflow and Caffe. I would like to ask a basic question. It seems Tensorflow only support Python 3, while this convertion module only works with Python 2.7.

How can you import Tensorflow for Python 2.7 in this module?

I got this error: google.protobuf.message.DecodeError: Truncated message.

Many thanks!

kitstar commented 6 years ago

You can try the general converter MMdnn, which supports both py2 and py3.