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

I had problems training the coco128 dataset #3

Open
1063274739 opened this issue Nov 10, 2022 · 0 comments
Open

I had problems training the coco128 dataset #3

1063274739 opened this issue Nov 10, 2022 · 0 comments

Comments

@1063274739
Copy link

Traceback (most recent call last):
File "train.py", line 630, in
main(opt)
File "train.py", line 526, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 308, in train
loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
File "./utils/loss.py", line 125, in call
tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets
File "./utils/loss.py", line 198, in build_targets
anchors, shape = self.anchors[i], p[i].shape
AttributeError: 'list' object has no attribute 'shape'
I hope you can have a look. Thank you very much

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