nvidia/skills · Official

tao-train-fast-foundation-stereo

Real-time stereo depth estimation using FastFoundationStereo (FFS), the distilled bp2 commercial variant of FoundationStereo. Predicts disparity maps from stereo image pairs with ~10× lower latency than full FoundationStereo. Use when training, evaluating, exporting, or running inference for a TAO FastFoundationStereo (FFS) model. Trigger phrases include "train fast stereo", "real-time stereo disparity", "FastFoundationStereo", "distilled stereo depth".

All-time #7565 First seen Jun 8, 2026
8-week activity · all time api

Installation

$ npx skills add nvidia/skills --skill tao-train-fast-foundation-stereo

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from nvidia/skills · top by installs.

npx skills add nvidia/skills

Browse all from nvidia/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 3.2K
License LICENSE-APACHE
Default branch main
Open issues 5
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

Version0.1.0
LicenseApache-2.0
CompatibilityRequires docker + nvidia-container-toolkit.
Allowed toolsRead Bash
More metadata
version
0.1.0
author
NVIDIA Corporation

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 11,859 B
  • docs SUMMARY.md 495 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1,528 installs

SKILL.md

Depth Net Fast Stereo

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).

Real-time stereo depth estimation using FastFoundationStereo (FFS) — the bp2 commercial distilled variant of FoundationStereo. Predicts disparity maps from rectified stereo image pairs with per-layer pruned widths for real-time inference.

The mono / stereo / fast-stereo skills share the unified TAO depthnet CLI; FFS is selected via model.modeltype: FastFoundationStereo. FFS differs from FoundationStereo only in pruned per-layer widths and a serialized forward path; everything else (entrypoint, action verbs, dataset classes, deploy chain) is identical to depth-net-stereo.

For TAO Deploy TensorRT actions (gentrtengine, TensorRT evaluate, TensorRT inference), read references/tao-deploy-fast-foundation-stereo.md first. The deploy spec template lives at references/spectemplatedeploy.yaml.

When to Use

Use this skill to train, evaluate, export, or run inference for a TAO FastFoundationStereo model. Two supported use cases:

FFS raw-deploy and bp2-finetune flows require a pre-trained bp2 commercial checkpoint (modelbestbp2_serialize.pth). The default PyT image does not guarantee that this file is present on disk, so treat the checkpoint path as a required user/registry artifact. If no bp2 checkpoint is available, scratch training is still usable for workflow validation, but the resulting metrics are not representative of the bp2 model.

  1. Raw deploy — use the bp2 ckpt as-is. Skip train; run inference / evaluate / export / gentrtengine directly with the bp2 file as the action's checkpoint.
  2. Finetune on user data — set train.pretrainedmodelpath to the bp2 file, train on user data, then verify + deploy on the resulting ckpt. The full 7-action sequence (train → evaluate pyt → inference pyt → export → gentrtengine → inference deploy → evaluate deploy) is supported.

Train Action Policy

This model is AutoML-enabled at the model layer. Before handling any train-stage request, read references/skillinfo.yaml and resolve the run override from either an explicit automlpolicy value or the user's workflow request. Use automlpolicy: 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 automlpolicy: off for this run only. When automlpolicy: on, automlenabled: true, and both schemas/train.schema.json and references/spectemplatetrain.yaml are packaged, route the train action through tao-skill-bank:tao-run-automl by default with this model's skilldir. Preserve workflow/application overrides for datasets, specs, output directories, GPU/platform settings, parent checkpoints, and automlpolicy. 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.

FFS shares the depthnetstereo schema but its bp2 architecture widths are fixed invariants. For default AutoML, search only train.optim.lr and train.optim.lrdecay unless the user explicitly requests a wider search. Do not include FFS architecture fields such as model.volumedim, model.hiddendims, or other bp2 width settings in the default search space. Non-train actions such as evaluate, inference, export, and deploy flows stay in this model skill. The per-run automlpolicy override does not change model metadata.

Workflow

Prerequisites — data accessibility

Your dataset (left + right images + GT disparity for train / evaluate, left + right only for inference) must be reachable from inside the container:

  • SDK runner: place files at the S3 paths the runner resolves (S3TRAIN / S3EVAL placeholders shown in spec overrides).
  • Direct docker run (e.g. local testing): mount the host dataset root read-only at the same in-container path:
docker run ... -v <host_data_root>:<host_data_root>:ro <container> ...

The same accessibility requirement applies to the <output_dir> written by all actions, and to the bp2 checkpoint path.

Step 1 — Annotation file

Per-line annotation file referenced by datasources[*].datafile. Schema is identical to depth-net-stereo:

Columns Format Use
2 <left> <right> Stereo inference (no GT)
3 <left> <right> <disparity> Stereo with GT
4 <left> <right> <disparity> <occlusion_mask> Stereo with GT and occlusion mask

Generate via depthnet convert if needed; see the depth-net-stereo skill for convertspec.yaml template.

Step 2 — Pair modeltype and datasetname based on your data

Use modeltype: FastFoundationStereo for FFS. The datasetname choice mirrors the stereo skill — pick the dataset-specific class when your layout matches a registered one, otherwise GenericDataset.

Data category model_type dataset_name
Middlebury FastFoundationStereo Middlebury
KITTI FastFoundationStereo Kitti
ETH3D FastFoundationStereo Eth3d
FSD synthetic FastFoundationStereo FSD
IsaacReal synthetic FastFoundationStereo IsaacRealDataset
Crestereo synthetic FastFoundationStereo Crestereo
Other / non-canonical FastFoundationStereo GenericDataset

For inference with 2-column annotations (left + right, no GT), use dataset_name: GenericDataset regardless of layout.

Step 3 — Set the bp2 distilled width overrides

FFS requires 15 model-section width override fields whose values match the bp2 commercial checkpoint exactly. Omitting any field falls back to TAO defaults that do not match the bp2 ckpt and produce shape-mismatch errors at forward time. See references/setup-and-run.md for the full copy-as-is model: block and notes. The spec templates at references/spectemplate*.yaml carry this block as the canonical source.

Step 4 — Write spec yaml from spec overrides

Copy the action block from references/spec-overrides.md. Replace:

  • model.model_type: FastFoundationStereo (already set)
  • dataset.<...>.datasources[*].datasetname from Step 2
  • dataset.<...>.datasources[*].datafile with the path from Step 1
  • For raw deploy use cases (no train): set <action>.checkpoint to the bp2 file path
  • For finetune use cases: set train.pretrainedmodelpath to the bp2 file path

For chained train → next-action checkpoint path resolution and shape-consistency notes, see references/setup-and-run.md. SDK-runner deploys resolve handoff automatically via parentjobid — see references/parent-model-inference.md.

Step 5 — Run

Create writable home/cache directories inside the mounted output path before using --user, then launch docker run ... depth_net <action> -e <spec.yaml>. See references/setup-and-run.md for the full mkdir + docker run command, the --user rationale, and the local bind-mount pycache tip.

Step 6 — Verify

Check container exit code 0 and a populated status.json kpi block. For train inspect per-step trainloss directly (the entrypoint reports Execution status: PASS even when loss is NaN); for evaluate rely on epe / bp1 / bp2 / bp3 / d1 / rmse; for inference check artifacts under resultsdir. The pyt-vs-deploy KPI namespace difference and the expected deploy drift are detailed in references/setup-and-run.md.

7-action deploy flow

train (optional)            → finetuned ckpt
evaluate (pyt)              → PyT eager EPE / bp on val GT
inference (pyt)             → PyT eager disparity samples (visual sanity)
export                      → static fp32 ONNX (recommended at 480×736 or 320×736)
gen_trt_engine             → fp16 TRT engine on static ONNX path
inference (deploy)         → TRT disparity samples
evaluate (deploy)          → TRT EPE / bp drift vs PyT eager fp32

Skip train for raw-bp2 deploy. The remaining 6 actions (or the 4 deploy-only verbs starting from export) cover both use cases.

Training Requirements

  • Valid datasetname values for stereo datasources (case-insensitive): FSD, IsaacRealDataset, Crestereo, Middlebury, Eth3d, Kitti, GenericDataset
  • Monitoring metric: val/loss

Per-Action Dataset Requirements

Action Spec Key Source Files List?
evaluate dataset.testdataset.datasources eval_dataset datafile: annotations.txt + datasetname Yes
inference dataset.inferdataset.datasources inference_dataset datafile: annotations.txt + datasetname Yes
train dataset.traindataset.datasources train_datasets datafile: annotations.txt + datasetname Yes
train dataset.valdataset.datasources eval_dataset datafile: annotations.txt + datasetname Yes

Typical Spec Overrides

Data source overrides are mandatory for every action. Each datasources entry is a dict with two mandatory fields: datafile and datasetname. The model.* width fields are also mandatory — see Step 3. See references/spec-overrides.md for the FFSMODEL_BLOCK and per-action (train / evaluate / inference / export) Python override dicts.

Eval Dataset

Optional. Val dataset configured via dataset.valdataset.datasources (each entry needs datafile and datasetname).

Important Parameters

Key knobs include model.modeltype (FastFoundationStereo), model.encoder (vitl), model.maxdisparity (set 192 explicitly — schema default 416 causes severe drift), model.mixedprecision (false), model.gwcfeaturenormalize (true), model.volumedim (28), model.validiters (8), and per-split batchsize / workers / cropsize / datasources. Full parameter reference, evaluation metrics, multi-GPU / multi-node spec keys, export / TRT defaults, the export use-case matrix, and hardware guidance are in references/important-parameters.md.

Error Patterns

For shape mismatch, gwcfeaturenormalize schema errors, maxdisparity drift, negative disparity, depthnetstereo: not found, the pyt-evaluate cropsize asymmetry, the Failed to import SAM3 warning, and the dynamic-engine stride-incompatible silent failure, see references/error-patterns.md.

Spec Param / Parent Model Inference

Model-specific inference mappings (per-action spec field → inference function) for train / evaluate / inference / export / gentrtengine, plus parentjobid / parentmodel resolution and raw-bp2 explicit-checkpoint handling, are in references/parent-model-inference.md. Generated runners should read that section and apply the mappings with SDK helpers before createjob().

Deployment

  • [tao-deploy-fast-foundation-stereo](references/tao-deploy-fast-foundation-stereo.md)