walkwithfastai / walkwithfastai.github.io

Host for https://walkwithfastai.com
Other
143 stars 53 forks source link

Lesson 7 - Audio model to use in C++ framework (ONNX or ScriptModule via libtorch) #47

Closed WorkingClass closed 3 years ago

WorkingClass commented 3 years ago

Hello Zachary,

Could you please help me to export the audio model from FastAudio to ONNX or ScriptModule format and how to run inference from the exported Model. (I will be able to generate a spectrogram from an audio file and re-sample it to right format using some C++ audio tools... Hopefully!).

(My question in the inference would be how to make the right dimension and pass it to the model)

Thanks,

Victor

WorkingClass commented 3 years ago

I close because I found a temporary solution (maybe permanent) here: https://github.com/pybind/pybind11/blob/master/docs/advanced/embedding.rst