-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Demo can be exported to ONNX but other pretrained models cannot #49
Comments
Hi, Thanks for your request. We don't currently have plans to add support for ONNX though, but we would welcome PRs making it work (as long as the code still stays readable and simple to understand). |
ONNX export would be really useful. Unless there is a way of converting torchscript to ONNX. |
@fmassa |
The model detr_resnet50 can be converted into onnx, but its output is all |
Hi @fmassa I take a quick fix of Can you check my modification, if it is OK, I would like to submit a PR :) |
@zhiqwang your implementation looks good, can you send a PR? |
Hi @fmassa , Of course, It's my pleasure. |
So it it supported now? |
Instructions To Reproduce the Issue:
run
torch.onnx.export
on the demo model provided here and on a model from torchhub. The demo model is successfully exported while other models fail.see full code here
The error log is as follows:
Expected behavior:
It should be possible to export a model from torchhub similar to the demo model.
Environment:
Google colab
The text was updated successfully, but these errors were encountered: