运行b站导师bubbliiiing的yolov7代码报错
OSError: Caught OSError in DataLoader worker process 1.
AttributeError: 'JpegImageFile' object has no attribute 'shape'
OSError: image file is truncated (42 bytes not processed)
出错原因就是上传到云服务器的图片损坏了,看下面
解决方法:把本地完好的图片上传到服务器就好了
如何排查是哪张照片出了问题的代码如下所示: