Skip to content

Failed to convert .pth model to .onnx #25

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

Open
missu123 opened this issue Mar 26, 2024 · 7 comments
Open

Failed to convert .pth model to .onnx #25

missu123 opened this issue Mar 26, 2024 · 7 comments

Comments

@missu123
Copy link

missu123 commented Mar 26, 2024

Thank you for this great work! I used the bevdet-export repo to convert 'bevdet-lt-d-ft-nearest.pth' or 'bevdet-r50-4dlongterm-depth-cbgs.pth' to onnx format, but got an error as follow:

"./BEVDet-export/mmdet3d/models/detectors/trt_model.py", line 67, in forward
x, mlp_bn, con_se, depth_se = self.img_view_transformer.depth_net(r, mlp_input)
ValueError: not enough values to unpack (expected 4, got 2)

could you help me to solve the problem or give me some advices?

@upupdd
Copy link

upupdd commented Apr 3, 2024

I encountered the same problem, do you know how to solve it now @missu123 @LCH1238

@upupdd
Copy link

upupdd commented Apr 3, 2024

I am using your code, but the environment is configured according to BEVDet dev3.0. Is the problem here? @LCH1238

@lyxbyr
Copy link

lyxbyr commented Apr 17, 2024

I encountered the same problem, do you know how to solve it now @missu123 @LCH1238

@lyxbyr
Copy link

lyxbyr commented Apr 17, 2024

I am using your code, but the environment is configured according to BEVDet dev3.0. Is the problem here? @LCH1238

has solved it ?

@vilon888
Copy link

大概率是环境问题,确认环境正常吗?

@lyxbyr
Copy link

lyxbyr commented Apr 26, 2024 via email

@persuelx
Copy link

@LCH1238 @missu123 你好请问这个问题解决了嘛?我是按照博主的环境配置的,只有torch,cuda版本有点区别。还有在执行dockerfile的时候出现了 => ERROR [internal] load metadata for nvcr.io/nvidia/tensorrt:22.07-py3 请问这个错误是什么原因呢

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

5 participants