问题一:Images sizes do not match. This will causes images to be display incorrectly in the UI.
![](https://img-blog.csdnimg.cn/7c3b15499d754128b69077fd4631d9c2.png)
解决办法:图像大小不匹配问题并不影响网络的测试结果,所以可以不用管
问题二:RuntimeError: The size of tensor a (60) must match the size of tensor b (56) at non-single
解决办法:
首先根据图中地址找到YOLOv5-5.0版本
然后往下翻,找到Assets,再找到需要的相应的权重文件,下载下来
下载下来放入对应位置,即可运行成功。
问题三:Dataset autodownload failure
解决办法:把下载的coco128数据集和项目yolov5-5.0放在同一级目录中
问题四:AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from 'D:\\PyCharmProject\\yolov5-5.0\\yolov5-5.0\\models\\common.py'>
解决办法:
问题五:AttributeError: ‘Upsample‘ object has no attribute’recompute_...'
解决办法:
问题六:wandb.errors.UsageError: api_key not configured (no-tty). call wandb.login(key=[your_api_
API_key输入错误截图:
输入成功会变成下图这样: