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 error #13

Open
ZXW-King opened this issue Feb 2, 2024 · 0 comments
Open

onnx conversion error #13

ZXW-King opened this issue Feb 2, 2024 · 0 comments

Comments

@ZXW-King
Copy link

ZXW-King commented Feb 2, 2024

Use your pytorch2onnx.py to convert onnx and the error is as follows:
File "/media/xin/work1/github_pro/BHRL/mmdet/models/detectors/base.py", line 168, in forward
return self.onnx_export(img[0], img_metas[0])
File "/media/xin/work1/github_pro/BHRL/mmdet/models/detectors/two_stage.py", line 194, in onnx_export
x = self.extract_feat(img)
File "/media/xin/work1/github_pro/BHRL/mmdet/models/detectors/bhrl.py", line 49, in extract_feat
rf_feat = img[1]
IndexError: index 1 is out of bounds for dimension 0 with size 1
Please give me an answer, thank you

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