码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • YOLOv5 PyTorch TXT label文件格式讲解


    Each image has one txt file with a single line for each bounding box. The format of each row is

    class_id center_x center_y width height

    where fields are space delimited, and the coordinates are normalized from zero to one.

    Note: To convert to normalized xywh from pixel values, divide x (and width) by the image’s width and divide y (and height) by the image’s height.

    001.txt

    1 0.617 0.3594420600858369 0.114 0.17381974248927037
    1 0.094 0.38626609442060084 0.156 0.23605150214592274
    1 0.295 0.3959227467811159 0.13 0.19527896995708155
    1 0.785 0.398068669527897 0.07 0.14377682403433475
    1 0.886 0.40879828326180256 0.124 0.18240343347639484
    1 0.723 0.398068669527897 0.102 0.1609442060085837
    1 0.541 0.35085836909871243 0.094 0.16952789699570817
    1 0.428 0.4334763948497854 0.068 0.1072961373390558
    1 0.375 0.40236051502145925 0.054 0.1351931330472103
    1 0.976 0.3927038626609442 0.044 0.17167381974248927

    The data.yaml file contains configuration values used by the model to locate images and map class names to class_id’s.

    data.yaml

    train: ../train/images
    val: ../valid/images
    
    nc: 3
    names: ['head', 'helmet', 'person']
    
    • 1
    • 2
    • 3
    • 4
    • 5

    在这里插入图片描述

  • 相关阅读:
    真实场景sql优化持续更新(老司机必备)
    《c++ Primer Plus 第6版》读书笔记(6)
    EA&UML日拱一卒 用例包含关系
    第08章 长期依赖与优化策略
    ArcGIS Maps SDK for JS:监听图层的visible属性
    Spring Cloud Gateway系列【5】GatewayFilter网关过滤器详解
    诊断Android系统原生代码Native崩溃问题
    Java 网络编程(大全)
    雷鸟Air+理想L9:开启车内AR沉浸观影新体验
    Windows已经安装了QT 6.3.0,如何再安装一个QT 5.12
  • 原文地址:https://blog.csdn.net/ZauberC/article/details/126120704
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号