You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: