/nvidia-tao-toolkit:tao-train-sparse4dfrom NVIDIA TAO Toolkit
Prepares calibrated multi-camera data and trains, evaluates, runs inference, exports, or quantizes TAO Sparse4D 3D detection and tracking models. Includes 2D-to-3D geometric distillation with released LTT weights.
Ships in NVIDIA TAO Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Standalone install? If the TAO skill bank plugin did not initialize the session, run
tao-setupfor host preflight, credentials, and cross-skill discovery.
Sparse4D predicts 3D boxes and tracking IDs from synchronized, calibrated multi-camera images. Start with the selected model's experiment specification and checkpoint. The canonical TAO documentation covers the model workflow.
references/spec_template_<action>.yaml and the selected release's experiment specification. Resolve paths against actual staged artifacts. Bind results_dir and any action-specific results_dir to the current job output directory; released specifications can contain old output paths. Write nested YAML, not flat dotted keys; do not fabricate train/val/test files or scene suffixes. Check the installed runtime exposes the fields used by the requested workflow.dataset_convert. For a requested TAO release, use the matching skill-bank release branch and its image pins; do not substitute the default branch's release. Follow tao-launch-workflow and the chosen platform's submit / status / logs / cancel contract, retaining its job record and explicit output directory. Existing user authorization applies; request missing launch approval only for work not already authorized.model.backbone.type (resnet_50 or resnet_101). If they conflict with the requested backbone, resolve that mismatch before launch; do not change the architecture to make a checkpoint load partially.resnet_101 is a configuration default, not a recommendation or evidence about the user's checkpoint.train.pretrained_model_path. Continuing a run uses train.resume_training_checkpoint_path and a compatible saved training state. Random initialization with an empty pretrained path is suitable only when explicitly requested, for example a wiring smoke test.Read references/skill_info.yaml before train requests. This model is AutoML-enabled. Preserve an explicit automl_policy: on / off; requests for plain training, no HPO, a fixed-specification reproduction, a bounded wiring smoke test, or an exact continuation mean off for that run. Otherwise default to on and route through tao-skill-bank:tao-run-automl when both schemas/train.schema.json and references/spec_template_train.yaml are available. Preserve dataset, checkpoint, specification, GPU/platform, and budget overrides. If the schema/template is missing, report that AutoML is unavailable and use direct training within the user's request.
Sparse4D's default IoU3D evaluation reports img_bbox_IoU3D/mAP; center_distance reports img_bbox_NuScenes/mAP. Verify the AutoML monitoring metric resolves to the selected protocol in the installed runtime; do not assume these metric names are aliases or compare results across protocols. A promoted resume job may carry the source rung's metric without a new evaluation: report its provenance and verify the resumed checkpoint independently. Follow the AutoML skill's baseline-evaluation requirement. Evaluate, inference, export, and quantize remain in this skill.
Training needs converted OVPKL data, held-out labeled validation data, matching anchors, and the selected pretrained checkpoint or resume state. Preserve the selected backbone and ordered taxonomy. Geometric distillation additionally needs the released LTT checkpoint and prepared supervision caches. Choose the GPU count and training budget from the user's request and available resources.
The model uses OVPKL annotations. The action contract declares staged inputs, commands, outputs, and optional artifacts. Paths embedded in info PKLs, split lists, and lazy indexes must also remain visible inside the selected runtime; staging a split file alone does not stage its referenced data.
| Action | Runtime command | Required data / model artifacts |
|---|---|---|
dataset_convert | annotations convert -e SPEC (Data Services) | Raw scene root, calibration, images; 3D annotations for labeled conversion only |
train | sparse4d train -e SPEC | Training and held-out validation PKLs/splits, image root, matching anchors, selected pretrained or resume checkpoint; optional LTT/cache artifacts for the chosen supervision route |
evaluate | sparse4d evaluate -e SPEC | evaluate.checkpoint, matching anchors, labeled held-out PKLs at dataset.test_dataset.ann_file, image root |
inference | sparse4d inference -e SPEC | inference.checkpoint, matching anchors, input PKLs at dataset.test_dataset.ann_file, image root |
export | sparse4d export -e SPEC | export.checkpoint, matching anchors and architecture, explicit export.onnx_file; no training datasets or external LTT checkpoint |
quantize | sparse4d quantize -e SPEC | quantize.model_path and the selected backend's calibration inputs; check runtime backend support |
The evaluation CLI calls the test dataloader. Setting only dataset.val_dataset.ann_file does not select its evaluation data; that field is used during training validation. Keep the unused dataset sections from the complete specification without inventing or staging unused annotation files.
Resolve model.head.instance_bank.anchor as an explicit model artifact from the selected bundle or a compatible labeled conversion. It is not inferred from a mandatory training dataset for evaluation or export.
Use checkpoint and output resolution for exact artifact handoff. Do not choose the first checkpoint found or rely on a removed SDK job resolver.
For AutoML, construct spec_overrides from concrete staged paths in the table above and skill_info.yaml's data_sources; dotted keys are an AutoML override map, not the container YAML format. Set only the inputs needed by the selected action.
| Scope | Overrides to resolve |
|---|---|
| Training data | dataset.data_root, dataset.train_dataset.ann_file, dataset.val_dataset.ann_file |
| Model initialization | model.backbone.type, model.head.instance_bank.anchor, dataset.classes, and train.pretrained_model_path or train.resume_training_checkpoint_path |
| Training resources | train.num_gpus, train.num_epochs, dataset.batch_size, and dataset.num_workers, preserving the requested budget |
| Geometric distillation | The LTT/cache paths and route fields in the training fragment; preserve their validated class order and supervision policy during HPO |
| Evaluation and inference | dataset.data_root, dataset.test_dataset.ann_file, matching anchors, and the action's checkpoint |
| Output | results_dir and the action-specific output paths bound to the current job |
With dataset.lazy_load: true, stage the split's parent directory as a folder, including <split>_lazy_index.pkl beside the split and _pkl_cam_counts.pkl when used. Point ann_file into that staged directory; do not let file-only staging relocate it away from its index. Keep referenced PKLs and images visible, and rebuild the index after relocation. dataset.pkl_cam_counts_path is an optional camera-count override, not the lazy index.
Generated schemas and templates describe the packaged contract; schemas/manifest.json lists actions. Do not require a TAO Core checkout on the user's machine. Use the runtime's matching release specification for launch: a schema that knows a new field does not make an older image support it.
model.backbone.type: match the selected checkpoint.train.optim.lr, train.optim.lr_scheduler, and train.optim.grad_clip: optimizer settings are nested under optim.dataset.batch_size: per-GPU batch size. dataset.max_cameras can reduce sampled training cameras when supported; validate the resulting supervision coverage.train.precision: bf16, fp16, or fp32, subject to hardware/runtime support. BF16 is not mandatory.train.num_gpus, train.gpu_ids, train.num_nodes: use the selected platform's allocation. One-GPU smoke training is supported; memory needs depend on the backbone, resolution, cameras, batch size, and temporal configuration.dataset.num_frames and dataset.num_bev_groups are scheduling/data-size settings, not an activation-memory sequence-length knob. Inspect actual dataloader length and iteration counts before comparing training budgets across datasets or GPU counts.dataset.eval_dist_fcn defaults to iou_3d; dataset.eval_hota defaults to false. Preserve explicit center_distance, iou_3d, or both overrides. HOTA requires eval_hota: true and tracking in evaluate.metrics. Keep thresholds, class order, dataset, and raw-versus-EMA checkpoint choice identical for comparisons.Lightning manages the local workers. Do not add a second distributed launcher. Use the platform's multi-node environment contract; TAO's WORLD_SIZE launcher variable denotes node count, not the global GPU count. Mixed 3D/2D distributed training additionally needs the synchronized route settings in the geometric-distillation reference.
train does not also create val and test outputs.num_frames as a memory fix.BENCHMARK.md (opens in a new tab)evals/evals.json (opens in a new tab)references/geometric_distillation.md (opens in a new tab)references/geometric_distillation_train.yaml (opens in a new tab)references/local_docker_conversion.md (opens in a new tab)references/skill_info.yaml (opens in a new tab)references/spec_param_inference.md (opens in a new tab)references/spec_template_dataset_convert.yaml (opens in a new tab)references/spec_template_evaluate.yaml (opens in a new tab)references/spec_template_export.yaml (opens in a new tab)references/spec_template_inference.yaml (opens in a new tab)references/spec_template_quantize.yaml (opens in a new tab)references/spec_template_train.yaml (opens in a new tab)schemas/dataset_convert.schema.json (opens in a new tab)schemas/evaluate.schema.json (opens in a new tab)schemas/export.schema.json (opens in a new tab)schemas/inference.schema.json (opens in a new tab)schemas/manifest.json (opens in a new tab)schemas/quantize.schema.json (opens in a new tab)schemas/train.schema.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sparse4d, 3d-detection, multi-camera, tao, geometric-distillation
npx claudepluginhub nvidia-tao/tao-skill-bank --plugin nvidia-tao-toolkit82 skills in this plugin
/paidf-cosmos-predictPrepare and run PAIDF Cosmos Predict video generation for DEFT media samples./tao-analyze-changenet-rcaPerforms deep Root Cause Analysis (RCA) on NVIDIA TAO Visual ChangeNet classification experiments with image-evidence-driven investigation. Use when analyzing ChangeNet model failures, investigating poor recall / FAR / PASS-NO_PASS metrics, auditing visual inspection pipeline quality, or running an RCA report for an AOI defect-detection model. Trigger phrases include "RCA on my ChangeNet model", "why is my AOI model failing", "audit ChangeNet predictions", "investigate FAR regressions", "root cause analysis on visual-changenet"./tao-analyze-detection-kpiRun TAO Data Services KPI analysis for object detection, comparing inference annotations against ground truth to compute per-class TP/FP/FN/TN, precision, recall, accuracy, and AP at a fixed IoU. Use when an object detection workflow needs per-class mAP reported after inference, or when the user asks to "run KPI analyze", "compute detection mAP", or "score my OD predictions against ground truth"./tao-analyze-gaps-od-mapRun TAO Data Services object-detection gap analysis from ground-truth and inference annotations. Use when an object detection workflow needs to identify weak images by comparing model predictions against ground truth using per-class recall, precision, and AP50 thresholds. Use when the user asks to "analyze OD gaps", "find weak OD images", or "run mAP gap analysis"./tao-analyze-gaps-visual-changenetPerforms gap analysis on NVIDIA TAO VCN Classify (Visual Component Net) experiments by invoking the pinned TAO data-services container directly via `docker run … gap_analysis vcn_aoi …` — picks the optimal decision threshold, ranks per-sample weakness, and emits a top-K weakest parquet expanded per-lighting for downstream augmentation. Use when analyzing VCN classification failures, picking SDA augmentation targets, or auditing PASS/NO_PASS boundary cases./tao-analyze-gaps-vlm-bcqExtract false-positive and false-negative gaps from VLM binary-classification-question (BCQ, yes/no) predictions. Use when the user asks to "analyze VLM BCQ gaps", "extract VLM false positives and false negatives", or identify failure cases from a predictions JSON for DEFT root-cause analysis on a binary-classification VLM workflow.Other plugins' skills for the same job