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
{{ message }}
Repository navigation
Question: Pytorch load a2 model and export onnx model #703
changed the title [-]Question: Pytorch load a2 model and export onyx model?[/-][+]Question: Pytorch load a2 model and export onnx model[/+]on Sep 21, 2026
There is an example for ONNX with NAM's LSTM model in an older version.
I didn't implement it for the WaveNet / A2 because ONNX does not easily understand how to give the right code (for real-time use, anyway). This is why custom C++ like NeuralAmpModelerCore is so useful.
Feel free to close if this answers your question / lmk if not.
The fundamental problem is that machine learning frameworks typically assume that the neural network is stateless; real-time use of a model in audio requires persisting state over calls to process buffers. Without that, you have to re-compute the whole receptive field's worth of history, which can 1000x how much compute it takes in somewhat normal circumstances.
Understanding how the convolution class works in NeuralAmpModelerCore (and how that's different from how this repo does it) will help you understand the issue at the bottom of it. Over here, we process long chunks of thousands of samples at a time so that the "warm up" is more negligible; in real-time, the processing is often over tiny amounts of samples--tens or less, so that overhead would dominate.
Hi Guys,
Sorry this is a question rather than an issue.
I'm banging my head against the wall about how to do this, has anyone got any links or info of how to go about this?
Thanks
Andy