quarrying-insect-id icon indicating copy to clipboard operation
quarrying-insect-id copied to clipboard

[ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from D:\yolov3\insect\quarrying-insect-id-master\insectid\models/quarrying_insect_detector.onnx failed:Protobuf parsing failed.

Open Anne668 opened this issue 3 years ago • 2 comments

Excuse me, how to modify this error after running demo.py onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from D:\yolov3\insect\quarrying-insect-id-master\insectid\models/quarrying_insect_detector.onnx failed:Protobuf parsing failed.

The full version error message is as follows: C:\Users\ZNKZ\miniconda3\envs\insectid\pythonw.exe D:/yolov3/insect/quarrying-insect-id-master/demo.py Traceback (most recent call last): File "D:/yolov3/insect/quarrying-insect-id-master/demo.py", line 51, in detector = InsectDetector() File "D:\yolov3\insect\quarrying-insect-id-master\insectid\detector.py", line 40, in init super(InsectDetector, self).init(model_path) File "D:\yolov3\insect\quarrying-insect-id-master\insectid\base.py", line 13, in init self.sess = onnxruntime.InferenceSession(model_path, sess_options) File "C:\Users\ZNKZ\miniconda3\envs\insectid\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 283, in init self._create_inference_session(providers, provider_options, disabled_optimizers) File "C:\Users\ZNKZ\miniconda3\envs\insectid\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 310, in _create_inference_session sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model) onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from D:\yolov3\insect\quarrying-insect-id-master\insectid\models/quarrying_insect_detector.onnx failed:Protobuf parsing failed.

Anne668 avatar Sep 15 '21 09:09 Anne668

You can download *.onnx files in https://github.com/quarrying/quarrying-insect-id/tree/master/insectid/models directly.

Because I store *.onnx using GIT LFS, if your git doesn't support LFS, *.onnx may not be downloaded.

quarrying avatar Sep 16 '21 15:09 quarrying

我也是这种问题,重新下载了还是不行

zz-zik avatar Dec 12 '22 02:12 zz-zik