AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from 'E:\\pycharm\\yolov5-5.0\\models\\common.py'>
时间: 2023-08-27 12:15:02 浏览: 177
PATCH for MMS-LITE (V5.3001.1)
3星 · 编辑精心推荐
问题原因是在运行detect.py时,自动从GitHub上下载了最新版本6.0的训练好的模型,而你所用的版本是5.0,导致版本不一致出现报错。解决方法是从https://github.com/ultralytics/yolov5/releases/下载适合你所用版本的训练好的模型,然后将文件放在正确的位置。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* *2* [YOLOv5——报错解决:AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from...](https://blog.csdn.net/Williamcsj/article/details/122678104)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文