You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I have replaced this line const assetFileName = 'assets/models/silero_vad.onnx';
with const assetFileName = 'assets/models/model.onnx';
And getting an error about loading the model:
2025-01-0909:56:25.374262135 [E:onnxruntime:, inference_session.cc:1644operator()] Exception during initialization:/onnxruntime_src/onnxruntime/core/optimizer/initializer.cc:30 onnxruntime::Initializer::Initializer(const onnx::TensorProto&, const onnxruntime::Path&) !model_path.IsEmpty() was false. model_path must not be empty. Ensure that a path is provided when the model is created or loaded.
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] UnhandledException: code=6, message=Exception during initialization:/onnxruntime_src/onnxruntime/core/optimizer/initializer.cc:30 onnxruntime::Initializer::Initializer(const onnx::TensorProto&, const onnxruntime::Path&) !model_path.IsEmpty() was false. model_path must not be empty. Ensure that a path is provided when the model is created or loaded.
#0OrtStatus.checkOrtStatus (package:onnxruntime/src/ort_status.dart:29:5)
#1newOrtSession.fromBuffer (package:onnxruntime/src/ort_session.dart:62:15)
#2VadIterator.initModel (package:onnxruntime_example/vad_iterator.dart:72:27)
<asynchronous suspension>
Running on Linux, the original model works.
The text was updated successfully, but these errors were encountered:
I have used the example project and added model.onnx from https://huggingface.co/pszemraj/bigbird-pegasus-large-K-booksum under
assets/models
.Then I have replaced this line
const assetFileName = 'assets/models/silero_vad.onnx';
with
const assetFileName = 'assets/models/model.onnx';
And getting an error about loading the model:
Running on Linux, the original model works.
The text was updated successfully, but these errors were encountered: