-
❓ Questions and HelpHi! First, thanks for making this awesome software available. I am trying to modify the example shown here https://github.com/snakers4/silero-models#onnx to work without omegaconf and torch.hub.load(), just want to load the model directly from a .onnx file. But I'm stuck at the second to last line - using the decoder function or class. How do I properly use the decoder? import onnx language = 'en' #_, decoder, utils = torch.hub.load(repo_or_dir='snakers4/silero-models', model='silero_stt', language=language) onnx_model = onnx.load('en_v6_xlarge.onnx') test_files = ['speech_orig.wav'] batches = utils.split_into_batches(test_files, batch_size=10) onnx_input = input.detach().cpu().numpy() decoded = decoder(torch.Tensor(ort_outs[0])[0]) # need to replace this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please see the provided colab examples and wiki - https://github.com/snakers4/silero-models#onnx |
Beta Was this translation helpful? Give feedback.
Please see the provided colab examples and wiki - https://github.com/snakers4/silero-models#onnx