NudeNet
NudeNet copied to clipboard
INVALID_PROTOBUF error
Hi! I am trying to load 640m.onnx model, but it gives an error:
InvalidProtobuf Traceback (most recent call last)
[<ipython-input-11-353abda3c613>](https://localhost:8080/#) in <cell line: 0>()
1 from nudenet import NudeDetector
----> 2 detector = NudeDetector('/content/640m.onnx')
2 frames
[/usr/local/lib/python3.11/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py](https://localhost:8080/#) in _create_inference_session(self, providers, provider_options, disabled_optimizers)
524
525 if self._model_path:
--> 526 sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
527 else:
528 sess = C.InferenceSession(session_options, self._model_bytes, False, self._read_config_from_model)
InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from /content/640m.onnx failed:Protobuf parsing failed.
I tried to run this both on a local machine and in google colab example, got the same result.
I have the same issue on colab