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
main(opt)
main(opt)
File "F:\yolov9-main\yolov9-main\train.py", line 528, in main
train(opt.hyp, opt, device, callbacks)
File "F:\yolov9-main\yolov9-main\train.py", line 304, in train
loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
File "F:\yolov9-main\yolov9-main\utils\loss_tal.py", line 168, in call
pred_distri, pred_scores = torch.cat([xi.view(feats[0].shape[0], self.no, -1) for xi in feats], 2).split(
File "F:\yolov9-main\yolov9-main\utils\loss_tal.py", line 168, in
pred_distri, pred_scores = torch.cat([xi.view(feats[0].shape[0], self.no, -1) for xi in feats], 2).split(
AttributeError: 'list' object has no attribute 'view'
how should i fix it?
The text was updated successfully, but these errors were encountered:
hey guys
i meet some difficulties in this program
main(opt)
main(opt)
File "F:\yolov9-main\yolov9-main\train.py", line 528, in main
train(opt.hyp, opt, device, callbacks)
File "F:\yolov9-main\yolov9-main\train.py", line 304, in train
loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
File "F:\yolov9-main\yolov9-main\utils\loss_tal.py", line 168, in call
pred_distri, pred_scores = torch.cat([xi.view(feats[0].shape[0], self.no, -1) for xi in feats], 2).split(
File "F:\yolov9-main\yolov9-main\utils\loss_tal.py", line 168, in
pred_distri, pred_scores = torch.cat([xi.view(feats[0].shape[0], self.no, -1) for xi in feats], 2).split(
AttributeError: 'list' object has no attribute 'view'
how should i fix it?
The text was updated successfully, but these errors were encountered: