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

the PillarFeatureNet(nn.Module) in export_onnx.py is different from item in pillar_encoder.py, which results an error when export onnx files. #7

Open
HULoaf opened this issue Aug 25, 2023 · 0 comments

Comments

@HULoaf
Copy link

HULoaf commented Aug 25, 2023

In export.onnx.py, it's this:
( if with_voxel_center:
in_channels += 3)
but in pillar_encoder.py:
(if with_voxel_center:
in_channels += 2)

when i export onnx files, the error is :
size mismatch for pfn_layers.0.linear.weight: copying a param with shape torch.Size([64, 9]) from checkpoint, the shape in current model is torch.Size([64, 10]).

so ,should I change in_channels += 3 to += 2 in ecport_onnx.py?
I tried it , but when i inference in C++ ,the results were terrible, should i change the preprocess.cu?

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

1 participant