Closed yongmin96 closed 3 months ago
Thanks for reporting this bug! Fixed dtype mismatch in the latest commit, check if it works properly, please
I verified that the code is working fine. Thanks for your help. I have another question. When I change 'repo_or_dir' to 'snakers4/silero-vad:v4.0', I get the following error. Is this a bug?
ValueError: Required inputs (['state']) are missing from input feed (['input', 'h', 'c', 'sr']).
It is related to the following issue: https://github.com/snakers4/silero-vad/issues/474 we are working to fix this bug
Ok. I'm asking because I'm getting an error while doing several tests. I'm currently working on Windows 10 and when I use GPU and ONNX at the same time, I get the following error:
ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession. For example, onnxruntime.InferenceSession(..., providers=['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'], ...)
ONNX model has some restictions on Windows 10 https://github.com/snakers4/silero-vad/issues/355
Ok. I'm asking because I'm getting an error while doing several tests. I'm currently working on Windows 10 and when I use GPU and ONNX at the same time, I get the following error:
I believe we added these lines, because latest VAD versions were not compatible with ONNX GPU, right?
@adamnsandle
In any case the VAD is not supposed to be run on GPU. If you can hack the session options to make it work on GPU.
Let this issue remain as a reminder how to set different executors for ONNX, but I believe the VAD by design should not be run on GPU. In any case, if for some reason running on GPU is imperative, just fork the above lines.
When I set ONNX to False, it works fine. However, when I set it to True, the following error appears.
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Unexpected input data type. Actual: (tensor(int32)) , expected: (tensor(int64))