当前位置:网站首页>【yolov5训练错误】WARNING: Ignoring corrupted image
【yolov5训练错误】WARNING: Ignoring corrupted image
2022-08-10 05:29:00 【Time.Xu】
最近在跑yolov5模型的时候,出现了以下警告,(WARNING: Ignoring corrupted image),模型可以继续训练,但是模型不能成功训练所有图片。

网上有以下两种解决方法:
1、要求将datasets.py里面的verify_image_label函数中部分代码注释掉,然而并没有解决问题。
2、删除.cache缓存文件,重新train

发现是由于图像数据集中存在JPEG和jpg两种格式,将格式统一转化为jpg格式后可以成功训练。
转化代码见链接:
【格式转换】将JPEG图片批量处理为jpg格式_vibration_xu的博客-CSDN博客
然而这两种方法并没有什么作用,最后发现数据图片中有JPEG和jpg两种文件格式,将文件格式统一成.jpg格式后便可成功训练。
将JPEG格式转为.jpg格式的方法链接见如下博客
边栏推荐
猜你喜欢

如何在报表控件FastReport.NET中连接XLSX 文件作为数据源?

pytest测试框架

An article to master the entire JVM, JVM ultra-detailed analysis!!!

Arduino框架下合宙ESP32C3 +1.8“tft 网络时钟

Interface documentation evolution illustration, some ancient interface documentation tools, you may not have used it

Qiskit学习笔记(三)

CSDN Markdown 之我见代码块 | CSDN编辑器测评

一篇文章掌握整个JVM,JVM超详细解析!!!

通过一个案例轻松入门OAuth协议

Get started with the OAuth protocol easily with a case
随机推荐
基于Qiskit——《量子计算编程实战》读书笔记(二)
Order table delete, insert and search operations
Qiskit学习笔记(三)
动手写prometheus的exporter-02-Counter(计数器)
接口文档进化图鉴,有些古早接口文档工具,你可能都没用过
aliases node analysis
基于Qiskit——《量子计算编程实战》读书笔记(一)
一篇文章带你搞懂什么是幂等性问题?如何解决幂等性问题?
树莓派入门(3)树莓派GPIO学习
Pony语言学习(一):环境配置(续)
pytorch框架学习(9)torchvision.transform
OAuth2 usage scenarios, common misunderstandings, use cases
AVL树的插入--旋转笔记
Guys, the test in the idea uses FlinkCDC SQL to read Mysql data and write it into Kafka. The code creates
What are the common commands of mysql
Rpc interface stress test
SQL数据库字段追加到主表
flinkcdc 读取pgsql 的时间被放大了 有大佬知道咋回事吗 gmt_create':1
conda创建虚拟环境方法和pqi使用国内镜像源安装第三方库的方法教程
接口调试还能这么玩?
https://blog.csdn.net/vibration_xu/article/details/122580697