技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
configuration-and-models【数据与研究】Safely inspect and validate Det3D Python configurations, registries, model-family composition, anchors, tasks, and checkpoint metadata without constructing data pipelines or training jobs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a Researcher must understand, compare, edit, or safely preflight a Det3D configuration or detector checkpoint. It is an inspection and construction guide, not a promise that an old CUDA model can run in a modern environment.
Config.fromfile, Python-config conventions, configuration
overrides, registries/builders, VoxelNet/SECOND/PointPillars composition,
anchors/tasks, box coders, and checkpoint metadata.python scripts/inspect_config.py PATH_TO_CONFIG.--execute-python only when executing the supplied config is
explicitly acceptable; even then it never builds a model or dataset.model.type and follow the family map in
model overview:
PointPillars → PillarFeatureNet → PointPillarsScatter → RPN →
MultiGroupHead.VoxelNet with SpMiddleFHD is the repository's SECOND-style family.VoxelNet with SpMiddleResNetFHD is the CBGS-style example family.tasks and anchor_generators partition classes in the same
order. Check that the box coder's encoded dimension agrees with the head's
regression output.ds_factor, neck strides,
and assigner.out_size_factor must agree. Use the formula in
configuration.build_detector(cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg).
Never call build_dataset as part of configuration inspection.Expected example-style sections are model, train_cfg, test_cfg, data,
tasks, target_assigner, box_coder, voxel/pipeline settings, optimizer,
checkpoint, and runtime settings. A section may be absent in a reduced config,
but a training or evaluation command will later require the sections it
accesses.
Important source behavior:
Config.fromfile supports .py, .yml/.yaml, and .json; Python files are
executed and all non-dunder module names become config entries._base_ inheritance or merge API. Python
variables, imports, and explicit post-load assignments are the available
composition mechanisms. CLI training overrides are limited and should not
be mistaken for a generic config merge.det3d.builder: config uses
matched_threshold/unmatched_threshold, while the generator stores
match/unmatch thresholds.tasks[i]["class_names"] is authoritative for head class counts; preserve
the declared num_class and verify it equals the list length.The public model builders and registry names are summarized in
API reference. A builder requires a mapping with
type; a list is built as an nn.Sequential. Registry imports register classes
as a side effect, so a missing type can mean a missing import as well as a bad
spelling. Never “fix” an unknown type by constructing an arbitrary Python
class from a config value.
Safe inspection should answer:
load_from, or resume_from is intended, and what
metadata is expected?Det3D checkpoints saved by its trainer normally contain meta, state_dict,
and optionally optimizer. Training stores version/config/class metadata;
evaluation restores CLASSES from checkpoint["meta"] when present and falls
back to the dataset classes otherwise. Inspect metadata before loading weights.
Use strict=False only as a deliberate compatibility choice: missing,
unexpected, and shape-mismatched keys still indicate an architecture or class
contract to investigate.
Do not use the bundled inspector as a replacement for tools/train.py,
tools/test.py, or distributed test launchers. Those workflows construct
CUDA-dependent datasets/models and have their own required arguments. See
troubleshooting for common CLI/API misuse and
failure triage.
This sub-skill is distilled from the pinned Det3D source baseline, its PointPillars, SECOND, and CBGS example configs, model/anchor builders, config loader, checkpoint trainer, setup/install documentation, and getting-started workflow. The historical baseline targets Python 3.6, PyTorch 1.1–1.6, CUDA 10.0/10.1, CMake ≥3.13.2, spconv, and nuscenes-devkit. Do not claim modern full parity, CPU-only training, or successful spconv/custom-op execution when those prerequisites are absent.