data-preparation
Prepare TuSimple labels, masks, index files, and TFRecords for LaneNet training.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-preparation
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Prepare TuSimple labels, masks, index files, and TFRecords for LaneNet training.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档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
03 SKILL.md 正文
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, andtraining/train.txt. - You need a prepared dataset with
gt_image/,gt_binary_image/,gt_instance_image/,train.txt,val.txt,test.txt, andtfrecords/tusimple_*.tfrecords. - You need to fix placeholder paths such as
REPO_ROOT_PATHorROOT_PATHbefore 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
Bundled scripts
scripts/generate_tusimple_dataset.pyconverts raw TuSimple JSON labels into LaneNet training masks and atraining/train.txtindex.scripts/make_tusimple_tfrecords.pyvalidates the prepared dataset layout and writestusimple_train.tfrecords,tusimple_val.tfrecords, andtusimple_test.tfrecords.
Expected outputs
- Raw conversion:
training/gt_image/,training/gt_binary_image/,training/gt_instance_image/,training/train.txt, and copied label JSONs undertraining/andtesting/. - 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.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).