Skip to content
Back to skills

Conversion

ASecurity

"Convert common annotation and detector-output formats into mAP

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
tools

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill conversion --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conversion?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conversion
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-conversion-19249a71/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-conversion-19249a71)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conversion
description: "Convert common annotation and detector-output formats into mAP
  evaluator text files."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# 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/*.txt` rows.
  - YOLO normalized label files to `ground-truth/*.txt` rows using a class list and image dimensions.
  - keras-yolo3 ground-truth annotation files to one evaluator text file per image.
- Detection-result conversions:
  - darkflow JSON detections to `detection-results/*.txt` rows.
  - darknet `result.txt` detector output to `detection-results/*.txt` rows.
  - keras-yolo3 detection annotation files to one evaluator text file per image.
- 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 `evaluation` sub-skill.
- Do **not** repair mismatched ground-truth/detection-result file sets here. Route class lookup, intersection checks, and repair workflows to the sibling `data-validation` sub-skill.
- Do **not** depend on the original repository checkout. Use the bundled helper and bundled references in this sub-skill.

## Start here

1. Read [references/data-formats.md](references/data-formats.md) to identify the source format and the exact evaluator row format you must produce.
2. Follow [references/workflows.md](references/workflows.md) for the matching conversion command.
3. If the conversion fails, use [references/troubleshooting.md](references/troubleshooting.md) before changing data or assumptions.
4. Use the bundled converter: [scripts/convert_annotations.py](scripts/convert_annotations.py).

## Quick route table

| User request | Route |
| --- | --- |
| "Convert VOC XML annotations" | `voc-xml-gt` workflow in [references/workflows.md](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`.

Files in this skill

  • SKILL.md2.9 KB
  • references/data-formats.md4.8 KB
  • references/troubleshooting.md5.9 KB
  • references/workflows.md6.5 KB
  • scripts/convert_annotations.py25.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.