Pytorch-torchvision源码解读:ASPP
ssss231001:
Traceback (most recent call last):
File "D:/YOLO/yolov5-7.0/models/yolo.py", line 384, in
model = Model(opt.cfg).to(device)
File "D:/YOLO/yolov5-7.0/models/yolo.py", line 185, in __init__
self.model, self.save = parse_model(deepcopy(self.yaml), ch=[ch]) # model, savelist
File "D:/YOLO/yolov5-7.0/models/yolo.py", line 352, in parse_model
m_ = nn.Sequential(*(m(*args) for _ in range(n))) if n > 1 else m(*args) # module
TypeError: __init__() takes from 3 to 4 positional arguments but 5 were given 这个错误怎么解决呢
|