TypeError: __init__() missing 1 required positional argument: ‘c2‘

1.yolov7添加swin_transformerv2报错问题:TypeError: __init__() missing 1 required positional argument: 'c2'

TypeError: __init__() missing 1 required positional argument: ‘c2‘_第1张图片

解决方案:找到models/yolo.py,进行如下修改:

TypeError: __init__() missing 1 required positional argument: ‘c2‘_第2张图片

你可能感兴趣的:(目标检测,python)