YOLOv5在训练数据的时,出现标签corrupted,标签的坐标出现了负值。

2023-10-16 22:10

本文主要是介绍YOLOv5在训练数据的时,出现标签corrupted,标签的坐标出现了负值。,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

问题描述:在使用YOLO进行训练数据时,出现了Scanning 'C:\Users\aoqia\Desktop\datasets\grape\train\labels' images and labels...0 found, 4320 missing, 0 empty, 0 corrupted:这个错误。具体如下所示。

 WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000002_1.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000002_2.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000022_2.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000022_4.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000022_5.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000022_9.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000025_7.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000025_9.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000031_3.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000031_4.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000031_9.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000039_4.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000039_9.jpg: non-normalized or out of bounds coordinate labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000095_2.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000098_3.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000098_4.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000098_6.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000111_3.jpg: negative labels
train: WARNING: Ignoring corrupted image and/or label C:\Users\aoqia\Desktop\datasets\grape\train\images\000116_3.jpg: negative labels

原因分析:我们阅读报错提示,发现数据集标签中矩形框的坐标出现了负值,查看报错提示的标签,确实出现了负值,比如下图中的倒数第二行中出现了负值。这是因为我们在使用数据扩增的时候,使用了平移扩增,迫使边缘部分的矩形框被截掉,出现矩形框坐标为负值。

 解决办法:在使用数据扩增的时候取消使用平移扩增(或者说是图片缩放截取扩增)。

这篇关于YOLOv5在训练数据的时,出现标签corrupted,标签的坐标出现了负值。的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/221101

相关文章

Java五子棋之坐标校正

上篇针对了Java项目中的解构思维,在这篇内容中我们不妨从整体项目中拆解拿出一个非常重要的五子棋逻辑实现:坐标校正,我们如何使漫无目的鼠标点击变得有序化和可控化呢? 目录 一、从鼠标监听到获取坐标 1.MouseListener和MouseAdapter 2.mousePressed方法 二、坐标校正的具体实现方法 1.关于fillOval方法 2.坐标获取 3.坐标转换 4.坐

计算绕原点旋转某角度后的点的坐标

问题: A点(x, y)按顺时针旋转 theta 角度后点的坐标为A1点(x1,y1)  ,求x1 y1坐标用(x,y)和 theta 来表示 方法一: 设 OA 向量和x轴的角度为 alpha , 那么顺时针转过 theta后 ,OA1 向量和x轴的角度为 (alpha - theta) 。 使用圆的参数方程来表示点坐标。A的坐标可以表示为: \[\left\{ {\begin{ar

【服务器运维】MySQL数据存储至数据盘

查看磁盘及分区 [root@MySQL tmp]# fdisk -lDisk /dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size (logical/physical)

SQL Server中,查询数据库中有多少个表,以及数据库其余类型数据统计查询

sqlserver查询数据库中有多少个表 sql server 数表:select count(1) from sysobjects where xtype='U'数视图:select count(1) from sysobjects where xtype='V'数存储过程select count(1) from sysobjects where xtype='P' SE

YOLO v3 训练速度慢的问题

一天一夜出了两个模型,仅仅迭代了200次   原因:编译之前没有将Makefile 文件里的GPU设置为1,编译的是CPU版本,必须训练慢   解决方案: make clean  vim Makefile make   再次训练 速度快了,5分钟迭代了500次

数据时代的数字企业

1.写在前面 讨论数据治理在数字企业中的影响和必要性,并介绍数据治理的核心内容和实践方法。作者强调了数据质量、数据安全、数据隐私和数据合规等方面是数据治理的核心内容,并介绍了具体的实践措施和案例分析。企业需要重视这些方面以实现数字化转型和业务增长。 数字化转型行业小伙伴可以加入我的星球,初衷成为各位数字化转型参考库,星球内容每周更新 个人工作经验资料全部放在这里,包含数据治理、数据要

如何在Java中处理JSON数据?

如何在Java中处理JSON数据? 大家好,我是免费搭建查券返利机器人省钱赚佣金就用微赚淘客系统3.0的小编,也是冬天不穿秋裤,天冷也要风度的程序猿!今天我们将探讨在Java中如何处理JSON数据。JSON(JavaScript Object Notation)作为一种轻量级的数据交换格式,在现代应用程序中被广泛使用。Java通过多种库和API提供了处理JSON的能力,我们将深入了解其用法和最佳

将一维机械振动信号构造为训练集和测试集(Python)

从如下链接中下载轴承数据集。 https://www.sciencedirect.com/science/article/pii/S2352340918314124 import numpy as npimport scipy.io as sioimport matplotlib.pyplot as pltimport statistics as statsimport pandas

两个基因相关性CPTAC蛋白组数据

目录 蛋白数据下载 ①蛋白数据下载 1,TCGA-选择泛癌数据  2,TCGA-TCPA 3,CPTAC(非TCGA) ②蛋白相关性分析 1,数据整理 2,蛋白相关性分析 PCAS在线分析 蛋白数据下载 CPTAC蛋白组学数据库介绍及数据下载分析 – 王进的个人网站 (jingege.wang) ①蛋白数据下载 可以下载泛癌蛋白数据:UCSC Xena (xena

vscode-创建vue3项目-修改暗黑主题-常见错误-element插件标签-用法涉及问题

文章目录 1.vscode创建运行编译vue3项目2.添加项目资源3.添加element-plus元素4.修改为暗黑主题4.1.在main.js主文件中引入暗黑样式4.2.添加自定义样式文件4.3.html页面html标签添加样式 5.常见错误5.1.未使用变量5.2.关闭typescript检查5.3.调试器支持5.4.允许未到达代码和未定义代码 6.element常用标签6.1.下拉列表