报错信息如下:
red_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’
解决方法:
去yolov9/utils/loss_tal.py把167行代码更改:
feats = p[1] if isinstance(p, tuple) else p
改成:
feats = p[1] if isinstance(p, tuple) else p[0]
成功运行!!!