-
I've tried to run the model with en/de/es succssfully, and we want to export the models to ONNX file for running with onnxruntime. Unfortunately, in Ubuntu + PyTorch 1.7.1 + Python 3.8.5, the torch.onnx.export() functions failed and threw an exception with errors below: temporary: the only valid use of a module is looking up an attribute but found = prim::SetAttr[name="num_batches_tracked"](%4243, %4373) The code looks like below:
I also noticed that you have already prepared some ONNX files for these models. So, is it possible that you can share with me how you export those files successfully? With any special scripts? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Hi,
Is there anything wrong with the provided ONNX checkpoints? https://github.com/snakers4/silero-models/blob/master/models.yml#L10
Not sure I can replicate this, but typically ONNX export requires enumerations of input / output axes and I have not tried doing this with GPU tensors |
Beta Was this translation helpful? Give feedback.
Hi,
Is there anything wrong with the provided ONNX checkpoints?
https://github.com/snakers4/silero-models/blob/master/models.yml#L10
https://github.com/snakers4/silero-models/blob/master/models.yml#L35
https://github.com/snakers4/silero-models/blob/master/models.yml#L44
Not sure I can replicate this, but typically ONNX export requires enumerations of input / output axes and I have not tried doing this with GPU tensors