界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

data-preparation

data-preparation

【数据与研究】Prepares YOLO annotation lists, class-name files, anchors, and Pascal VOC conversion inputs for dataset setup, label validation, and training-input hygiene.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: data-preparation description: "Prepares YOLO annotation lists, class-name files, anchors, and Pascal VOC conversion inputs for dataset setup, label validation, and training-input hygiene." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

Data Preparation

Use this sub-skill when the request is about preparing or checking dataset inputs for this repo:

  • YOLO annotation rows and split files
  • *.names class files
  • anchor files and anchor-shape sanity checks
  • Pascal VOC trees and annotation conversion
  • label-quality troubleshooting before training or evaluation

What it covers

  • Annotation schema: image_path xmin,ymin,xmax,ymax,class_id ...
  • Class ids are zero-based line numbers in the chosen class file.
  • Anchor files must provide 18 numeric values that reshape to (3, 3, 2).
  • VOC conversion assumes the repo's train/VOCdevkit/... and test/VOCdevkit/... tree layout.
  • core/dataset.py expects cfg.YOLO.CLASSES, cfg.YOLO.ANCHORS, cfg.TRAIN.ANNOT_PATH, and cfg.TEST.ANNOT_PATH to stay aligned.
  • The bundled validator at scripts/validate_yolo_annotations.py checks rows, optional class and anchor files, and optional image existence.

Use the bundled references

Route away when needed

This sub-skill does not run training, frozen-graph export, image/video inference, or mAP evaluation. Hand off those requests to the sibling sub-skills that own them.

Run the validator before training whenever label files, class files, anchor files, or image roots change.

我的收藏