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

expected sequence of length 80 at dim 3 (got 40) #5

Open
baiye1248 opened this issue Jul 18, 2023 · 0 comments
Open

expected sequence of length 80 at dim 3 (got 40) #5

baiye1248 opened this issue Jul 18, 2023 · 0 comments

Comments

@baiye1248
Copy link

for i in range(self.nl):
# anchors, shape = self.anchors[i], p[i].shape
anchors, shape = self.anchors[i],(torch.tensor([p.cpu().detach().numpy() for p in p[i]])).cuda().shape#Modify the above
gain[2:6] = torch.tensor(shape)[[3, 2, 3, 2]] # xyxy gain

An error has occurred:ValueError: expected sequence of length 80 at dim 3 (got 40)

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