transfuser
Guides TransFuser autonomous-driving model training, multimodal CARLA sensor-agent operation, dataset and route preparation, Longest6 evaluation, and result analysis.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- transfuser
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides TransFuser autonomous-driving model training, multimodal CARLA sensor-agent operation, dataset and route preparation, Longest6 evaluation, and result analysis.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/installation-and-compatibility.md3.5 KB
- 参考文档references/repo-provenance.md1.9 KB
- 参考文档references/repo-routing-metadata.json530 B
- 参考文档references/troubleshooting.md3.7 KB
- 脚本scripts/check_environment.py3.8 KB
03 SKILL.md 正文
TransFuser
Use this repo skill when a task mentions TransFuser, transformer-based sensor
fusion for CARLA, camera/LiDAR imitation learning, HybridAgent, CARLA
Longest6, route/scenario generation, or the repository's training/evaluation
artifacts.
Choose the route
- Train, resume, validate data, select a fusion backbone, or inspect a checkpoint: read model-training.
- Configure or diagnose the learned CARLA sensor agent, sensors, target point, PID control, safety, or ensembles: read sensor-agent.
- Validate dataset trees, route/scenario XML/JSON, generate routes, or plan privileged data collection: read data-and-routes.
- Prepare local/Longest6 evaluation, parse result JSON, build a guarded evaluation/Docker plan, or interpret infractions: read carla-evaluation.
Read installation-and-compatibility.md first when setting up a new runtime, changing the legacy dependency stack, or checking whether CUDA/CARLA prerequisites are available. Read troubleshooting.md when a workflow fails at installation, import, data/config validation, backend setup, or external runtime boundaries. Read repo-provenance.md before deciding whether this skill is stale for a changed checkout.
Operating contract
- Establish the checkout, dataset/checkpoint paths, requested backbone, target CARLA version, and whether the task is static preparation, a safe smoke, or full simulation/training.
- Run the nearest bundled preflight before an expensive action. Bundled helpers are plan/validation tools: they do not download the 210-GB dataset, launch CARLA, train for epochs, build Docker images, or submit cloud jobs.
- Preserve the repository's coordinate and file-layout conventions. Do not
silently reinterpret camera/LiDAR axes, route IDs, DDP checkpoint prefixes,
args.txt, or theTEAM_CONFIGdirectory contract. - Treat CUDA as required for learned training and inference. A CPU import or parser check is not a substitute. Treat CARLA 0.9.10.1 plus a running compatible server as required for simulation-native data generation and evaluation.
- Keep external side effects explicit: ask for or verify network, disk, simulator, GPU, Docker, credentials, and checkpoint prerequisites before launching them.
Installation and minimal checks
The historical repository environment is Python 3.7 with a CUDA 11.3 PyTorch 1.12.1 stack and matching OpenMMLab 1.x packages. Prefer the exact documented combination for compatibility; do not upgrade one compiled component in isolation. A minimal package-only check is:
python -c "import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available())"
python scripts/check_environment.py --json
The learned workflows additionally need the repository's top-level modules on
PYTHONPATH or an equivalent checkout-aware launch context, compatible
mmcv-full, mmdet, mmsegmentation, mmcls, torch-scatter, timm, and
the data/vision dependencies. Full sensor-agent and CARLA evaluation also need
the CARLA 0.9.10.1 Python API, scenario-runner, leaderboard modules, a running
CARLA server, model checkpoints, and route/scenario files.
Scope boundaries
This skill distills the public TransFuser operating workflows; it is not a vendored copy of CARLA or ScenarioRunner. Large maps, figures, downloaded weights, generated results, and the full dataset are not runtime dependencies of this skill. Docker packaging and Alpha leaderboard submission are described as guarded external workflows, not automatically executed.
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).