W600k-r50.onnx -

import cv2
import numpy as np
import onnxruntime as ort
[ERROR] Failed to load model 'w600k-r50.onnx'
Traceback (most recent call last):
  File "inference.py", line 12, in load_model
    session = ort.InferenceSession(model_path)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf:
[ONNXRuntimeError] : 7 : INVALID_PROTOBUF : 
Load model from ./models/w600k-r50.onnx failed:Protobuf parsing failed.
-> Hint: The file may be corrupted or truncated. Expected file size: ~91.2 MB,
   Actual size: 45.1 MB. Please re-download the model from the official source.

import onnxruntime as ort
import cv2
import numpy as np
pip install onnxruntime opencv-python numpy
  • Output tensor:
  • Optional additional outputs:
  • Run a quick inspection (Python + onnxruntime) to confirm these — example code below.