Can't get attribute 'SPPF' on <module 'models.common' from 'D:\\edge下载\\yolov5-5.0\\models\\common.py'>
时间: 2023-09-30 12:08:05 浏览: 221
-pickle.PicklingError: Can't pickle <function... pycharm2023运行报错
这个报错是因为在模块'models.common'中找不到名为'SPPF'的属性。解决方法是将Yolov5库中的common.py文件中的SPPF类复制到本地的common.py文件中。请确保复制的SPPF类代码位于180行到195行之间,并且不要忘记导入warnings模块。这样就可以解决报错"Can't get attribute 'SPPF' on <module 'models.common' from 'D:\edge下载\yolov5-5.0\models\common.py'>"了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [YOLOv5tagV5.0调试过程中的遇到的问题](https://blog.csdn.net/Z960515/article/details/121938688)[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: 100%"]
[ .reference_list ]
阅读全文