caffe->tensorflow模型出错:TypeError: Descriptors should not be created directly

File “/usr/local/lib/python2.7/dist-packages/google/protobuf/descriptor.py”, line 654, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors should not be created directly, but only retrieved from their parent.
使用caffe模型转tensorflow模型代码的时候出现这个错误,解决方法就是将kcaffe里的caffe_pb.py名字改为caffe_pb2.py,另外删掉caffe_pb.pyc 就可以了,再次调用convert.py就可以了

你可能感兴趣的:(caffe,caffe,tensorflow)