1.训练配置文件中显示支持无目标框的空白样本

This commit is contained in:
haotian 2025-06-27 15:33:53 +08:00
parent 358bba1b8c
commit 0275ee5dff

View File

@ -0,0 +1,24 @@
# 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: /home/admin-root/haotian/python哈汽锻8安全帽识别/DatasetHelmetHeadShoe # dataset root dir
train: train # train images (relative to 'path') 4 images
val: train # val images (relative to 'path') 4 images
with_negatives: True # 显式启用空白图片加载
# test: test # test images (optional)
# Classes
names:
0: Helmet
1: Non-Helmet
2: Shoes
# ['Gloves','Helmet','Non-Helmet','Person','Shoes','Vest','bare-arms']