Skip to content
Back to skills

Dataset Export

ASecurity

"Guides headless conversion of labelme Annotation Files into label

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsgo

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Dataset Export?

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

Security grade badge for Dataset Export
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-dataset-export/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-dataset-export)

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: dataset-export
description: "Guides headless conversion of labelme Annotation Files into label
  PNGs, VOC semantic or instance datasets, VOC bounding boxes, and COCO
  annotations."
disable-model-invocation: true
metadata:
  disco-role: operating
license: GPL 3.0
---

# Dataset Export

Use this route when the input is a directory or file of labelme Annotation
Files and the output should be a training-data format or a sanity-checked label
PNG.

## Choose an export

- One JSON to image/class-label artifacts: `scripts/export_labelme_json.py`.
- Semantic or instance VOC segmentation: `scripts/labelme_export_voc.py`.
- Rectangle-only VOC detection XML: `scripts/labelme_export_bbox_voc.py`.
- Instance COCO JSON: `scripts/labelme_export_coco.py`.
- Inspect a label PNG's dtype, shape, or values:
  `scripts/inspect_label_png.py`.

## Safe workflow

1. Validate representative Annotation Files with
   `../annotation-data/scripts/validate_labelme_json.py`.
2. Prepare a labels file. For VOC/COCO examples, the first entries are
   `__ignore__` (id -1) and `_background_` (id 0); actual classes follow.
3. Use a new output directory. The VOC/COCO directory exporters refuse to
   overwrite an existing directory; `export_labelme_json.py` follows the
   tutorial helper and can reuse its output directory, so pass a fresh `--out`
   when avoiding clobbering matters.
4. Run the converter's `--help`, then run it against a tiny or copied input.
5. Inspect `class_names.txt`, a label PNG, image dimensions, and the generated
   annotation JSON/XML before using the result for training.
6. Read `references/troubleshooting.md` for optional dependencies and label
   vocabulary failures.

## Format ownership

- `label.png` stores class ids; `label_names.txt` maps ids to names.
- VOC segmentation emits `SegmentationClass`, and optionally
  `SegmentationObject`, plus optional NumPy and visualization outputs.
- VOC bbox export keeps only `rectangle` Shapes; other Shape types are skipped.
- COCO groups Shapes by `(label, group_id)` for instance masks and emits
  polygon segmentations, area, bbox, and category ids.
- Video annotation is handled as a directory of frame Annotation Files; use the
  same semantic/instance VOC path, not a special video codec.

## References and scripts

- Read `references/workflows.md` for copyable commands and expected layouts.
- Read `references/conversion-reference.md` for label ids, shape support, and
  optional dependencies.
- Read `references/troubleshooting.md` for validation and export recovery.
- All linked scripts are bundled under this skill and do not require the
  original repository checkout.

Route low-level JSON repair to `../annotation-data/SKILL.md`, CLI/session setup
to `../cli-and-config/SKILL.md`, AI-generated Shapes to
`../ai-assisted-annotation/SKILL.md`, and source changes to
`../repo-development/SKILL.md`.

Files in this skill

  • SKILL.md2.8 KB
  • references/conversion-reference.md2.2 KB
  • references/troubleshooting.md1.9 KB
  • references/workflows.md2.1 KB
  • scripts/export_labelme_json.py2.3 KB
  • scripts/inspect_label_png.py1.4 KB
  • scripts/labelme_export_bbox_voc.py4.2 KB
  • scripts/labelme_export_coco.py6.9 KB
  • scripts/labelme_export_voc.py4.4 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.