Generated banner for Tao Train Bevfusion
Generated logo for Tao Train Bevfusion

Tao Train Bevfusion

NVIDIAOfficialCreated by NVIDIA Corporation

  • Skill
  • Tool integration
  • Data and AI
  • Apache-2.0
  • Medium risk

From the author

BEVFusion for multi-sensor 3D object detection. Fuses LiDAR point clouds and camera images in bird's-eye-view (BEV) space, used in autonomous driving for robust 3D perception. Use when training, evaluating, or running inference for a TAO BEVFusion model. Trigger phrases include "train BEVFusion", "LiDAR + camera fusion", "BEV 3D detection", "multi-sensor 3D perception".
— the description by NVIDIA Corporation

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The tao-train-bevfusion skill provides a structured workflow for training, evaluating, and running inference on BEVFusion models. It enables robust 3D perception by fusing LiDAR point clouds and camera images into a bird's-eye-view (BEV) space. This skill is specifically designed for the NVIDIA TAO Toolkit environment, requiring the dedicated BEVFusion-specific container to ensure all dependencies, such as mmdet3d, are correctly handled. It supports AutoML for automated hyperparameter optimization and includes specific procedures for dataset conversion, multi-GPU training, and checkpoint management.

What it does

  • Converts raw datasets into the required BEVFusion format with info pickles.
  • Trains 3D object detection models using fused LiDAR and camera sensor data.
  • Evaluates model performance using AP11 metrics.
  • Runs inference on trained models to detect objects in 3D space.
  • Supports AutoML for automated training optimization.
  • Manages multi-GPU and multi-node distributed training configurations.

When to use it

  • When developing 3D perception systems for autonomous driving applications.
  • When you need to fuse LiDAR and camera data for improved detection accuracy.
  • When training or fine-tuning a BEVFusion model within the TAO Toolkit ecosystem.
  • When you require automated hyperparameter tuning for your 3D detection model.

Advantages

  • Provides robust 3D perception by combining complementary sensor modalities.
  • Automates complex training workflows through integrated AutoML support.
  • Ensures compatibility with specific NVIDIA TAO container environments.
  • Standardizes dataset preparation and evaluation metrics for consistency.

Usage examples

“train BEVFusion with my KITTI dataset”
The agent initiates the training workflow, ensuring the dataset is converted and the model is trained using the specified LiDAR and camera modalities.
“disable AutoML and run a plain training for BEVFusion”
The agent bypasses the AutoML orchestration and proceeds with a direct training job using the provided configuration.
“evaluate my BEVFusion model on the validation set”
The agent runs the evaluation action using the specified checkpoint and dataset configuration to report AP11 metrics.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/nvidia/tao-train-bevfusion/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip tao-train-bevfusion.zip -d .agents/skills

Documentation by NVIDIA Corporation

BEVFusion

Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first (host preflight, credentials, cross-skill discovery).

BEVFusion for multi-sensor 3D object detection. Fuses LiDAR point clouds and camera images in bird's-eye-view (BEV) space. Used in autonomous driving for robust 3D perception.

Set pretrained backbone paths for Swin image backbone.

BEVFusion requires the BEVFusion-specific TAO container nvcr.io/nvidia/tao/tao-toolkit:5.5.0-pyt. <!-- unpinned: BEVFusion-only container --> Shared TAO PyTorch 7.x images do not package mmdet3d and fail before any BEVFusion action can parse its spec. The model-skill action is named dataset_convert, but the 5.5 container CLI subtask is bevfusion convert -e <spec>.

Dataclass Schemas

Generated TAO Core schemas are packaged in schemas/<action>.schema.json, with schemas/manifest.json listing available actions. Each generated schema also emits references/spec_template_<action>.yaml from the schema top-level default field. AutoML enablement is declared at the model layer in references/skill_info.yaml via automl_enabled. Runnable AutoML for an action requires schemas/<action>.schema.json and references/spec_template_<action>.yaml to exist and parse. Use the packaged selected-action schema for automl_default_parameters, automl_disabled_parameters, defaults, min/max bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect ~/tao-core at runtime; maintainers regenerate schemas/templates before packaging the skill bank.

