Skip to content
Back to skills

Data Preparation

ASecurity

"Guides Tencent ML-Images URL lists, image-label lists,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythonshellapi

Works with

  • api

Security analysis

A100/100

Pro scans all 7 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-d24f0272/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-d24f0272)

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 Tencent ML-Images URL lists, image-label lists,
  dictionaries, and TFRecord preparation workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Data Preparation

Use this sub-skill when the task is about preparing data for Tencent ML-Images
training or finetuning: downloading OpenImages URLs, validating image/label
lists, interpreting class dictionaries or the semantic hierarchy, and writing
TFRecord shards.

## Read first

- Read [references/data-formats.md](references/data-formats.md) when you need the
  exact row formats for URL lists, local image lists, dictionaries, semantic
  hierarchy files, or TFRecord features.
- Read [references/workflows.md](references/workflows.md) for safe downloader and
  TFRecord conversion recipes that replace the original shell examples.
- Read [references/troubleshooting.md](references/troubleshooting.md) when URLs,
  images, labels, TensorFlow file APIs, or output directories fail.

## Bundled helpers

Run these helper scripts from the generated skill tree, not from the original
repository examples:

- `scripts/validate_ml_images_lists.py` checks URL-list/image-list/dictionary
  shape, label tokens, class-id bounds, duplicate image rows, and optionally
  whether image paths exist.
- `scripts/download_urls.py` is a Python 3 adaptation of the downloader. It is
  dry-run safe by default when `--dry-run` is supplied and supports `--limit` so
  agents can inspect URL handling without bulk download side effects.
- `scripts/make_tfrecords.py` is a safer TensorFlow 1.x/compat TFRecord writer
  for local images and label-list shards. It refuses to overwrite existing
  shards unless `--overwrite` is explicit.

## Route by task

- **Understand data files**: start with `references/data-formats.md`; then use
  `scripts/validate_ml_images_lists.py` against the user's copy of the files.
- **Download a tiny URL sample**: read `references/workflows.md`, run the
  downloader with `--dry-run --limit N`, and only remove `--dry-run` after the
  user has approved network writes.
- **Convert image lists to TFRecords**: validate the list first, then run
  `scripts/make_tfrecords.py` into a fresh output directory. Route onward to
  [../resnet-training/SKILL.md](../resnet-training/SKILL.md) for the train/val
  directory layout consumed by the model scripts.
- **Debug invalid data**: use the symptom table in
  `references/troubleshooting.md`; do not guess class counts or label encodings.

## Key operating constraints

- The public project uses legacy TensorFlow 1.x data APIs. Prefer a TensorFlow
  1.x runtime for native conversion; a modern TensorFlow 2 runtime may need
  `tf.compat.v1` behavior and should be tested with the bundled converter first.
- URL downloads are network-bound and many public image URLs may be expired. A
  failed download is not necessarily a parser bug.
- The ML-Images multi-label files use zero-based class ids and may include
  confidence scores such as `5193:0.9`. The ImageNet finetuning path may use a
  single scalar class id instead.
- Treat the tracked tiny examples as schema demonstrations. Do not bundle or
  require the full ML-Images, OpenImages, ImageNet, or checkpoint artifacts.

Files in this skill

  • SKILL.md3.2 KB
  • references/data-formats.md3.9 KB
  • references/troubleshooting.md3 KB
  • references/workflows.md3.1 KB
  • scripts/download_urls.py5.3 KB
  • scripts/make_tfrecords.py8.9 KB
  • scripts/validate_ml_images_lists.py7.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.