Skip to content
Back to skills

Data Preparation

ASecurity

"Guides SimpleDet annotation conversion and roidb validation for

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
toolspythongobashbackend

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-90064bb5/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-90064bb5)

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: data-preparation
description: "Guides SimpleDet annotation conversion and roidb validation for
  COCO-like, VOC, CrowdHuman, and custom JSON detection or instance-segmentation
  data."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Data preparation

Use this route for annotation conversion, `data/cache/*.roidb`, image layouts,
class IDs, polygon masks, split names, or validation. Read
[data-formats.md](references/data-formats.md) before conversion and
[troubleshooting.md](references/troubleshooting.md) after a failure.

## Workflow

1. Choose COCO-like JSON, VOC XML, CrowdHuman ODGT, or custom JSON.
2. Confirm the image/annotation layout and exact split names.
3. Use the bundled [convert_roidb.py](scripts/convert_roidb.py) with an explicit
   `--output`; it never downloads data.
4. Run [validate_roidb.py](scripts/validate_roidb.py) on a tiny result before
   using the cache for a model workflow.
5. Match the output basename to `DatasetParam.image_set`.
6. For masks, validate `gt_poly`, polygon lengths, and static config limits.

## Data contract

- `gt_class` uses positive foreground IDs; `0` is background and CrowdHuman
  ignore regions use `-2`.
- `gt_bbox` is `(N,4)` xyxy, not COCO xywh.
- `flipped` should be false in cached records; loader-time augmentation flips.
- `image_url`, positive `h`/`w`, and float32-safe `im_id` are required.
- Mask records need one raw polygon-list entry per instance.

## Bundled helpers

```bash
python <skill-root>/sub-skills/data-preparation/scripts/convert_roidb.py --help
python <skill-root>/sub-skills/data-preparation/scripts/validate_roidb.py --help
python <skill-root>/sub-skills/data-preparation/scripts/validate_roidb.py --input data/cache/custom.roidb --check-images --max-records 3
```

The converter supports `--format json|voc|coco|crowdhuman`; it requires only
its format-specific public dependencies and writes only the explicit output.
The validator is read-only and can check JSON/JSONL without NumPy; pickle
roidbs require NumPy.

## Route onward

- Runtime/compiler/backend issues: [setup-and-operations](../setup-and-operations/SKILL.md).
- Detector/config/checkpoint execution: [detection-workflows](../detection-workflows/SKILL.md).
- Architecture or tensor-contract changes: [model-customization](../model-customization/SKILL.md).

Read [workflows.md](references/workflows.md) for format-specific commands and
cache handoff details.

Files in this skill

  • SKILL.md2.4 KB
  • references/data-formats.md7.3 KB
  • references/troubleshooting.md6.1 KB
  • references/workflows.md2.7 KB
  • scripts/convert_roidb.py7.3 KB
  • scripts/validate_roidb.py16.9 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.