Train Action Policy

This model is AutoML-enabled at the model layer. Before handling any train-stage request, read references/skill_info.yaml and resolve the run override from either an explicit automl_policy value or the user's workflow request. Use automl_policy: on by default and only expose on / off in new launch prompts. Treat phrases like "turn off AutoML", "disable AutoML", "no HPO", or "plain training" as automl_policy: off for this run only. When automl_policy: on, automl_enabled: true, and both schemas/train.schema.json and references/spec_template_train.yaml are packaged, route the train action through tao-skill-bank:tao-run-automl by default with this model's skill_dir. Preserve workflow/application overrides for datasets, specs, output directories, GPU/platform settings, parent checkpoints, and automl_policy. Use direct model training only when automl_policy: off or the packaged train schema/template is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.

Non-train actions such as evaluate, inference, export, and deploy flows stay in this model skill. The per-run automl_policy override does not change model metadata.

Training Requirements

  • Dataset type: bevfusion

  • Formats: default

  • Monitoring metric: AP11

Per-Action Dataset Requirements
ActionSpec KeySourceFilesList?
dataset_convertroot_diridNo
evaluatedataset.test_datasettrain_datasetsann_file: results/{dataset_convert_job_id}/kitti_person_infos_val.pklNo
inferencedataset.root_dirtrain_datasetsNo
inferencedataset.test_datasettrain_datasetsann_file: results/{dataset_convert_job_id}/kitti_person_infos_val.pklNo
traindataset.train_datasettrain_datasetsann_file: results/{dataset_convert_job_id}/kitti_person_infos_train.pklNo
traindataset.val_datasettrain_datasetsann_file: results/{dataset_convert_job_id}/kitti_person_infos_val.pklNo
traindataset.test_datasettrain_datasetsann_file: results/{dataset_convert_job_id}/kitti_person_infos_val.pklNo
Typical Spec Overrides

Data source overrides are mandatory for every action — the agent MUST construct data source paths from the Per-Action Dataset Requirements table above and include them in spec_overrides.

DATA_ROOT = "/path/to/kitti_root"
CONVERTED = DATA_ROOT  # BEVFusion 5.5 writes info pickles into root_dir.
DATA_PREFIX = {"pts": "training/velodyne_reduced", "img": "training/image_2"}

dataset_convert (mandatory data sources):

{
    "root_dir": DATA_ROOT,
    "results_dir": DATA_ROOT,
    "mode": "training",
}

train (mandatory data sources):

{
    "train.num_epochs": 30,
    "train.checkpoint_interval": 10,
    "train.validation_interval": 10,
    "train.num_gpus": 1,
    "dataset.root_dir": DATA_ROOT,
    "dataset.train_dataset": {"ann_file": f"{CONVERTED}/kitti_person_infos_train.pkl", "data_prefix": DATA_PREFIX},
    "dataset.val_dataset": {"ann_file": f"{CONVERTED}/kitti_person_infos_val.pkl", "data_prefix": DATA_PREFIX},
    "dataset.test_dataset": {"ann_file": f"{CONVERTED}/kitti_person_infos_val.pkl", "data_prefix": DATA_PREFIX},
}

evaluate (mandatory data sources):

{
    "dataset.root_dir": DATA_ROOT,
    "dataset.test_dataset": {"ann_file": f"{CONVERTED}/kitti_person_infos_val.pkl", "data_prefix": DATA_PREFIX},
}

inference (mandatory data sources):

{
    "dataset.root_dir": DATA_ROOT,
    "dataset.test_dataset": {"ann_file": f"{CONVERTED}/kitti_person_infos_val.pkl", "data_prefix": DATA_PREFIX},
}

Eval Dataset

Optional. Val dataset split is configured via ann_file in dataset config.

Important Parameters

  • dataset.classes: List of detection classes. Default ["person"]. Must match the annotation categories.

  • dataset.type: Dataset type. Options: KittiPersonDataset, TAO3DSyntheticDataset, TAO3DDataset.

  • dataset.root_dir: Root directory of the KITTI-style dataset.

  • dataset.box_type_3d: 3D box coordinate frame. Options: lidar, camera. Default lidar.

  • train.optimizer.lr: Learning rate. Default 2e-4 (AdamW). Use AmpOptimWrapper for mixed precision via optimizer.wrapper_type.

  • input_modality: Dict controlling sensor modalities. Keys: use_lidar (True), use_camera (True), use_radar (False), use_map (False).

  • model.img_backbone: Image backbone. Default mmdet.SwinTransformer (Swin-Tiny). embed_dims=96, depths=[2,2,6,2].

  • model.view_transform.type: View transform for BEV projection. Options: DepthLSSTransform, LSSTransform. Default DepthLSSTransform.

  • model.point_cloud_range: Spatial extent of LiDAR. Default [0,-40,-3,70.4,40,1].

  • model.voxel_size: Voxel dimensions. Default [0.05, 0.05, 0.1].

  • dataset.train_dataset.batch_size: Per-GPU batch size. Default 4.

Multi-GPU / Multi-Node

Launch method: torchrun (LIGHTNING_EXCLUDED_NETWORK). The entrypoint runs torchrun --nnodes=N --nproc-per-node=M train.py, NOT plain python.

Spec KeyDescriptionDefault
train.num_gpusNumber of GPUs per node1
train.gpu_idsGPU device indices[0]
train.num_nodesNumber of nodes1
  • CUDA_VISIBLE_DEVICES is explicitly set from TAO_VISIBLE_DEVICES

  • BEVFusion uses mmdet3d-based distributed training, not Lightning DDP

  • NODE_RANK is copied to RANK if RANK is unset

Multi-node env vars (set by orchestrator):

VariablePurpose
WORLD_SIZENumber of nodes
NODE_RANKThis node's rank
MASTER_ADDRRank-0 node IP
MASTER_PORTRank-0 port (default 29500)
NUM_GPU_PER_NODEGPUs per node

Hardware

One GPU is supported for minimal smoke/AutoML validation with a small dataset and batch size. Use 2+ GPUs for ordinary training and 4 GPUs when practical. 24GB+ (A100 recommended) VRAM per GPU. BEVFusion is memory-intensive due to multi-sensor fusion.

Error Patterns

dataset_convert required: Run the model-skill dataset_convert action (bevfusion convert -e <spec> in the BEVFusion 5.5 container) before training to produce kitti_person_infos_train.pkl, kitti_person_infos_val.pkl, and training/velodyne_reduced. For direct local-docker 5.5 runs, set results_dir to the same mounted path as root_dir; the converter writes the info pickles there and later expects them under root_dir while reducing point clouds.

KITTI directory names: The BEVFusion 5.5 converter writes reduced point clouds under training/velodyne_reduced and expects camera images under training/image_2. Do not use the stale training/lidar_reduced or training/images/ defaults when chaining dataset_convert into train/evaluate or inference.

BEVFusion 5.5 config surface: Use the 5.5 dataclass keys in packaged templates. Remove newer top-level/action keys such as model_name, wandb.group, wandb.run_id, train.checkpoint_interval_unit, evaluate.trt_engine, evaluate.batch_size, inference.trt_engine, and inference.batch_size. For train, evaluate, and inference specs, keep the non-running action stubs (train, evaluate, and inference) present with empty checkpoint strings where needed; the 5.5 runners materialize the full experiment config before running the selected action. Use YAML null, not an empty string, for train.pretrained_checkpoint and train.resume_training_checkpoint_path when no checkpoint is intended.

ModuleNotFoundError: No module named 'mmdet3d': Shared TAO PyTorch 7.x images do not include the BEVFusion mmdet3d dependency. Use nvcr.io/nvidia/tao/tao-toolkit:5.5.0-pyt; <!-- unpinned: BEVFusion-only container --> it contains mmdet3d and exposes the BEVFusion convert, train, evaluate, and inference subtasks.

Post-evaluation SIGSEGV in BEVFusion 5.5: Some local-docker runs can write checkpoints or prediction files and still finish with TAO Execution status: FAIL after Signal 11 (SIGSEGV) in cuMemRetainAllocationHandle. Do not mark the action successful from the Docker exit code alone; inspect the TAO log or status.json. On CUDA 12+ hosts, retain the TAO 5.5 dependency stack and apply the BEVFusion rotated-IoU CPU fallback and runner cleanup from tao-pytorch; do not switch the action to a shared 7.x image. The fallback is the default; BEVFUSION_ROTATE_IOU_BACKEND=gpu is an explicit opt-in to the legacy Numba CUDA evaluator. If a checkpoint was produced before this failure, use only the exact intended checkpoint such as epoch_1.pth for downstream diagnostics and do not treat last_checkpoint as a best checkpoint unless the action explicitly requests the latest checkpoint.

Missing modality data: Ensure both camera images and LiDAR point clouds are present if using multi-modal fusion.

Epoch numbering: BEVFusion checkpoint epoch numbers may not follow standard zero-padded format.

Checkpoint handoff: Use the SDK/model checkpoint resolver for parent-model selection. For direct local-docker chaining, inspect the train results and pass the exact intended checkpoint path such as epoch_1.pth; use latest.pth only when the user explicitly asks for latest. Resume/retrain must set train.resume: true and train.resume_training_checkpoint_path to the exact checkpoint being resumed.

Spec Param / Parent Model Inference

Model-specific inference mappings belong in this MD file, not in config.json. Generated runners should read this section and apply the mappings with SDK helpers before create_job(). This mirrors the old microservices infer_params.py flow.

Inference mappings from TAO Core bevfusion.config.json:

ActionSpec FieldInference FunctionMeaning
dataset_convertresults_diroutput_dircurrent job results directory
evaluateencryption_keykeyencryption key
evaluateevaluate.checkpointparent_modelmodel file inferred from the parent job results folder
evaluateresults_diroutput_dircurrent job results directory
inferenceencryption_keykeyencryption key
inferenceinference.checkpointparent_modelmodel file inferred from the parent job results folder
inferenceresults_diroutput_dircurrent job results directory
trainencryption_keykeyencryption key
trainresults_diroutput_dircurrent job results directory
traintrain.pretrained_checkpointptm_if_no_resume_modelPTM when no resume checkpoint exists
traintrain.resume_training_checkpoint_pathresume_modelmodel file inferred from the current job results folder

For parent_model or parent_model_folder, pass the upstream train/export/AutoML child job id as parent_job_id. The SDK lists the parent result folder, filters checkpoint artifacts, and returns the selected model file or folder. Do not add these mappings back to config.json and do not patch generated runner scripts to guess checkpoint paths.

Files

references/spec_template_train.yaml

encryption_key: ''
results_dir: ''
wandb:
  enable: true
  project: TAO Toolkit
  entity: ''
  tags:
  - tao-toolkit
  reinit: false
  sync_tensorboard: false
  save_code: false
  name: TAO Toolkit Training
default_scope: mmdet3d
default_hooks:
  timer:
    type: IterTimerHook
  logger:
    type: LoggerHook
    interval: 1
    log_metric_by_epoch: true
  param_scheduler:
    type: ParamSchedulerHook
  checkpoint:
    type: CheckpointHook
    by_epoch: true
    interval: 1
  sampler_seed:
    type: DistSamplerSeedHook
  visualization:
    type: Det3DVisualizationHook
logger_hook: TAOBEVFusionLoggerHook
input_modality:
  use_lidar: true
  use_camera: true
  use_radar: false
  use_map: false
  use_external: false
