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->tensorflow模型出错:TypeError: Descriptors should not be created directly
最新推荐文章于 2024-07-12 02:31:05 发布