-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting the operator stft to ONNX opset version 9 is not supported. #982
Comments
Thanks for opening an issue for this :) This is an issue upstream with pytorch directly, see pytorch/pytorch#31317. @houseroad, do you know the status of STFT support with ONNX? We can keep this issue open since this does affect torchaudio. |
Hi @lawlict We are hearing the increased number of support requests for Let us know if you have a proposal for a way to resolve this. |
Hi @mthrok |
Let's keep the issue. This is a very unique issue and torchaudio does not have an official stance on this one, so until we hear the update and decide the stance we can keep this issue open and use it as a point of contact. |
@lawlict just as a quick fix you can try nnaudio, torch-stft or asteroids |
Frustrating news is that the speed becomes much slower when replacing FFT with Fourier matrix... |
Sorry to hear that. I'll follow up with the team. |
So I was told that there is no plan to add stft/istft functions to ONNX at the moment. |
Any update fow now? |
@chenjiasheng There is actually some good news around : pytorch/pytorch#65666 and onnx/onnx#3741 |
PR is finally merged. onnx/onnx#3741 |
These signal processing operators (STFT/FFT/IFFT) are supported in opset 17.
|
Operators are supported in opset 17. But opset 17 itself is not supported by PyTorch yet. |
Thanks for the quick help, if possible could you actually show the direction on how I can actually test the working of these operators standalone (without torch) ? Am jst trying to ensure the output of |
Hi, is there any news on this issue? This feature is going to be important for the SpeechBrain project. Some of our contributors are working on exporting our speech processing pipelines into a microcontroller. This requires the model to be ONNX exportable/importable (@fpaissan). The main issue is that all the feature extraction relies on fft and stft. |
This is PyTorch (MSFT) issue rather than TorchAudio. |
While we wait for native PyTorch integration, folks can checkout https://github.com/adobe-research/convmelspec which will implement (Mel)spectrograms via 1D conv layer to both ONNX and CoreML (and as a second option CoreML MIL ops). |
very cool solution, you guys should publish it to pypi! |
Closes pytorch#771. Fix vague description on batch size calculation in imagenet.
May I ask if PSD and SoudenMVDR in torchaudio support conversion to onnx or libtorch? |
https://github.com/adobe-research/convmelspec it will give some help? |
Seems to work when using |
Hi, I try exporting the process of feature extraction to onnx:
and get:
So will torchaudio add supports operators used in
torchaudio.transforms
module in the future? You see that exporting the process of feature extraction and the neural network together will be very convenient.Thanks!
The text was updated successfully, but these errors were encountered: