onnx / tutorials

Tutorials for creating and using ONNX models
Apache License 2.0
3.39k stars 629 forks source link

Converting from .pth to .onnx failed on 3d-input. Support 3d-conv? #213

Open Joevaen opened 4 years ago

Joevaen commented 4 years ago

Converting from .pth to .onnx failed on 3d-input. Support 3d-conv?

Question

Hi, Below picture is the result of a transformation from pth to onnx who are shown in Neutron: image Left is pth's architecture and right is onnx's architecture. You noticed that the first layer size of left input is different from the right. In my exprienment, as for the onnx model, the input data start flowing from the bottom layer(32x1x3x3x3) which is opppsite from the correct situation (flowing from (320x640x3x3x3)). My origin network of .pth includes conv3d and the input data is 5-dim. Can the onnx be converted to onnx on conv3d?

hariharans29 commented 4 years ago

ONNX does support Nd convolution and hence should support Conv3d. As for your PyTorch export to ONNX concerns this might be a question for the PyTorch ONNX export project. Please raise your concern with the PyTorch project. Thanks.