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

xiaoxiao2021-02-28  94

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就可以了

转载请注明原文地址: https://www.6miu.com/read-81195.html

最新回复(0)