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

IndexError: too many indices for tensor of dimension 1 #15

Open
lilili666-hit opened this issue Sep 1, 2022 · 2 comments
Open

IndexError: too many indices for tensor of dimension 1 #15

lilili666-hit opened this issue Sep 1, 2022 · 2 comments

Comments

@lilili666-hit
Copy link

您好,为什么使用自己的模型进行测试时会产生这个报错:
bbox_tlwh[:, 0] = bbox_xywh[:, 0] - bbox_xywh[:, 2]/2.
IndexError: too many indices for tensor of dimension 1

@ynioba
Copy link

ynioba commented Sep 2, 2022

我的这边也是这个错误。环境是:py3.6.9、torch1.9、cuda10

@Hong-gblbcy
Copy link

参考第一个issues的答案就能解决了

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