当前位置:网站首页>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
边栏推荐
- From the physical level of the device to the circuit level
- word标尺有哪些作用
- Go 语言快速入门指南: 介绍及安装
- 【云原生 · Kubernetes】部署Kubernetes集群
- 小身材有大作用——光模块基础知识(一)
- 利用ChangeStream实现Amazon DocumentDB表级别容灾复制
- From scratch Blazor Server (6) - authentication based on strategy
- App自动化测试怎么做?实战分享App自动化测试全流程
- 【Verilog】HDLBits题解——Verification: Reading Simulations
- 随机森林项目实战---气温预测
猜你喜欢
随机推荐
[Verilog] HDLBits Problem Solution - Circuits/Sequential Logic/Latches and Flip-Flops
长城简漫·暑期安全篇⑤ 这个强,不能逞
fastposter v2.9.0 programmer must-have poster generator
【精品必知】Pod生命周期
bash while循环和until循环
Matlab学习12-图像处理之图像增强
无监督学习KMeans学习笔记和实例
码率vs.分辨率,哪一个更重要?
YOLOv5训练数据提示No labels found、with_suffix使用、yolov5训练时出现WARNING: Ignoring corrupted image and/or label
浅谈程序员的职业操守
(through page) ali time to upload the jar
数据库系统原理与应用教程(075)—— MySQL 练习题:操作题 151-159(十九):综合练习
Five super handy phone open-source automation tools, which is suitable for you?
从零开始C语言精讲篇5:指针
4500 words sum up, a software test engineer need to master the skill books
LeetCode刷题笔记:622.设计循环队列
第十五章 源代码文件 REST API 简介
类型转换、常用运算符
子结点的数量
特征降维学习笔记(pca和lda)(1)