AGENT SKILL

data-and-config

Routes CULane and TuSimple dataset preparation, config overrides, and data-layout checks for Ultra-Fast-Lane-Detection.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
data-and-config
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes CULane and TuSimple dataset preparation, config overrides, and data-layout checks for Ultra-Fast-Lane-Detection.
disable-model-invocation
true

02 资源文件 6

03 SKILL.md 正文

data-and-config

Use this sub-skill when a task is about the lane-detection dataset layout, config files, TuSimple annotation conversion, or command-line overrides for the repo's training and evaluation scripts.

Read this when

  • You need to explain or fix data_root, log_path, finetune, resume, test_model, or test_work_dir.
  • You need to convert TuSimple JSON annotations into segmentation masks and list files.
  • You need to validate whether a CULane or TuSimple directory is ready for training or evaluation.
  • You need to pick the correct row anchors or griding_num for a dataset family.

What this sub-skill owns

  • Dataset root layout and file naming.
  • Config file defaults and command-line overrides.
  • TuSimple conversion from JSON labels to segmentation masks.
  • The dataset classes and loaders used by training and evaluation.
  • Common data-layout and config mistakes.

What it does not own

  • Training loop details, optimizers, and checkpoint lifecycle: see training.
  • Evaluation metrics, demo output files, and score formatting: see evaluation-and-visualization.
  • TorchScript export or speed benchmarking: see export-and-speed.

Start here

  • Read references/configuration.md for the repo's config defaults and override patterns.
  • Read references/data-formats.md for the CULane and TuSimple directory layouts and expected list files.
  • Read references/api-reference.md when you need exact function/class signatures.
  • Run scripts/validate_dataset_layout.py when the user only wants to know whether a dataset root is ready.
  • Run scripts/convert_tusimple_safe.py when TuSimple masks and list files must be generated.

Typical flow

  1. Identify the dataset family: CULane or TuSimple.
  2. Check the dataset root layout with the bundled validator.
  3. Load the appropriate config and override only the values that differ from the user's environment.
  4. Convert TuSimple labels when the segmentation masks or list files are missing.
  5. Hand the prepared layout to training or evaluation-and-visualization.

Caution points

  • The repo's source scripts assume CULane and TuSimple paths are already mounted or unpacked correctly.
  • TuSimple conversion writes train_gt.txt, test.txt, and segmentation PNGs into the dataset root.
  • The loaders expect the dataset roots and list files to match the documented file names exactly.
  • The repo uses a custom Config loader rather than a package-style install-time config object.

Reference and script links

  • references/configuration.md for override examples and the most useful config fields.
  • references/data-formats.md for folder layouts, row anchors, and dataset outputs.
  • references/api-reference.md for verified signatures.
  • references/troubleshooting.md for path, layout, and conversion errors.
  • scripts/convert_tusimple_safe.py to generate TuSimple segmentation masks and lists.
  • scripts/validate_dataset_layout.py to check dataset roots without modifying them.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351