model:
  type: BEVFusion
  point_cloud_range:
  - 0
  - -40
  - -3
  - 70.4
  - 40
  - 1
  voxel_size:
  - 0.05
  - 0.05
  - 0.1
  post_center_range:
  - -61.2
  - -61.2
  - -20.0
  - 61.2
  - 61.2
  - 20.0
  grid_size:
  - 1440
  - 1440
  - 41
  data_preprocessor:
    type: Det3DDataPreprocessor
    mean:
    - 123.675
    - 116.28
    - 103.53
    std:
    - 58.395
    - 57.12
    - 57.375
    bgr_to_rgb: false
    pad_size_divisor: 32
    voxelize_cfg:
      max_num_points: 10
      max_voxels:
      - 120000
      - 160000
      voxelize_reduce: true
  img_backbone:
    type: mmdet.SwinTransformer
    embed_dims: 96
    depths:
    - 2
    - 2
    - 6
    - 2
    num_heads:
    - 3
    - 6
    - 12
    - 24
    window_size: 7
    mlp_ratio: 4
    qkv_bias: true
    drop_rate: 0.0
    attn_drop_rate: 0.0
    drop_path_rate: 0.2
    patch_norm: true
    out_indices:
    - 1
    - 2
    - 3
    with_cp: false
    convert_weights: true
    init_cfg: {}
  img_neck:
    type: GeneralizedLSSFPN
    in_channels:
    - 192
    - 384
    - 768
    out_channels: 256
    start_level: 0
    num_outs: 0
    norm_cfg:
      type: BN2d
      requires_grad: true
    act_cfg:
      type: ReLU
      inplace: true
    upsample_cfg:
      mode: bilinear
      align_corners: false
  view_transform:
    type: DepthLSSTransform
    in_channels: 256
    out_channels: 80
    image_size:
    - 256
    - 704
    feature_size:
    - 32
    - 88
    xbound:
    - -54.0
    - 54.0
    - 0.3
    ybound:
    - -54.0
    - 54.0
    - 0.3
    zbound:
    - -10.0
    - 10.0
    - 20.0
    dbound:
    - 1.0
    - 60.0
    - 0.5
    downsample: 2
  pts_backbone:
    type: SECOND
    in_channels: 256
    out_channels:
    - 128
    - 256
    layer_nums:
    - 5
    - 5
    layer_strides:
    - 1
    - 2
    norm_cfg:
      type: BN
      eps: 0.001
      momentum: 0.01
    conv_cfg:
      type: Conv2d
      bias: false
  pts_voxel_encoder:
    type: HardSimpleVFE
    num_features: 4
  pts_middle_encoder:
    type: BEVFusionSparseEncoder
    in_channels: 4
    sparse_shape:
    - 1440
    - 1440
    - 41
    order:
    - conv
    - norm
    - act
    norm_cfg:
      type: BN1d
      eps: 0.001
      momentum: 0.01
    block_type: basicblock
  pts_neck:
    type: SECONDFPN
    in_channels:
    - 128
    - 256
    out_channels:
    - 256
    - 256
    upsample_strides:
    - 1
    - 2
    norm_cfg:
      type: BN
      eps: 0.001
      momentum: 0.01
    upsample_cfg:
      type: deconv
      bias: false
    use_conv_for_no_stride: true
  fusion_layer:
    type: ConvFuser
    in_channels:
    - 80
    - 256
    out_channels: 256
  bbox_head:
    type: BEVFusionHead
    num_proposals: 200
    auxiliary: true
    in_channels: 512
    hidden_channel: 128
    num_classes: 1
    nms_kernel_size: 3
    bn_momentum: 0.1
    num_decoder_layers: 1
    out_size_factor: 8
    bbox_coder:
      type: TAO3DBBoxCoder
      score_threshold: 0.0
      code_size: 12
    decoder_layer:
      type: TransformerDecoderLayer
      self_attn_cfg:
        embed_dims: 128
        num_heads: 8
        dropout: 0.1
      cross_attn_cfg:
        embed_dims: 128
        num_heads: 8
        dropout: 0.1
      ffn_cfg:
        embed_dims: 128
        feedforward_channels: 256
        num_fcs: 2
        ffn_drop: 0.1
        act_cfg:
          type: ReLU
          inplace: true
      norm_cfg:
        type: LN
      pos_encoding_cfg:
        input_channel: 2
        num_pos_feats: 128
    code_weights:
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    - 1.0
    assigner:
      type: HungarianAssigner3D
      iou_calculator:
        type: BboxOverlaps3D
        coordinate: lidar
      cls_cost:
        type: mmdet.FocalLossCost
        gamma: 2.0
        alpha: 0.25
        weight: 0.15
      reg_cost:
        type: BBoxBEVL1Cost
        weight: 0.25
      iou_cost:
        type: IoU3DCost
        weight: 0.25
    common_heads:
      center:
      - 2
      - 2
      height:
      - 1
      - 2
      dim:
      - 3
      - 2
      rot:
      - 6
      - 2
    loss_cls:
      type: mmdet.FocalLoss
      use_sigmoid: true
      gamma: 2.0
      alpha: 0.25
      reduction: mean
      loss_weight: 1.0
    loss_heatmap:
      type: mmdet.GaussianFocalLoss
      reduction: mean
      loss_weight: 1.0
    loss_bbox:
      type: mmdet.L1Loss
      reduction: mean
      loss_weight: 0.25
dataset:
  type: KittiPersonDataset
  root_dir: ''
  classes:
  - person
  box_type_3d: lidar
  gt_box_type: camera
  origin:
  - 0.5
  - 1.0
  - 0.5
  default_cam_key: CAM2
  per_sequence: false
  num_views: 1
  point_cloud_dim: 4
  train_dataset:
    data_prefix: &id001
      pts: training/velodyne_reduced
      img: training/image_2
    sampler: DefaultSampler
    batch_size: 4
    num_workers: 8
    pin_memory: true
  val_dataset:
    data_prefix: *id001
    sampler: DefaultSampler
    batch_size: 4
    num_workers: 8
    pin_memory: true
  test_dataset:
    data_prefix: *id001
    sampler: DefaultSampler
    batch_size: 4
    num_workers: 8
    pin_memory: true
train:
  num_gpus: 1
  gpu_ids:
  - 0
  num_nodes: 1
  seed: 1234
  cudnn:
    benchmark: false
    deterministic: true
  num_epochs: 10
  checkpoint_interval: 1
  validation_interval: 1
  resume_training_checkpoint_path: null
  results_dir: ''
  by_epoch: true
  logging_interval: 1
  resume: false
  pretrained_checkpoint: null
  optimizer:
    type: AdamW
    lr: 0.0002
    weight_decay: 0.01
    betas:
    - 0.9
    - 0.999
    clip_grad:
      max_norm: 35
      norm_type: 2
    wrapper_type: OptimWrapper
  lr_scheduler:
  - type: LinearLR
    start_factor: 0.33333333
    by_epoch: false
    begin: 0
    end: 500
  - type: CosineAnnealingLR
    T_max: 10
    eta_min_ratio: 0.0001
    begin: 0
    end: 10
    by_epoch: true
  - type: CosineAnnealingMomentum
    eta_min: 0.8947
    begin: 0
    end: 2.4
    by_epoch: true
  - type: CosineAnnealingMomentum
    eta_min: 1
    begin: 2.4
    end: 10
    by_epoch: true
evaluate:
  num_gpus: 1
  gpu_ids:
  - 0
  num_nodes: 1
  checkpoint: ''
  results_dir: ''
inference:
  num_gpus: 1
  gpu_ids:
  - 0
  num_nodes: 1
  checkpoint: ''
  results_dir: ''
  conf_threshold: 0.5
  show: false

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Declares allowed tools, Needs Python, Needs Node.js

The author says: Requires docker + nvidia-container-toolkit.

Security

What our scanner noticed· Medium risk

  • Large base64-encoded blobs

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
NVIDIA Corporation
Publisher
NVIDIA (Official)
Source
NVIDIA/skills · skills/tao-train-bevfusion · commit fce3cca
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE-APACHE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by NVIDIA Corporation or NVIDIA.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download tao-train-bevfusion.zip