yolov5一运行就报错请各位看看什么问题

Traceback (most recent call last):
File "D:/yolov5-5.0/train.py", line 515, in
assert len(opt.cfg) or len(opt.weights), 'either --cfg or --weights must be specified'
AssertionError: either --cfg or --weights must be specified

是不是你的图片宽高不对啊

parser模块中要有weights参数或者cfg参数值,你这两个都没有模型都确定不了你要用什么模型

img


这个地方