labelGo使用错误记录
错误一
AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from 'C:/Users/Gientech/Desktop/Gientech/biaozhu_tools/labelGo-Yolov5AutoLabelImg-master/libs\\models\\common.py'>
错误描述:我们的 models\common.py 文件里缺少 SPPF 属性
解决方案:model/common.py里面去找到这个SPPF的类,把它拷过来放到我们的的model/common.py里面,这样我们的代码就也有这个类了,还要引入一个warnings包就行了。
import warnings
class SPPF(nn.Module):
# Spatial Pyramid Pooling - Fast (SPPF) layer for YOLOv5 by Glenn Jocher
def __init__(self, c1, c2, k=5):