_message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly.
时间: 2024-05-18 08:18:27 浏览: 239
Python 解决execjs._exceptions.ProgramError: ReferenceError: document is not defined报错问题
_message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors should not be created directly, but only retrieved from their parent.这个错误通常是在使用caffe模型转tensorflow模型代码时出现的。解决方法是将caffe_pb.py的文件名改为caffe_pb2.py,并删除caffe_pb.pyc文件。然后重新调用convert.py即可解决该问题。<span class="em">1</span><span class="em">2</span>
阅读全文