data-preparation
Prepare and validate KITTI or NuScenes data layouts, generated infos, reduced point clouds, ground-truth databases, dataset classes, and preprocessing configuration for the legacy SECOND data API.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-preparation
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Prepare and validate KITTI or NuScenes data layouts, generated infos, reduced point clouds, ground-truth databases, dataset classes, and preprocessing configuration for the legacy SECOND data API.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-reference.md7.9 KB
- 参考文档references/data-formats.md6.9 KB
- 参考文档references/troubleshooting.md9.0 KB
- 参考文档references/workflows.md7.8 KB
- 脚本scripts/validate_dataset_layout.py12.1 KB
03 SKILL.md 正文
Data preparation
Use this sub-skill when the task is to validate a KITTI/NuScenes root, plan info or ground-truth-database generation, select a dataset class, adapt a custom lidar dataset, or tune voxel/preprocess/database-sampling fields. It provides static and CPU-safe guidance only. It does not claim that detector training, evaluation, or the legacy runtime has been executed successfully.
Route first
- Read data-formats.md for directory, info-pickle, point, annotation, box, and coordinate contracts.
- Read workflows.md for the ordered KITTI/NuScenes preparation plans, commands, generated artifact names, and custom-dataset route.
- Read api-reference.md for source-authoritative signatures, registry names, protobuf fields, and preprocessing semantics.
- Read troubleshooting.md before changing an install, path, config, or generated artifact.
- Run the bundled non-mutating checker before any command that writes data:
python <skill-root>/scripts/validate_dataset_layout.py --help
python <skill-root>/scripts/validate_dataset_layout.py kitti --root <KITTI_ROOT>
python <skill-root>/scripts/validate_dataset_layout.py nuscenes --root <NUSC_ROOT> --version v1.0-trainval --max-sweeps 10
The helper never downloads, creates, deletes, rewrites, or unpickles dataset
files. It exits nonzero and prints stable ERROR: lines for an invalid layout.
An empty velodyne_reduced/ directory is valid; its files are expected only
after reduced-cloud preparation.
Decision checklist
- Identify the dataset (
kittiornuscenes), root, split/version, desired info file, dataset class, point-feature width, and whether velocity boxes are intended. - Validate the directory and file-stem relationships. Do not infer a full dataset from a directory existing alone; source generation reads actual images, calibration, lidar, labels, or NuScenes metadata.
- Choose the class and config as a pair. KITTI uses
KittiDataset; NuScenes usesNuScenesDataset, aD2–D8subsample class, or the matchingVeloclass. The config'skitti_*field names are historical and are used for both datasets. - Generate infos, then reduced KITTI clouds where applicable, then the ground truth database. Record the exact generated filenames and rerun generation after source/config changes that alter their schema.
- Check coordinate conventions, box dimensionality, class spelling, and point feature width before enabling preprocessing or database sampling.
- Keep training/evaluation routing in training-and-inference. Route box transforms, visualization, and evaluation-format questions to geometry-and-evaluation.
Boundaries and historical limits
- The checkout has no setup metadata. Treat package installation/import as an environment concern, not as proof that data or detector execution works.
- The model/data path uses legacy spconv and Numba APIs. Modern spconv 2.x is not proven compatible; do not recommend an unguarded migration as a fix.
- The public project guidance is historical and marks this code as deprecated. Prefer a maintained detector for new production work, but preserve these contracts when a legacy artifact must be prepared.
create_data.pyperforms writes and is described, not bundled here. Use the validator first and make a backup or use a disposable output root. Never claim detector execution was verified from preparation success.
Expected handoff
Report: validator command and result; root/version/class; info and database paths; point/box feature widths; coordinate assumptions; selected preprocess and sampler fields; files generated or still missing; and any blocked optional dependency or legacy-runtime limitation. A static pass is not a training or evaluation pass.
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).