conversion
Convert common annotation and detector-output formats into mAP evaluator text files.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- conversion
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Convert common annotation and detector-output formats into mAP evaluator text files.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/data-formats.md4.8 KB
- 参考文档references/troubleshooting.md5.9 KB
- 参考文档references/workflows.md6.5 KB
03 SKILL.md 正文
Conversion
Use this sub-skill when the user needs annotation or detector-output files transformed into the evaluator's required per-image text files before running mAP/AP evaluation.
What this sub-skill covers
- Ground-truth conversions:
- PASCAL VOC XML object annotations to
ground-truth/*.txtrows. - YOLO normalized label files to
ground-truth/*.txtrows using a class list and image dimensions. - keras-yolo3 ground-truth annotation files to one evaluator text file per image.
- PASCAL VOC XML object annotations to
- Detection-result conversions:
- darkflow JSON detections to
detection-results/*.txtrows. - darknet
result.txtdetector output todetection-results/*.txtrows. - keras-yolo3 detection annotation files to one evaluator text file per image.
- darkflow JSON detections to
- Safer conversion behavior than the legacy one-off scripts: explicit input paths, explicit output directories, no moving or renaming source files.
Boundaries and routing
- Do not compute AP/mAP metrics here. After conversion, route evaluator execution to the sibling
evaluationsub-skill. - Do not repair mismatched ground-truth/detection-result file sets here. Route class lookup, intersection checks, and repair workflows to the sibling
data-validationsub-skill. - Do not depend on the original repository checkout. Use the bundled helper and bundled references in this sub-skill.
Start here
- Read references/data-formats.md to identify the source format and the exact evaluator row format you must produce.
- Follow references/workflows.md for the matching conversion command.
- If the conversion fails, use references/troubleshooting.md before changing data or assumptions.
- Use the bundled converter: scripts/convert_annotations.py.
Quick route table
| User request | Route |
|---|---|
| "Convert VOC XML annotations" | voc-xml-gt workflow in references/workflows.md. |
| "Convert YOLO labels for ground truth" | yolo-gt workflow; require class list plus image dimensions. |
| "Convert darkflow JSON detections" | darkflow-json-dr workflow. |
| "Convert darknet result.txt" | darknet-result-dr workflow. |
| "Convert keras-yolo3 annotations" | keras-yolo3 --gt or keras-yolo3 --dr; choose flat or recursive output layout. |
Output contract
Successful conversion produces evaluator-ready .txt files in an explicit output directory. Each output file represents one image. Ground-truth and detection-result files should later have matching basenames before evaluation; checking and repairing that intersection belongs to data-validation.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.