技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Preprocess nuPlan scenarios into Diffusion Planner .npz records and a JSON filename manifest, and diagnose path, schema, feature-cap, and normalization failures. Use for nuPlan preprocessing, Diffusion Planner training data, scenario extraction, lane/route/agent feature preparation, or data schema debugging.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the Researcher needs to turn nuPlan scenarios into the
fixed-size records consumed by Diffusion Planner training. It covers raw
nuPlan data and map prerequisites, scenario filtering, ego/agent/static/map
feature extraction, .npz output, the JSON filename manifest, and
normalization compatibility. It does not cover distributed optimization,
checkpoint loading, closed-loop simulation, or guidance authoring.
--log-names and --manifest-output paths so the manifest is not tied to a
working-directory convention.scripts/validate_preprocessed_data.py against a
manifest, processed directory, and normalization file before launching a
large extraction. It can create and validate a tiny synthetic fixture; it
never imports nuPlan or touches raw data.scripts/run_preprocessing.py with --data-path, --map-path,
--save-path, --log-names, --manifest-output, scenario-limit, shuffle,
and feature-cap arguments. Start with a very small total limit, inspect one
record and its manifest, then scale up. The source shell workflow is
evidence only: it contains unsafe placeholders and an expensive million-
scenario default.See workflow and CLI semantics, data formats and normalization, and troubleshooting. Once a valid dataset exists, hand it to model-training; for downstream runtime use, see closed-loop-planning. The graph entry point is diffusion-planner.
diffusion_planner 1.0.0, nuPlan-devkit 1.2.2, and compatible NumPy,
Shapely, GeoPandas, Rasterio, and PyTorch installations..npz
files.normalization.json.Each successful scenario produces one .npz named from its map name and
scenario token. The generated JSON manifest is an array of those .npz
filenames. A usable output must have no missing manifest entries, no path
traversal or absolute names in the manifest, finite floating-point values, and
consistent fixed shapes. Treat an empty output directory or an empty manifest
as a failed preprocessing run, even if the process exited successfully.
--help, path checks, a tiny scenario limit,
and one-record schema validation have passed..npz means a valid zero-scenario result; inspect
builder/filter logs and the manifest location.