当前位置:网站首页>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
边栏推荐
猜你喜欢
详解虚拟机!京东大佬出品HotSpot VM源码剖析笔记(附完整源码)
hystrix 服务熔断和服务降级
面试突击71:GET 和 POST 有什么区别?
类型转换、常用运算符
PC client automation testing practice based on Sikuli GUI image recognition framework
How to do App Automation Testing?Practical sharing of the whole process of App automation testing
fastposter v2.9.0 programmer must-have poster generator
基于英雄联盟的知识图谱问答系统
超多精美礼品等你来拿!2022年中国混沌工程调查启动
【倒计时5天】探索音画质量提升背后的秘密,千元大礼等你来拿
随机推荐
苹果发布 AI 生成模型 GAUDI,文字生成 3D 场景
After completing the interview and clearance collection of Alibaba, I successfully won the 15th Offer this year
使用.NET简单实现一个Redis的高性能克隆版(一)
TiKV & TiFlash 加速复杂业务查询丨TiFlash 应用实践
Take you understand the principle of CDN technology
小身材有大作用——光模块基础知识(一)
App自动化测试怎么做?实战分享App自动化测试全流程
缓存--伪共享问题
深度学习跟踪DLT (deep learning tracker)
[深入浅出]三位数排序
php microtime encapsulates the tool class, calculates the running time of the interface (breakpoint)
LyScript implements memory stack scanning
-找树根-
JUC(三):锁核心类AQS ing
5个超好用手机开源自动化工具,哪个适合你?
分享一款实用的太阳能充电电路(室内光照可用)
flink流批一体有啥条件,数据源是从mysql批量分片读取,为啥设置成批量模式就不行
想学自动化测试网课哪个好?过了人告诉你:适合自己的才是最重要
数据库系统原理与应用教程(075)—— MySQL 练习题:操作题 151-159(十九):综合练习
零信任架构分析【扬帆】