from n params module arguments
Traceback (most recent call last):
File "/home/ps/gjj/yolov5.0/yolov5-5.0/train.py", line 543, in
train(hyp, opt, device, tb_writer)
File "/home/ps/gjj/yolov5.0/yolov5-5.0/train.py", line 88, in train
model = Model(opt.cfg or ckpt['model'].yaml, ch=3, nc=nc, anchors=hyp.get('anchors')).to(device) # create
File "/home/ps/gjj/yolov5.0/yolov5-5.0/models/yolo.py", line 86, in init
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist
File "/home/ps/gjj/yolov5.0/yolov5-5.0/models/yolo.py", line 252, in parse_model
m_ = nn.Sequential(*[m(*args) for _ in range(n)]) if n > 1 else m(*args) # module
TypeError: init() takes 2 positional arguments but 5 were given
报错说,构造函数只有2个位置参数,但你传入了5个
仔细看构造函数到底需要什么参数,是不是另外3个应该用名称参数