yolov7训练出现TypeError: init() missing 1 required positional argument: 'c2'
nit() 中需要传递一个c2的方法或参数
出现这种错误,就是class中init函数中的参数没有赋值。
init() 需要一个参数叫做c2,你没有传递