技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
model-training【数据与研究】Guides TransFuser imitation-model training, dataset and configuration validation, backbone and PointPillars selection, single-GPU or torchrun DDP launch, loss interpretation, and checkpoint recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task involves training or resuming a TransFuser-family model, choosing a fusion backbone, validating training data, preparing a single-GPU or DDP command, interpreting losses and logs, or diagnosing a checkpoint.
mmcv-full 1.6.0, mmdet 2.25.0, mmsegmentation 0.25.0, mmcls 0.25.0, torch-scatter 2.1.0, and timm 0.6.7. This combination passed imports and pip check with CUDA visible on an NVIDIA A100 during skill construction.pip check, or CLI parser run as proof that training works. Require torch.cuda.is_available(), a CUDA allocation, and matching compiled extensions.timm for pretrained image weights. Prepare an approved local cache or explicitly authorize network access before constructing a fresh model in a network-restricted environment.train.py flag/default, single-GPU and torchrun recipes, logging, losses, caching, debug behavior, and resume semantics.GlobalConfig, CARLA_Data, LidarCenterNet, all four fusion backbones, tensor contracts, and the PointPillars path.--unsafe-load for a trusted file.torch-scatter components.From any directory, validate the intended run before launching it:
python <this-sub-skill>/scripts/validate_training_setup.py \
--repo-root <transfuser-checkout> \
--dataset-root <dataset-root> \
--setting 02_05_withheld \
--backbone transFuser \
--parallel-training 0
Add --check-runtime only in the environment intended for training. It imports the compatibility stack and repository training modules and requires working CUDA, but it does not instantiate a model or start training.
HybridAgent, handling args.txt at inference time, and CARLA control are owned by sensor-agent.Before launching training, require all of the following:
02_05_withheld, at least one withheld validation route;--parallel_training 0, while DDP runs are launched by torchrun with RANK, LOCAL_RANK, and WORLD_SIZE populated;model_<epoch>.pth and the derived optimizer_<epoch>.pth, a deliberate --start_epoch, and matching architecture/config provenance;<logdir>/<id> and has sufficient storage for checkpoints, TensorBoard events, optional visualizations, and any disk cache.