【深度学习】yolov 图片训练的时候的遇到的warning: corrupt JPEG restored and saved
报错原因是图片在dataset.py走验证时报的错误。ifim.format.lower()in('jpg','jpeg'):withopen(im_file,'rb')asf:f.seek(-2,2)iff.read()!=b'\xff\xd9':#corruptJPEGImageOps.exif_transpose(Image.open(im_file)).save(im_file,'JPEG