YOLO v5训练时报fitness错误,求解
·
在跑yolo v5训练时出现报错
Traceback (most recent call last):
File "D:/3.7/yolov5-master/train.py", line 610, in <module>
train(opt.hyp, opt, device)
File "D:/3.7/yolov5-master/train.py", line 401, in train
fi = fitness(np.array(results).reshape(1, -1)) # weighted combination of [P, R, mAP@.5, mAP@.5-.95]
TypeError: fitness() takes 0 positional arguments but 1 was given
报错类型为格式错误。

请问各位大佬,这种情况该如何解决?
更多推荐

所有评论(0)