AGENT SKILL

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

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

  1. Identify the dataset (kitti or nuscenes), root, split/version, desired info file, dataset class, point-feature width, and whether velocity boxes are intended.
  2. 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.
  3. Choose the class and config as a pair. KITTI uses KittiDataset; NuScenes uses NuScenesDataset, a D2–D8 subsample class, or the matching Velo class. The config's kitti_* field names are historical and are used for both datasets.
  4. 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.
  5. Check coordinate conventions, box dimensionality, class spelling, and point feature width before enabling preprocessing or database sampling.
  6. 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.py performs 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

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351