-
Notifications
You must be signed in to change notification settings - Fork 427
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 ConvTasNet to ONNX seems to be broken in >0.3.5 #530
Comments
Thanks for the very detailed report. I don't think we have bandwidth for that in the coming month. Is there a way to see which line causes the export error? |
Not sure if we can see the exact line that caused the issue, but it should be possible to do a |
I would assume that there is a bug in ONNX/PyTorch ONNX support (at least the error reporting could be improved). |
There is a PR that changed the padding for causal models, can you try just
before it maybe?
We haven't changed much in Convtasnet since the beginning.
Le ven. 30 juil. 2021 à 09:51, Jonas Haag ***@***.***> a
écrit :
… I would assume that there is a bug in ONNX/PyTorch ONNX support (at least
the error reporting could be improved).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#530 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEND2HBBAMYWTDCFTQUXWVLT2JKYNANCNFSM5BF7GH6A>
.
|
I did a git bisect, and found that this is the "first bad commit": |
I've narrowed it down a bit, only exporting encoder + decoder (i.e. without the
This also starts failing at the same commit: 51e6835 |
So maybe I should open an issue at https://github.com/asteroid-team/asteroid-filterbanks instead? What do you think @mpariente? |
Or maybe not. There's this issue already: asteroid-team/asteroid-filterbanks#10 |
Thanks for narrowing it down. This has been integrated close to a year ago, and this commit was quite large, there is still a bit of work. Sorry I won't have the bandwidth for that for a while. |
Ah yes, you're right. I should have remembered that. |
🐛 Bug
When I try to export a ConvTasNet model to ONNX, I get various error messages. See more info below.
To Reproduce
Expected behavior
I expect that the code runs without errors, and I expect to see a ~19 MB file called hello_convtasnet.onnx. I also want to be able to run the ONNX model with onnxruntime.
Environment
I've tried to run the code above in various environments/configurations:
asteroid 0.3.4, pytorch 1.7.1,
opset_version=10
(I edited the value to this in the code), Windowsasteroid 0.3.5, pytorch 1.7.1, ONNX opset version 11, Windows
It executes/exports without errors
asteroid 0.3.5, pytorch 1.8.0, ONNX opset version 11, Windows
It executes/exports without errors
asteroid 0.4.5, pytorch 1.7.1, ONNX opset version 11, Windows
asteroid 0.4.0rc0, pytorch 1.8.0, ONNX opset version 11, Windows
asteroid 0.4.5, pytorch 1.8.0, ONNX opset version 11, Windows
asteroid 0.4.5, pytorch 1.8.0, ONNX opset version 11, torchaudio==0.8.0, Windows
asteroid 0.4.5, pytorch 1.9.0, ONNX opset version 11, torchaudio==0.9.0, Windows
asteroid 0.5.1, pytorch 1.9.0, ONNX opset version 11, torchaudio==0.9.0, Windows
The text was updated successfully, but these errors were encountered: