在跑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

报错类型为格式错误。

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

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