本文主要是介绍Ultralytics-Hub 上传数据集格式,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
前言
我在使用这个Ultralytics-Hub的时候,发现上传的数据集不正确,缺少配置文件,于是在不为人知的地方展开了一场没有炮火与硝烟的斗争。
构建数据集
参考:数据集 -Ultralytics YOLOv8 文档
检测数据集
压缩包目录结构:
yaml示例:
# Ultralytics YOLO 🚀, AGPL-3.0 license
# COCO8 dataset (first 8 images from COCO train2017) by Ultralytics
# Documentation: https://docs.ultralytics.com/datasets/detect/coco8/
# Example usage: yolo train data=coco8.yaml
# parent
# ├── ultralytics
# └── datasets
# └── coco8 ← downloads here (1 MB)# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path: ../datasets/coco8 # dataset root dir
train: images/train # train images (relative to 'path') 4 images
val: images/val # val images (relative to 'path') 4 images
test: # test images (optional)# Classes
names:0: person1: bicycle2: car3: motorcycle4: airplane# Download script/URL (optional)
download: https://ultralytics.com/assets/coco8.zip
压缩为zip,上传即可。
这篇关于Ultralytics-Hub 上传数据集格式的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!