当前位置:网站首页>YOLOv5 training data prompts No labels found, with_suffix is used, WARNING: Ignoring corrupted image and/or label appears during yolov5 training
YOLOv5 training data prompts No labels found, with_suffix is used, WARNING: Ignoring corrupted image and/or label appears during yolov5 training
2022-08-03 12:14:00 【Is seven uncle ah】
YOLOv5 training data prompts No labels found [Pro-test yolo to load the label file only needs to modify the img2label_paths
function changes to load the label file]
Looking carefully at the file datasets.py for data loading and processing, I found that there is a sentence that will find the corresponding labels folder according to the location of the images folder in step 2:
The place where YOLOv5 loads the label is in this place in datasets.py
, we just modify the path to load the label to place the label for our own.
In this img2label_paths
function, our modifications are as follows: [Because we put the label and img in the same folder, we can just modify the suffix name directly]
with_suffix(suffix) replace the extension, return the new path, the extension will remain unchanged
You can also use with_suffix(suffix)
to modify the suffix, but this method needs to import the Path('/hidog/text.tar.gz')
class,
This is used in YOLOv5, used when checking the cache file
- [The cache will continue until the check data file is executed, which contains nc, nf, etc., which can display whether the data is found, lost, damaged, etc. on the console. For example, when the input image is a raw image that cannot be processed by yolo, it will be nc+=1 accumulated, and finally printed in the console]
Use of .replace()
function in YOLOv5
yolov5 is used like this
WARNING: Ignoring corrupted image and/or label during yolov5 training
When using the yolov5 training data set, the following alarm appears
WARNING: Ignoring corrupted image and/or label
We found the place where the warning was found in the debug order
The reason is that the image I input is in the .raw
format that YOLOv5 cannot process. Here we choose to convert .raw
to .png
or .tif
image and then upload it.
Reference: Python standard library pathlib
Reference: WARNING: Ignoring corrupted image and/or label appears during yolov5 training
YOLOv5 training data prompt No labels found
边栏推荐
- 【云原生 · Kubernetes】部署Kubernetes集群
- 3年软件测试经验,不懂自动化基础...不知道我这种测试人员是不是要被淘汰了?
- 别再用if-else了,分享一下我使用“策略模式”的项目经验...
- 基于Sikuli GUI图像识别框架的PC客户端自动化测试实践
- asdn涨薪技术之apifox+Jenkins如何玩转接口自动化测试
- ROS中编译通过但是遇到可执行文件找不到的问题
- 【Verilog】HDLBits题解——Verification: Reading Simulations
- nacos应用
- 数据库系统原理与应用教程(075)—— MySQL 练习题:操作题 151-159(十九):综合练习
- 进程内存
猜你喜欢
随机推荐
漫谈缺陷管理的自动化实践方案
【Verilog】HDLBits题解——Circuits/Sequential Logic/Latches and Flip-Flops
php microtime encapsulates the tool class, calculates the running time of the interface (breakpoint)
深度学习中数据到底要不要归一化?实测数据来说明!
ThreadLocal源码解析及使用场景
word标尺有哪些作用
无监督学习KMeans学习笔记和实例
通过点击CheckBox实现背景变换小案例
一个扛住 100 亿次请求的红包系统,写得太好了!!
最牛逼的集群监控系统,它始终位列第一!
流式编程使用场景
R语言绘制时间序列的自相关函数图:使用acf函数可视化时间序列数据的自相关系数图
622. 设计循环队列
Mysql重启后innodb和myisam插入的主键id变化总结
5个超好用手机开源自动化工具,哪个适合你?
bash while loop and until loop
从器件物理级提升到电路级
setTimeout 、setInterval、requestAnimationFrame
-找树根2-
字符串本地化和消息字典(二)