【Debug记录】跑YOLOv5时报错AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘D:\\P
问题:AttributeError:Can'tgetattribute'SPPF'on解决方法:在models/common.py中添加类SPPF,代码如下:classSPPF(nn.Module):def__init__(self,c1,c2,k=5):super().__init__()c_=c1//2self.cv1=Conv(c1,c_,1,1)self.cv2=Conv(c_*4,c2,