Skip to content
Back to skills

Data Preparation

ASecurity

"Prepare TuSimple labels, masks, index files, and TFRecords for

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
datatestingdebugging

Security analysis

A100/100

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

Scanned September 8, 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-17c4b962/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-17c4b962)

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: "Prepare TuSimple labels, masks, index files, and TFRecords for
  LaneNet training."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# Data preparation

Use this sub-skill to turn raw TuSimple labels into LaneNet-ready masks, dataset lists, and TFRecords.

## Use when
- You have an unzipped TuSimple archive and need `training/gt_image`, `training/gt_binary_image`, `training/gt_instance_image`, and `training/train.txt`.
- You need a prepared dataset with `gt_image/`, `gt_binary_image/`, `gt_instance_image/`, `train.txt`, `val.txt`, `test.txt`, and `tfrecords/tusimple_*.tfrecords`.
- You need to fix placeholder paths such as `REPO_ROOT_PATH` or `ROOT_PATH` before TFRecord generation.

## Do not use for
- Model fitting, checkpoint management, or loss/debugging. Use the training sub-skill.
- Single-image inference, batch evaluation, or postprocess tuning. Use the inference-evaluation sub-skill.
- TensorFlow checkpoint freezing or MNN export. Use the model-export sub-skill.

## Start here
- [workflows](references/workflows.md)
- [data formats](references/data-formats.md)
- [troubleshooting](references/troubleshooting.md)

## Bundled scripts
- `scripts/generate_tusimple_dataset.py` converts raw TuSimple JSON labels into LaneNet training masks and a `training/train.txt` index.
- `scripts/make_tusimple_tfrecords.py` validates the prepared dataset layout and writes `tusimple_train.tfrecords`, `tusimple_val.tfrecords`, and `tusimple_test.tfrecords`.

## Expected outputs
- Raw conversion: `training/gt_image/`, `training/gt_binary_image/`, `training/gt_instance_image/`, `training/train.txt`, and copied label JSONs under `training/` and `testing/`.
- TFRecord stage: `tfrecords/tusimple_train.tfrecords`, `tfrecords/tusimple_val.tfrecords`, `tfrecords/tusimple_test.tfrecords`.

## Notes
- The TFRecord wrapper auto-discovers the repository root and can override the dataset root in memory.
- If the shipped sample lists still contain placeholders, regenerate or replace them before writing TFRecords.

Files in this skill

  • SKILL.md2 KB
  • references/data-formats.md3.2 KB
  • references/troubleshooting.md2.5 KB
  • references/workflows.md3.2 KB
  • scripts/generate_tusimple_dataset.py8.7 KB
  • scripts/make_tusimple_tfrecords.py9.1 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.