Hello everyone,
I’m encountering an issue while trying to run silero-vad using onnxruntime on my Jetson device. I hope to get some assistance or advice from this community.
Problem
When running the code, I get the following error:
/opt/rh/gcc-toolset-12/root/usr/include/c++/12/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = unsigned int; _Alloc = std::allocator<unsigned int>; reference = unsigned int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
This error occurs during the initialization of the InferenceSession
.
Code Used
Here’s the snippet of code I’m using to initialize the InferenceSession
:
opts = onnxruntime.SessionOptions()
opts.inter_op_num_threads = 1
opts.intra_op_num_threads = 1
opts.log_severity_level = 4
providers = ["CPUExecutionProvider"]
self.session = onnxruntime.InferenceSession(
path,
providers=providers,
sess_options=opts,
)
Environment
- Jetson AGX Orin 64GB
- JetPack: 6.0
- Python: 3.10
- onnxruntime: 1.18.0 (installed from Jetson Zoo - eLinux.org)
- silero-vad: silero-vad/src/silero_vad/data/silero_vad.onnx at master · snakers4/silero-vad · GitHub
What I’ve Tried
I’ve attempted to use different versions of onnxruntime:
- Built from source for version 1.18.1
- Built from source for version 1.20.0
However, the results remain the same, and the error persists.
Questions
- Has anyone experienced a similar issue?
- Is there a configuration error that I might have made?
- Are there any suggestions or solutions I could try?
Thank you for your help and time!