bev-former
Routes BEVFormer camera-only 3D detection workflows, from install/import and config inspection through nuScenes data prep, distributed training and evaluation, and log analysis.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- bev-former
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes BEVFormer camera-only 3D detection workflows, from install/import and config inspection through nuScenes data prep, distributed training and evaluation, and log analysis.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/model-zoo-and-configs.md2.4 KB
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json422 B
- 参考文档references/troubleshooting.md2.5 KB
- 脚本scripts/check_bevformer_environment.py9.2 KB
03 SKILL.md 正文
BEVFormer
Use this skill for the BEVFormer repository when the task mentions BEVFormer, BEVFormerV2, nuScenes camera-only 3D detection, BEV perception, or the projects.mmdet3d_plugin OpenMMLab plugin.
Start here
- Read model zoo and config map when you need a family overview or a config knob refresher.
- Run the bundled environment checker for a quick import/config/CUDA smoke from any working directory.
- Read repository provenance if you need to know whether this skill matches the current checkout before using or refreshing it.
- Read troubleshooting when setup, import, data, checkpoint, or runtime errors appear.
Route map
installation-and-configs
Use this route for:
- legacy OpenMMLab install and import checks
- plugin wiring, config inheritance, and config summaries
- BEVFormer vs BEVFormerV2 architecture questions
- model-family selection and BEV/temporal knob questions
Read sub-skills/installation-and-configs/SKILL.md and run its bundled config inspector when you need a static summary.
dataset-preparation
Use this route for:
- nuScenes raw tree validation
- CAN-bus expansion placement
- temporal
nuscenes_infos_temporal_*.pklgeneration or validation data_root/ann_filelayout questions
Read sub-skills/dataset-preparation/SKILL.md and run its bundled layout checker when you need missing-path diagnostics.
training-and-evaluation
Use this route for:
- distributed training commands
- distributed evaluation commands
- FP16 command composition
- checkpoint, launcher, and work-dir questions
- warnings about
--eval,--format-only, or multi-GPU eval behavior
Read sub-skills/training-and-evaluation/SKILL.md and use the command builders instead of hand-editing shell launchers.
analysis-and-utilities
Use this route for:
- JSON or JSONL log summaries
- routing benchmark or visualization requests
- checkpoint utility caveats
- safe analysis helpers that do not train or mutate checkpoints
Read sub-skills/analysis-and-utilities/SKILL.md and use the bundled log summarizer for small fixtures.
Public prerequisites
- Python 3.8 is the documented baseline.
- The legacy stack documented by the repo uses torch 1.9.1+cu111, mmcv-full 1.4.0, mmdet 2.14.0, mmsegmentation 0.14.1, and mmdet3d 0.17.1.
- BEVFormer data workflows assume nuScenes plus the CAN-bus expansion.
- Training, evaluation, and visualization are checkpoint- and GPU-dependent; use the command builders and references first.
Bundled helpers
scripts/check_bevformer_environment.py— run this first when imports or config parsing look broken.sub-skills/installation-and-configs/scripts/inspect_bevformer_config.py— use for a deeper static config summary.sub-skills/dataset-preparation/scripts/check_bevformer_nuscenes_layout.py— use for missing-data-path diagnostics.sub-skills/training-and-evaluation/scripts/bevformer_train_command.pyandsub-skills/training-and-evaluation/scripts/bevformer_eval_command.py— use for copyable train/eval commands.sub-skills/analysis-and-utilities/scripts/summarize_bevformer_log.py— use for tiny log summaries.
Minimal smoke check
If you have a checkout on disk, pass it explicitly to the helper so the script does not depend on shell activation state:
python scripts/check_bevformer_environment.py --repo-root <checkout-root> --config projects/configs/bevformer/bevformer_tiny.py
For a V2 config, point --config at projects/configs/bevformerv2/bevformerv2-r50-t1-base-24ep.py.
Before refresh
Compare the current checkout against repository provenance before deciding whether to refresh this skill.
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).