Open kyrie2to11 opened 11 months ago
出现上述问题的原因是PPQ在过去支持过很多公司内部的 caffe 模型,这些 caffe 模型历史久远,它们使用 protobuf3 进行序列化。 因此 PPQ 的 caffe_exporter 需要引用 protobuf3。
解决问题的方法很简单,您注意到报错位于
File "/home/jarvis/Projects/ppq/ppq/parser/caffe_exporter.py", line 15, in
请将其直接修改成
try:
from .caffe import ppl_caffe_pb2
except Exception as e:
pass
上述修改将直接屏蔽掉 protobuf3 的引用,它只在导出 caffe model 时起作用,在下一个 ppq 的版本中我们也将如此更新。
修改后任然报错
出现上述问题的原因是PPQ在过去支持过很多公司内部的 caffe 模型,这些 caffe 模型历史久远,它们使用 protobuf3 进行序列化。 因此 PPQ 的 caffe_exporter 需要引用 protobuf3。
解决问题的方法很简单,您注意到报错位于 File "/home/jarvis/Projects/ppq/ppq/parser/caffe_exporter.py", line 15, in from .caffe import ppl_caffe_pb2
请将其直接修改成
try: from .caffe import ppl_caffe_pb2 except Exception as e: pass
上述修改将直接屏蔽掉 protobuf3 的引用,它只在导出 caffe model 时起作用,在下一个 ppq 的版本中我们也将如此更新。
you need a lower vesion of onnx.
it works for me pip install onnx==1.13.0
Hi there,
As a beginner learning about quantization, I encountered an error related to
protobuf
while installing PPQ. I resolved it by downgradingprotobuf
using the commandpip install protobuf==3.20.*
. I'm curious to know if there are any implicit consequences of completing the installation in this way. Here is the detailed error information:I would like to understand if there might be any unintended side effects or results from using the downgrade approach in this situation. Thank you for your assistance!