Skip to content
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

ONNX conversion: input tensor size #21

Open
zhangnju opened this issue Nov 25, 2020 · 2 comments
Open

ONNX conversion: input tensor size #21

zhangnju opened this issue Nov 25, 2020 · 2 comments

Comments

@zhangnju
Copy link

Hi,
when doing ONNX conversion for pytorch models , we need to create a dummy input variable , like (3,224,224) for Resnet50.
if need to do onnx conversion for polarseg, how shall we create this dummy input variable? what is the size of input tensor?

Thanks

@edwardzhou130
Copy link
Owner

I am not very familiar with ONNX. But we design PolarNet to be able to take a random size of the input point cloud feature (K*N, K is the feature channel number and N is the number of points). So, this might be a problem for the ONNX conversion. If it needs to be a fixed size, you can try to modify our BEV encoder network (pointnet + scatter max pooling) to a similar structure in PointPillar. They first create a fixed-sized tensor by padding the empty space with zero before feed it to the network.

@kaxapatel
Copy link

HI @zhangnju were you able to export the model? I am working with TensorRT implementation. Any help can be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants