Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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".
.claude/skills/nvidia-tao-train-fast-foundation-stereo/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 108% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 96% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 97% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 71% | 0% |
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 depth_net CLI; FFS is selected via model.model_type: 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 (gen_trt_engine, TensorRT evaluate, TensorRT inference), read references/tao-deploy-fast-foundation-stereo.md first. The deploy spec template lives at references/spec_template_deploy.yaml.
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 (model_best_bp2_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.
train; run inference / evaluate / export / gen_trt_engine directly with the bp2 file as the action's checkpoint.train.pretrained_model_path 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 → gen_trt_engine → inference deploy → evaluate deploy) is supported.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.
FFS shares the depth_net_stereo schema but its bp2 architecture widths are fixed invariants. For default AutoML, search only train.optim.lr and train.optim.lr_decay unless the user explicitly requests a wider search. Do not include FFS architecture fields such as model.volume_dim, model.hidden_dims, 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 automl_policy override does not change model metadata.
Your dataset (left + right images + GT disparity for train / evaluate, left + right only for inference) must be reachable from inside the container:
S3_TRAIN / S3_EVAL placeholders shown in spec overrides).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.
Per-line annotation file referenced by data_sources[*].data_file. 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 depth_net convert if needed; see the depth-net-stereo skill for convert_spec.yaml template.
model_type and dataset_name based on your dataUse model_type: FastFoundationStereo for FFS. The dataset_name 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.
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/spec_template_*.yaml carry this block as the canonical source.
Copy the action block from references/spec-overrides.md. Replace:
model.model_type: FastFoundationStereo (already set)dataset.<...>.data_sources[*].dataset_name from Step 2dataset.<...>.data_sources[*].data_file with the path from Step 1<action>.checkpoint to the bp2 file pathtrain.pretrained_model_path to the bp2 file pathFor chained train → next-action checkpoint path resolution and shape-consistency notes, see references/setup-and-run.md. SDK-runner deploys resolve handoff automatically via parent_job_id — see references/parent-model-inference.md.
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.
Check container exit code 0 and a populated status.json kpi block. For train inspect per-step train_loss 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 results_dir. The pyt-vs-deploy KPI namespace difference and the expected deploy drift are detailed in references/setup-and-run.md.
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 fp32Skip train for raw-bp2 deploy. The remaining 6 actions (or the 4 deploy-only verbs starting from export) cover both use cases.
dataset_name values for stereo data_sources (case-insensitive): FSD, IsaacRealDataset, Crestereo, Middlebury, Eth3d, Kitti, GenericDataset| Action | Spec Key | Source | Files | List? | |---|---|---|---|---| | evaluate | dataset.test_dataset.data_sources | eval_dataset | data_file: annotations.txt + dataset_name | Yes | | inference | dataset.infer_dataset.data_sources | inference_dataset | data_file: annotations.txt + dataset_name | Yes | | train | dataset.train_dataset.data_sources | train_datasets | data_file: annotations.txt + dataset_name | Yes | | train | dataset.val_dataset.data_sources | eval_dataset | data_file: annotations.txt + dataset_name | Yes |
Data source overrides are mandatory for every action. Each data_sources entry is a dict with two mandatory fields: data_file and dataset_name. The model.* width fields are also mandatory — see Step 3. See references/spec-overrides.md for the FFS_MODEL_BLOCK and per-action (train / evaluate / inference / export) Python override dicts.
Optional. Val dataset configured via dataset.val_dataset.data_sources (each entry needs data_file and dataset_name).
Key knobs include model.model_type (FastFoundationStereo), model.encoder (vitl), model.max_disparity (set 192 explicitly — schema default 416 causes severe drift), model.mixed_precision (false), model.gwc_feature_normalize (true), model.volume_dim (28), model.valid_iters (8), and per-split batch_size / workers / crop_size / data_sources. 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.
For shape mismatch, gwc_feature_normalize schema errors, max_disparity drift, negative disparity, depth_net_stereo: not found, the pyt-evaluate crop_size asymmetry, the Failed to import SAM3 warning, and the dynamic-engine stride-incompatible silent failure, see references/error-patterns.md.
Model-specific inference mappings (per-action spec field → inference function) for train / evaluate / inference / export / gen_trt_engine, plus parent_job_id / parent_model 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 create_job().
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 12,825 | 13,794 | +8% | 1 | 1 | 0% | 2,847 | 5,951 | +109% | 0 | 0 | — |
case-02 | fail→pass | 24,080 | 10,182 | -58% | 1 | 1 | 0% | 2,535 | 5,270 | +108% | 0 | 0 | — |
case-03 | fail→fail | 13,489 | 13,296 | -1% | 1 | 1 | 0% | 3,039 | 5,739 | +89% | 0 | 0 | — |
case-04 | fail→fail | 15,220 | 10,470 | -31% | 1 | 1 | 0% | 3,093 | 5,000 | +62% | 0 | 0 | — |
case-05 | fail→pass | 12,472 | 5,704 | -54% | 1 | 1 | 0% | 2,000 | 3,923 | +96% | 0 | 0 | — |
case-06 | fail→fail | 18,401 | 19,631 | +7% | 1 | 1 | 0% | 4,027 | 7,216 | +79% | 0 | 0 | — |
case-07 | pass→pass | 6,849 | 2,272 | -67% | 1 | 1 | 0% | 1,311 | 3,289 | +151% | 0 | 0 | — |
case-08 | fail→pass | 9,302 | 2,114 | -77% | 1 | 1 | 0% | 1,667 | 3,292 | +97% | 0 | 0 | — |
case-09 | fail→pass | 19,722 | 6,815 | -65% | 1 | 1 | 0% | 2,454 | 4,208 | +71% | 0 | 0 | — |
case-10 | fail→pass | 9,075 | 2,317 | -74% | 1 | 1 | 0% | 1,600 | 3,314 | +107% | 0 | 0 | — |
case-11 | pass→pass | 10,320 | 3,306 | -68% | 1 | 1 | 0% | 1,877 | 3,494 | +86% | 0 | 0 | — |
case-12 | pass→pass | 7,474 | 1,903 | -75% | 1 | 1 | 0% | 1,344 | 3,234 | +141% | 0 | 0 | — |
case-13 | fail→pass | 11,671 | 4,132 | -65% | 1 | 1 | 0% | 2,163 | 3,715 | +72% | 0 | 0 | — |
case-14 | fail→pass | 11,918 | 7,847 | -34% | 1 | 1 | 0% | 2,281 | 4,587 | +101% | 0 | 0 | — |
case-15 | pass→pass | 12,981 | 5,642 | -57% | 1 | 1 | 0% | 2,651 | 4,043 | +53% | 0 | 0 | — |
case-16 | pass→pass | 10,077 | 4,720 | -53% | 1 | 1 | 0% | 2,023 | 3,932 | +94% | 0 | 0 | — |
case-17 | fail→pass | 6,229 | 3,562 | -43% | 1 | 1 | 0% | 1,056 | 3,550 | +236% | 0 | 0 | — |
case-18 | fail→pass | 7,762 | 3,646 | -53% | 1 | 1 | 0% | 1,605 | 3,549 | +121% | 0 | 0 | — |
case-19 | fail→pass | 5,990 | 2,139 | -64% | 1 | 1 | 0% | 1,298 | 3,249 | +150% | 0 | 0 | — |
case-20 | pass→pass | 9,663 | 4,044 | -58% | 1 | 1 | 0% | 1,941 | 3,617 | +86% | 0 | 0 | — |
case-21 | fail→pass | 14,096 | 8,288 | -41% | 1 | 1 | 0% | 2,553 | 4,524 | +77% | 0 | 0 | — |
case-22 | pass→pass | 9,637 | 3,053 | -68% | 1 | 1 | 0% | 1,620 | 3,413 | +111% | 0 | 0 | — |
case-23 | fail→pass | 36,049 | 2,125 | -94% | 1 | 1 | 0% | 3,078 | 3,244 | +5% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted, and 22 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +57 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.