uniad
Operate the UniAD repository for planning-oriented autonomous driving data preparation, configs, training/evaluation, checkpoints, and visualization workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- uniad
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate the UniAD repository for planning-oriented autonomous driving data preparation, configs, training/evaluation, checkpoints, and visualization workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/checkpoints-and-models.md1.8 KB
- 参考文档references/installation.md2.4 KB
- 参考文档references/repo-provenance.md1.9 KB
- 参考文档references/repo-routing-metadata.json516 B
- 参考文档references/troubleshooting.md2.6 KB
- 脚本scripts/check_uniad_environment.py4.2 KB
03 SKILL.md 正文
UniAD repo skill
Use this skill when a task involves the OpenDriveLab UniAD repository, planning-oriented autonomous driving, nuScenes-based BEV perception/prediction/planning workflows, UniAD checkpoints, OpenMMLab configs, projects.mmdet3d_plugin, or UniAD train/eval/visualization scripts.
UniAD is not a normal installed Python distribution in this checkout. It is an OpenMMLab plugin rooted at projects.mmdet3d_plugin, with public workflows driven by config files and launcher scripts.
Quick route map
| User intent | Read |
|---|---|
| Prepare or validate nuScenes, CAN bus, map extensions, info PKLs, or motion anchors | sub-skills/data-preparation/SKILL.md |
| Choose/edit a config, understand stage1 vs stage2, inspect model heads/classes, or debug plugin/model registry issues | sub-skills/config-and-model-architecture/SKILL.md |
| Build train/eval/SLURM commands, place checkpoints, plan GPU usage, resume runs, or reproduce metrics | sub-skills/training-evaluation/SKILL.md |
Inspect results.pkl, render BEV/camera/video outputs, or debug visualization/log artifacts |
sub-skills/visualization-and-results/SKILL.md |
Start here for new environments
Read references/installation.md before giving install advice. The public v2.0 docs specify Python 3.9, Torch 2.0.1+cu118, mmcv-full==1.6.1, mmdet==2.26.0, mmsegmentation==0.29.1, mmdet3d==1.0.0rc6, then requirements.txt.
Minimal plugin check from a UniAD checkout:
PYTHONPATH="$(pwd)":$PYTHONPATH python - <<'PY'
import torch, mmcv, mmdet, mmseg, mmdet3d
print(torch.__version__, torch.version.cuda, torch.cuda.is_available())
print(mmcv.__version__, mmdet.__version__, mmseg.__version__, mmdet3d.__version__)
import projects.mmdet3d_plugin
print('UniAD plugin import ok')
PY
Use scripts/check_uniad_environment.py when you need a structured import/CUDA/config smoke check.
Core workflow order
- Verify the environment and plugin import.
- Use
data-preparationto confirmdata/nuscenes/,data/infos/, and stage-2 motion anchors. - Use
config-and-model-architectureto choose between BEVFormer, stage1 track/map, and stage2 E2E configs. - Use
training-evaluationto render train/eval commands and check checkpoints/GPU expectations. - Use
visualization-and-resultsonly after evaluation has produced a result pickle or show directory.
Repo-level references
references/repo-provenance.md— source commit, branch, evidence paths, and refresh triggers.references/repo-routing-metadata.json— managed repo-skills-router metadata.references/installation.md— public runtime stack, plugin import model, and version caveats.references/checkpoints-and-models.md— stage flow, checkpoint names, and task ownership.references/troubleshooting.md— cross-cutting symptom-to-route triage.
Bundled repo-level script
scripts/check_uniad_environment.py— checks imports, CUDA availability, plugin import, and optionally parses the public configs. Run it from a UniAD checkout or pass--repo-root.
Important constraints
- Do not claim full metric reproduction from import/config checks alone. Full reproduction requires the nuScenes data, CAN bus/map extensions, correct info PKLs, checkpoints, compatible CUDA/OpenMMLab packages, and enough GPUs/VRAM.
- Do not tell future agents to run original repo scripts as the only guidance. Use the bundled command builders and references in this skill to synthesize safe commands.
- The legacy Dockerfile targets older CUDA/Torch/OpenMMLab versions than the v2.0 docs; treat it as historical unless the user asks for legacy setup.
- UniAD training/evaluation is expensive. For exploratory triage, prefer layout validation, config parsing, command rendering, and tiny import/CUDA checks before launching jobs.
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).