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
- 参考文档references/api-reference.md1.8 KB
- 参考文档references/configuration.md2.0 KB
- 参考文档references/data-formats.md2.2 KB
- 参考文档references/troubleshooting.md2.5 KB
- 脚本scripts/convert_tusimple_safe.py6.2 KB
- 脚本scripts/validate_dataset_layout.py2.3 KB
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, ortest_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_numfor 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.mdfor the repo's config defaults and override patterns. - Read
references/data-formats.mdfor the CULane and TuSimple directory layouts and expected list files. - Read
references/api-reference.mdwhen you need exact function/class signatures. - Run
scripts/validate_dataset_layout.pywhen the user only wants to know whether a dataset root is ready. - Run
scripts/convert_tusimple_safe.pywhen TuSimple masks and list files must be generated.
Typical flow
- Identify the dataset family: CULane or TuSimple.
- Check the dataset root layout with the bundled validator.
- Load the appropriate config and override only the values that differ from the user's environment.
- Convert TuSimple labels when the segmentation masks or list files are missing.
- Hand the prepared layout to
trainingorevaluation-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
Configloader rather than a package-style install-time config object.
Reference and script links
references/configuration.mdfor override examples and the most useful config fields.references/data-formats.mdfor folder layouts, row anchors, and dataset outputs.references/api-reference.mdfor verified signatures.references/troubleshooting.mdfor path, layout, and conversion errors.scripts/convert_tusimple_safe.pyto generate TuSimple segmentation masks and lists.scripts/validate_dataset_layout.pyto check dataset roots without modifying them.
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).