Can't get attribute 'SPPF' on <module 'models.common' from 'D:\\xiazai\\yolov5-5.0\\models\\common.py'>
时间: 2023-09-30 21:08:06 浏览: 226
这个错误是由于在模型的common.py文件中找不到'SPPF'属性所引起的。根据提供的引用内容,可以看出建议去volov5-6.0版本里的model/common.py文件中找到SPPF类,并将其复制到当前的common.py文件中。此外,还建议导入一个名为warnings的包来解决报错。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘yolov5-5.0\\...](https://blog.csdn.net/qq_44866009/article/details/121576501)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/yolov5-5.0/...](https://blog.csdn.net/woshicaiji12138/article/details/126043440)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [yolov5-v0.3模型.zip](https://download.csdn.net/download/peach_orange/12717589)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文