[Mobile] Error: Can't load a model: Error Code - ORT_INVALID_PROTOBUF #22927
Labels
api:Javascript
issues related to the Javascript API
platform:mobile
issues related to ONNX Runtime mobile; typically submitted using template
platform:web
issues related to ONNX Runtime web; typically submitted using template
Describe the issue
Error loading ONNX model : Error: Can't load a model: Error Code - ORT_INVALID_PROTOBUF - message: Load model from /data/user/0/ai/monere.niada/files/ failed: Protobuf parsing failed
To reproduce
I am trying to load model to detect eyeLid and model has been places inside android/app/src/main/assets/model/model.onnx but somehow unable to load model and code isn't working. Local import isn't working as javascript import doesn't support by this package
Error: Error loading ONNX model : Error: Can't load a model: Error Code - ORT_INVALID_PROTOBUF - message: Load model from /data/user/0/ai/example/files/ failed: Protobuf parsing failed
Please help me with it so that I can use this model for eyelid detection
in package.json
"onnxruntime-react-native": "^1.20.0",
"onnxruntimeExtensionsEnabled": "true"
Code:
Urgency
Yes, It is on high urgency as I have already wasted two days and I have deadline to finish this asap. Please help me here how to load the .onnx file exactly so that I can use it.
Platform
Android
OS Version
Android 13.0
ONNX Runtime Installation
Built from Source
Compiler Version (if 'Built from Source')
No response
Package Name (if 'Released Package')
onnxruntime-react-native
ONNX Runtime Version or Commit ID
^1.20.0
ONNX Runtime API
JavaScript
Architecture
X64
Execution Provider
Other / Unknown
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: