data-and-routes
Guides TransFuser CARLA training route and scenario preparation, dataset-layout validation, privileged autopilot collection, safe command construction, and route visualization without launching CARLA or downloading data.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-and-routes
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides TransFuser CARLA training route and scenario preparation, dataset-layout validation, privileged autopilot collection, safe command construction, and route visualization without launching CARLA or downloading data.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/data-generation.md6.0 KB
- 参考文档references/dataset-layout.md4.9 KB
- 参考文档references/routes-and-scenarios.md6.7 KB
- 参考文档references/troubleshooting.md5.2 KB
- 脚本scripts/build_route_tool_command.py14.6 KB
- 脚本scripts/validate_dataset_layout.py12.5 KB
- 脚本scripts/validate_route_files.py12.2 KB
03 SKILL.md 正文
TransFuser Data And Routes
Use this sub-skill when a Researcher needs to understand, validate, or prepare TransFuser training routes, scenario annotations, generated samples, or the privileged data-generation agent. Start with the relevant bundled reference; use the scripts for deterministic local checks and command construction.
Route by need
- Existing files or schema: read dataset-layout.md
for sample folders and routes-and-scenarios.md
for XML/JSON validation and route semantics. Run:
python scripts/validate_route_files.py --helpandpython scripts/validate_dataset_layout.py --help. - Generating or visualizing files: read
data-generation.md, then build a plan with
python scripts/build_route_tool_command.py --help. The builder only prints a command/environment plan; it never starts a server, imports CARLA, writes routes, or uses the network. - A failed or incomplete run: read troubleshooting.md, validate inputs before retrying, and preserve the distinction between a safe local check and a CARLA-backed result.
Required operating sequence
- Confirm the town set (
Town01–Town07,Town10HD), scenario set (Scenario1,3,4,7,8,9,10), output roots, and whether the operation is route generation, scenario generation, visualization, or collection. - Validate paths and schemas first. Route XML and scenario JSON can be parsed on CPU without CARLA; route/scenario compatibility is a structural signal, not proof that a CARLA map can interpolate the route.
- Generate scenarios before routes. Start the matching CARLA 0.9.10.1 server and then run the scenario launcher, followed by the route launcher. Never run the bundled command builder as if it were a launcher.
- Keep
PYTHONPATHordered for the CARLA PythonAPI/egg, ScenarioRunner, and leaderboard. Use absolute paths at execution time, but do not place a local checkout path into a reusable skill file. - For collection, use the privileged
DataAgent/AutoPilotonly after the route/scenario pair is validated, the server is reachable, and the output directory has enough space. A generated command or valid fixture is never a claim that data generation passed. - Stop before network downloads, simulator launch, Docker, or the 210 GB data acquisition boundary unless the Researcher explicitly owns those external actions and verifies them separately.
Invariants and handoffs
data-and-routesowns route/scenario generation, route visualization, collection layout, and safe preflight. Link tomodel-trainingfor how samples are consumed and tocarla-evaluationfor Longest6/evaluator runs.- The generated dataset must contain synchronized frame indices across the
required modalities and enough future
label_rawframes for the configured sequence/prediction window. - Scenario files describe trigger transforms and event configurations; route files describe map/town and waypoint paths. A matching filename alone does not prove that an event trigger lies on a route.
- The repository checkout is source evidence only. These bundled references and scripts must remain usable when the original checkout is absent.
Verification status
The route/scenario schemas, selected repository fixtures, and self-contained
script fixtures are CPU-checkable. CARLA 0.9.10.1 and a running CarlaUE4.sh
server were absent during construction, so no scenario generation, route
interpolation, visualization against a map, or dataset collection is claimed
as passed. Treat this as an explicit external-runtime block.
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).