Open photoszzt opened 4 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
I update the issue with my forked repo that contains some helpful scripts to reproduce this issue.
cc @josephevans and @ChaiBapchya
@Zha0q1 Have MXNet 1.x made any progress for this issue?
no.. the recent onnx development has been focused on exporting rather than importing
Thanks, @Zha0q1. Import might be more important if a user want to test the performance on different frameworks. @szha @sandeep-krishnamurthy Do we have any project to imporve the ONNX model importing?
@photoszzt @Zha0q1 you can add args keep_initializers_as_inputs=True when you run torch.onnx.export function.
but after that, i meet another problem ----- mxnet dont have resize op .
i found it's because there's a torch.nn.functional.interpolate function in retinaface, which will be transform to resize op by onnx, but mxnet dont have resize op.
i tried to add a resize op , but i'm not familiar with mxnet.
Description
mxnet fail to import onnx model exported by pytorch. The model is from https://github.com/biubug6/Pytorch_Retinaface
Error Message
(Paste the complete error message. Please also include stack trace by setting environment variable
DMLC_LOG_STACK_TRACE_DEPTH=10
before running your script.)To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.) Get the exported onnx model. I fork the above link: https://github.com/photoszzt/Pytorch_Retinaface with some helper script to reproduce this issue easier.
What have you tried to solve it?