
Tao Train Foundation Stereo
- 1.4k installs
- 2.8k repo stars
- Updated August 4, 2026
- nvidia/skills
tao-train-foundation-stereo is an NVIDIA TAO model skill that trains, evaluates, exports, and runs inference for FoundationStereo depth_net models for developers who need accurate disparity maps from stereo image pairs.
About
tao-train-foundation-stereo is an NVIDIA-verified agent skill (version 0.1.0) for stereo depth estimation with the FoundationStereo architecture inside TAO `depth_net` containers. It supports PyT actions train, evaluate, inference, export, and quantize, with TensorRT deploy flows documented separately. Developers convert left/right/GT annotations via `depth_net convert`, pair `model_type` FoundationStereo with dataset classes (Middlebury, Kitti, Eth3d, FSD, IsaacRealDataset, Crestereo, or GenericDataset), and launch docker runs with writable cache dirs when using `--user`. AutoML is enabled by default (`automl_policy: on`) and routes train to `tao-run-automl` when packaged schemas exist. Fresh-install smoke tests use 128×128 `crop_size` with `max_disparity` 128. Reach for this skill when prompts mention FoundationStereo, stereo disparity estimation, or 3D reconstruction from stereo pairs in TAO.
- Foundation Stereo training
- Stereo depth/disparity outputs
- TAO config templates
- Robotics and AR use cases
- Model export for inference
Tao Train Foundation Stereo by the numbers
- 1,440 all-time installs (skills.sh)
- +24 installs in the week ending Aug 5, 2026 (Skillselion tracking)
- Ranked #207 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/nvidia/skills --skill tao-train-foundation-stereoAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.4k |
|---|---|
| repo stars | ★ 2.8k |
| Last updated | August 4, 2026 |
| Repository | nvidia/skills ↗ |
How do you fine-tune Foundation Stereo depth in TAO?
Fine-tune Foundation Stereo depth models in TAO for robotics, AR, or autonomy features that require accurate disparity and depth maps from stereo camera pairs.
Who is it for?
Computer-vision engineers building robotics, AR, or autonomy depth features who need TAO-managed FoundationStereo train/evaluate/inference pipelines.
Skip if: Developers needing monocular depth-only models or stereo workflows outside the TAO depth_net container interface.
When should I use this skill?
User asks to train FoundationStereo, run stereo disparity estimation, fine-tune depth_net, or export TAO stereo depth models.
What you get
TAO depth_net checkpoints, status.json KPIs, disparity inference artifacts, optional ONNX export, and TensorRT deploy specs.
- Trained depth_net checkpoint
- status.json KPIs
- Deploy spec templates
By the numbers
- Supports 7 stereo dataset_name classes for FoundationStereo
- Packages 5 PyT depth_net actions: train, evaluate, inference, export, quantize
- Smoke tests validated at crop_size 128×128 with max_disparity 128
Files
Depth Net Stereo
Stereo depth estimation using FoundationStereo architecture. Predicts disparity maps from stereo image pairs for 3D reconstruction.
Uses pretrained Depth Anything v2 and EdgeNeXt encoders. Set model.stereo_backbone.depth_anything_v2_pretrained_path and model.stereo_backbone.edgenext_pretrained_path.
The mono and stereo skills both invoke the unified TAO depth_net CLI inside the container; the mono/stereo family is selected via model.model_type (e.g., FoundationStereo).
PyT actions packaged by this model skill: train, evaluate, inference, export, and quantize. The PyT depth_net entrypoint does not accept a gen_trt_engine action in the current TAO image; build TensorRT engines only through the deploy workflow.
For TAO Deploy TensorRT actions (gen_trt_engine, TensorRT evaluate, and TensorRT inference), read references/tao-deploy-foundation-stereo.md first. The deploy spec template lives in this skill's references/spec_template_deploy.yaml.
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.
Workflow
Prerequisites — data accessibility
Your dataset (left + right images + GT disparity) must be reachable from inside the container:
- SDK runner: place files at the S3 paths the runner resolves (the
S3_TRAIN/S3_EVALplaceholders shown in the spec overrides). The runner handles S3 → container-path mounting transparently. - 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.
Step 1 — Annotation file
Per-line annotation file referenced by data_sources[*].data_file:
| 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 |
If you already have one, point to it. Otherwise generate via depth_net convert:
depth_net convert -e <convert_spec.yaml>convert_spec.yaml template (stereo):
results_dir: <directory where generated annotation files are written>
data_root: <directory whose immediate children are scene folders that contain your image+depth files; convert walks data_root recursively but expects per-scene subdirectories at one level below>
image_dir_pattern: [<substring matching left image paths>]
right_dir_pattern: [<substring matching right image paths>]
depth_dir_pattern: [<substring matching GT disparity paths>]
nocc_dir_pattern: [] # optional, occlusion mask paths
image_extension: '.png' # always include the leading dot
depth_extension: '.png' # form must match image_extension (the swap is a substring replace)
nocc_extension: ''
split_ratio: 0.0 # 0.0/1.0 = test-only; 0.8 = 80/20 train+valconvert walks data_root recursively, selects paths whose path-string contains all substrings in image_dir_pattern (AND-filter), then derives right / depth / mask paths by replacing image_dir_pattern[0] with the corresponding pattern's first element plus extension swap. Inspect your dataset's directory layout and identify the substrings distinguishing left, right, and GT (e.g. im0 vs im1 vs disp0GT for Middlebury).
Step 2 — Pair model_type and dataset_name based on your data
Prefer the dataset-specific class when your layout matches a supported one — it applies class-specific path conventions, evaluation crops, and (where applicable) occlusion-mask handling. Fall back to GenericDataset only for layouts that do not match any registered class.
| Data category | model_type | dataset_name |
|---|---|---|
| Middlebury data | FoundationStereo | Middlebury |
| KITTI data | FoundationStereo | Kitti |
| ETH3D data | FoundationStereo | Eth3d |
| FSD synthetic data | FoundationStereo | FSD |
| IsaacReal synthetic data | FoundationStereo | IsaacRealDataset |
| Crestereo synthetic data | FoundationStereo | Crestereo |
| Other / non-canonical layout | FoundationStereo | GenericDataset |
Valid dataset_name values for stereo data_sources (case-insensitive): FSD, IsaacRealDataset, Crestereo, Middlebury, Eth3d, Kitti, GenericDataset.
The same dataset_name value applies across train and evaluate actions (all of which use 3-column or 4-column annotations with GT disparity). The deploy-side evaluate action follows the same rule — see references/tao-deploy-foundation-stereo.md. For inference with 2-column annotations (left + right, no GT), use dataset_name: GenericDataset regardless of data layout — the dataset-specific classes (Middlebury / Kitti / Eth3d / FSD / IsaacRealDataset / Crestereo) require 3-column input and reject 2-column annotations at the dataloader level. For inference with 3-column annotations (left + right + GT), the dataset-specific class is fine.
Step 3 — Write spec yaml from the spec overrides
Copy the action block from references/spec-overrides-foundation-stereo.md. Replace:
model.model_typefrom Step 2 (typicallyFoundationStereo)dataset.<...>.data_sources[*].dataset_namefrom Step 2dataset.<...>.data_sources[*].data_filewith the path from Step 1- For deploy-side
evaluate: enforcedataset.test_dataset.batch_size: 1(seereferences/tao-deploy-foundation-stereo.md).
Shape consistency: the crop_size in dataset.test_dataset.augmentation.crop_size should match export.input_height / input_width so the trained-model evaluator and the deploy-side TensorRT evaluator operate at the same shape. Note that crop_size is decorative on the pyt evaluate path but authoritative on the deploy evaluate side — see references/troubleshooting-foundation-stereo.md and references/tao-deploy-foundation-stereo.md.
Fresh-install smoke runs are validated at crop_size: [128, 128] with dataset.max_disparity: 128 and model.max_disparity: 128. Avoid 112×112 crops and avoid setting max_disparity smaller than the square crop side for smoke tests: those combinations can fail inside FoundationStereo with feature-map or loss-mask shape mismatches before a checkpoint is produced.
Data source overrides are mandatory for every action. Each data_sources entry is a dict with two mandatory fields: data_file and dataset_name. See references/spec-overrides-foundation-stereo.md for the per-action dataset-requirements table, every action's override block, and the quantize known-issue note.
Step 4 — Run
Create writable home/cache directories inside the mounted output path before using --user. Some TAO containers do not have an /etc/passwd entry for the host UID, and PyTorch / matplotlib need writable cache paths when running as that UID.
mkdir -p <output_dir>/home \
<output_dir>/.cache/matplotlib \
<output_dir>/.cache/torchinductor \
<output_dir>/.cache/xdgdocker run --gpus 'device=0' --shm-size 16G --ipc=host \
--user "$(id -u):$(id -g)" \
-e USER="$(id -un)" \
-e LOGNAME="$(id -un)" \
-e HOME=<output_dir>/home \
-e MPLCONFIGDIR=<output_dir>/.cache/matplotlib \
-e TORCHINDUCTOR_CACHE_DIR=<output_dir>/.cache/torchinductor \
-e XDG_CACHE_HOME=<output_dir>/.cache/xdg \
-v <data_root>:<data_root>:ro \
-v <output_dir>:<output_dir> \
<container> \
depth_net <action> -e <spec.yaml>Without --user "$(id -u):$(id -g)" the container writes outputs as nobody:nogroup, blocking host-side cleanup / retry.
Step 5 — Verify
- Container exit code 0
status.jsonkpiblock populated- For
train: inspect per-steptrain_lossdirectly (the entrypoint reportsExecution status: PASSeven when loss is NaN) - For
evaluate: rely onepe/bp1/bp2/bp3/d1/rmse(the evaluator also emitsabs_rel/sq_rel/rmse_logwhich are non-meaningful for stereo — seereferences/parameters-foundation-stereo.md) - For
inference: artifacts underresults_dir
For TAO Deploy TensorRT actions (gen_trt_engine, TensorRT evaluate, and TensorRT inference), read references/tao-deploy-foundation-stereo.md first. Deploy spec templates live in this skill's references/ folder with the spec_template_deploy_*.yaml prefix.
Training Requirements
- Monitoring metric: val/loss
- Eval dataset: optional. Val dataset configured via
dataset.val_dataset.data_sources(each entry needsdata_fileanddataset_name).
See references/spec-overrides-foundation-stereo.md for the per-action dataset-requirements table and every action's mandatory data-source override block.
Parameters, Metrics, Multi-GPU, Export/TRT, Hardware
See references/parameters-foundation-stereo.md for the full Important Parameters list (incl. model.encoder vits override, model.max_disparity default 416, model.volume_dim no-op note, dataset.baseline, dataset.focal_x, train.precision, export.batch_size), the Evaluation Metrics table, Multi-GPU / Multi-Node launch keys, Export / TRT Defaults (opset_version/on_cpu pairing, NGC 576×960 settings), and Hardware requirements.
Error Patterns and Troubleshooting
See references/troubleshooting-foundation-stereo.md for disparity overflow, smoke-test shape mismatch, missing pretrained paths, the encoder / dataset_name struct errors, the depth_net_stereo: not found entrypoint note, the pyt-vs-deploy crop_size discussion, and the deploy evaluate scalar-conversion failure.
Spec Param / Parent Model Inference
See references/checkpoint-inference-mappings-foundation-stereo.md for the checkpoint-resolution rules (model_epoch_<epoch>_step_<step>.pth, dn_model_latest.pth policy), the absence of parent PyT gen_trt_engine, and the full per-action inference-mapping table from depth_net_stereo.config.json (including parent_model / parent_job_id resolution).
Deployment
- tao-deploy-foundation-stereo
Evaluation Report
Evaluation of the tao-train-foundation-stereo skill before publication through NVSkills-Eval.
This benchmark summarizes 3-Tier Evaluation from NVSkills-Eval results for the skill. The goal is to document whether the skill is safe, discoverable, effective, and useful for agents before it is published for broader workflow use.
Evaluation Summary
- Skill:
tao-train-foundation-stereo - Evaluation date: 2026-06-22
- NVSkills-Eval profile:
external - Environment:
astra-sandbox - Dataset: 1 evaluation tasks
- Attempts per task: 1
- Pass threshold: 50%
- Overall verdict: PASS
Agents Used
claude-codecodex
Metrics Used
Reported benchmark dimensions:
- Security: checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access.
- Correctness: checks whether the agent follows the expected workflow and produces the correct final output.
- Discoverability: checks whether the agent loads the skill when relevant and avoids using it when irrelevant.
- Effectiveness: checks whether the agent performs measurably better with the skill than without it.
- Efficiency: checks whether the agent uses fewer tokens and avoids redundant work.
Underlying evaluation signals used in this run:
security(Security): checks for unsafe operations, secret leakage, and unauthorized access.skill_execution(Skill Execution): verifies that the agent loaded the expected skill and workflow.skill_efficiency(Efficiency): checks routing quality, decoy avoidance, and redundant tool usage.accuracy(Accuracy): grades final-answer correctness against the reference answer.goal_accuracy(Goal Accuracy): checks whether the overall user task completed successfully.behavior_check(Behavior Check): verifies expected behavior steps, including safety expectations.token_efficiency(Token Efficiency): compares token usage with and without the skill.
Test Tasks
The benchmark dataset contained 1 evaluation tasks:
- Positive tasks: 1 tasks where the skill was expected to activate.
- Negative tasks: 0 tasks where no skill was expected.
- Unlabeled tasks: 0 tasks where positive/negative intent could not be inferred.
Task composition is derived from the evaluation dataset when possible. Entries with expected_skill set are treated as positive skill-activation cases, while entries with expected_skill: null are treated as negative activation cases.
Results
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 1 | 100% (+0%) | 100% (+0%) |
| Correctness | 1 | 100% (+100%) | 97% (+97%) |
| Discoverability | 1 | 100% (+100%) | 97% (+97%) |
| Effectiveness | 1 | 66% (+56%) | 90% (+72%) |
| Efficiency | 1 | 95% (+67%) | 96% (+68%) |
Score values show skill-assisted performance. Values in parentheses show uplift versus the no-skill baseline when baseline data is available.
Tier 1: Static Validation Summary
Tier 1 validation passed with observations. NVSkills-Eval ran 1 checks and found 5 total findings.
Top findings:
- MEDIUM SCHEMA/folder_hierarchy: Unexpected nesting depth for general skill (
skills/models/tao-train-foundation-stereo) - MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Instructions' (
skills/models/tao-train-foundation-stereo/SKILL.md) - MEDIUM SCHEMA/body_recommended_section: Missing recommended section: '## Examples' (
skills/models/tao-train-foundation-stereo/SKILL.md) - LOW SCHEMA/unexpected_file: Unexpected 'schemas' in skill root (
skills/models/tao-train-foundation-stereo/schemas) - LOW SCHEMA/author_format: Author must be of the form 'Name <email@host>' (
skills/models/tao-train-foundation-stereo/SKILL.md)
Tier 2: Deduplication Summary
This tier was not run or did not produce findings in this report.
Publication Recommendation
The skill is suitable to proceed toward NVSkills-Eval publication based on this benchmark. Skill owners should keep this file with the skill and refresh it when the evaluation dataset, skill behavior, or target agents materially change.
[
{
"id": "tao-train-foundation-stereo-basic",
"question": "A user request: \"Stereo depth estimation using FoundationStereo.\" Identify which TAO skill applies and, reading only that skill's documentation, outline the steps it prescribes. Do NOT run any commands, scripts, web searches, or other tools \u2014 describe the plan only.",
"expected_skill": "tao-train-foundation-stereo",
"expected_script": null,
"ground_truth": "Identify tao-train-foundation-stereo as the applicable skill and summarize its documented workflow from SKILL.md without executing anything.",
"expected_behavior": [
"Identifies tao-train-foundation-stereo as the relevant skill",
"Outlines the documented workflow steps from SKILL.md",
"Does not run commands, scripts, or web searches"
]
}
]
FoundationStereo 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.
DepthNet Stereo training writes checkpoint files under <results_dir>/train/ using model_epoch_<epoch>_step_<step>.pth and a dn_model_latest.pth symlink. For evaluate, inference, export, quantize, and resume/retrain, select checkpoints through the SDK/model resolver so a requested best, epoch, or step checkpoint resolves to that exact file. Use dn_model_latest.pth only when the user explicitly asks for latest.
Parent PyT gen_trt_engine is intentionally absent from the supported action set because the current depth_net entrypoint rejects it. The TensorRT engine mappings are owned by tao-deploy-foundation-stereo.md.
Inference mappings from TAO Core depth_net_stereo.config.json:
| Action | Spec Field | Inference Function | Meaning |
|---|---|---|---|
| evaluate | dataset.dataset_name | StereoDataset | StereoDataset |
| evaluate | evaluate.checkpoint | parent_model | model file inferred from the parent job results folder |
| evaluate | evaluate.trt_engine | parent_model | model file inferred from the parent job results folder |
| evaluate | model.model_type | FoundationStereo | FoundationStereo |
| evaluate | results_dir | output_dir | current job results directory |
| export | dataset.dataset_name | StereoDataset | StereoDataset |
| export | export.checkpoint | parent_model | model file inferred from the parent job results folder |
| export | export.onnx_file | create_onnx_file | output ONNX path |
| export | model.model_type | FoundationStereo | FoundationStereo |
| export | results_dir | output_dir | current job results directory |
| inference | dataset.dataset_name | StereoDataset | StereoDataset |
| inference | inference.checkpoint | parent_model | model file inferred from the parent job results folder |
| inference | inference.trt_engine | parent_model | model file inferred from the parent job results folder |
| inference | model.model_type | FoundationStereo | FoundationStereo |
| inference | results_dir | output_dir | current job results directory |
| quantize | dataset.dataset_name | StereoDataset | StereoDataset |
| quantize | model.model_type | FoundationStereo | FoundationStereo |
| quantize | quantize.model_path | parent_model | model file inferred from the parent job results folder |
| quantize | results_dir | output_dir | current job results directory |
| train | dataset.dataset_name | StereoDataset | StereoDataset |
| train | model.model_type | FoundationStereo | FoundationStereo |
| train | model.stereo_backbone.depth_anything_v2_pretrained_path | {'link': 'https://huggingface.co/depth-anything/Depth-Anything-V2-Small/resolve/main/depth_anything_v2_vits.pth', 'destination_path': '/ptm/depth_net/stereo_backbone/depth_anything_v2_vits.pth'} | {'link': 'https://huggingface.co/depth-anything/Depth-Anything-V2-Small/resolve/main/depth_anything_v2_vits.pth', 'destination_path': '/ptm/depth_net/stereo_backbone/depth_anything_v2_vits.pth'} |
| train | results_dir | output_dir | current job results directory |
| train | train.pretrained_model_path | ptm_if_no_resume_model | PTM when no resume checkpoint exists |
| train | train.resume_training_checkpoint_path | resume_model | model 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.
FoundationStereo Parameters and Defaults
Important Parameters
- model.model_type: Architecture. Default
FoundationStereofor stereo. OnlyFoundationStereois selectable in the current release. - model.encoder: Backbone encoder (top-level
modelfield, not nested understereo_backbone). Options:vits,vitb,vitl,vitg. Schema defaultvitl; FS small NGC ckpt requires `vits` — must override explicitly (silent shape mismatch onpatch_embed/ ViT block keys without it). - model.max_disparity: Maximum disparity range. Default 416, range 1-416.
- model.hidden_dims: Hidden dimensions in GRU refinement. Default
[128, 128, 128]. - model.train_iters: GRU refinement iterations during training. Default 22.
- model.volume_dim: Cost volume dimension. Schema default
32, but theFoundationStereoclass hardcodesvolume_dim = 28at construction (foundation_stereo.py:51) — the schema field is currently a no-op for FS. Override is unnecessary; the model always builds at 28. - model.low_memory: Memory optimization level. Range 0-4. Higher = less memory.
- dataset.dataset_name: Top-level dataset family identifier (e.g.,
StereoDataset). - dataset.baseline: Stereo camera baseline. Default
193.001/1e3meters. - dataset.focal_x: Camera focal length X. Default
1998.842. - dataset.{train,val,test,infer}_dataset.batch_size: Per-split batch size.
- dataset.{train,val,test,infer}_dataset.workers: Per-split DataLoader worker count (the field name is
workers, notnum_workers). - dataset.{train,val,test,infer}_dataset.augmentation.crop_size: Per-split crop size (e.g.,
[320, 736]). Matchexport.input_height/export.input_widthand the deploy-sideevaluatecrop_size for end-to-end shape consistency (seetao-deploy-foundation-stereo.mdfor the deploy-side shape table). - dataset.{train,val,test,infer}_dataset.data_sources: List of
{data_file, dataset_name}dicts. Both fields are mandatory per entry. - train.optim.lr: Learning rate. Default 1e-4 (AdamW).
- train.precision: Training precision. Options: fp32 (recommended), fp16. (bf16 is not supported by the FS trainer.)
- train.distributed_strategy: Distribution strategy. Options: ddp, fsdp.
- export.batch_size: ONNX batch size.
1= static (matches NGC release),-1= batch axis dynamic (height and width are always taken from the trace shape; the DINOv2 + EdgeNeXt backbone constant-folds the patch count, so H/W dynamic is not supported). Default-1.
Evaluation Metrics
StereoDepthEvaluator (nvidia_tao_deploy/cv/depth_net/evaluation/stereo_evaluator.py) emits a fixed metric set; only the disparity-domain metrics are meaningful for stereo:
| Metric | Meaning | Use |
|---|---|---|
epe | mean End-Point-Error in pixels | primary stereo metric |
bp1 / bp2 / bp3 | fraction of pixels with EPE > 1 / 2 / 3 px | quality thresholds |
d1 | KITTI-style outlier rate (EPE > 3 px AND > 5% of GT disparity) | KITTI-comparable headline |
rmse | RMSE on disparity values | sensitivity to large errors |
The same evaluator also emits abs_rel, sq_rel, rmse_log. These are formulated for monocular depth (relative-error normalised by GT depth in metres) and produce numerically large, non-meaningful values when applied to disparity tensors. Ignore them for stereo evaluation; rely on epe / bp* / d1 / rmse.
Multi-GPU / Multi-Node
Launch method: Lightning-managed (single python process, Lightning spawns workers).
| Spec Key | Description | Default |
|---|---|---|
train.num_gpus | Number of GPUs | 1 |
train.gpu_ids | GPU device indices | [0] |
train.num_nodes | Number of nodes | 1 |
train.distributed_strategy | ddp or fsdp | ddp |
Same DDP/FSDP behavior as depth-net-mono. Multi-node requires WORLD_SIZE, NODE_RANK, MASTER_ADDR, MASTER_PORT env vars.
Export / TRT Defaults
- TRT data types: FP32, FP16.
- Static-shape ONNX (
export.batch_size: 1):fp16supported (recommended, best EPE). - Batch-only dynamic ONNX (
export.batch_size: -1):fp16supported. Engine accepts variable batch size; height and width are pinned to the trace shape. - Height and width are always pinned to the trace shape; H/W-dynamic engines are not supported. Build separate engines for different (H, W) targets.
- For the NGC release (576×960), set
export.batch_size: 1,export.opset_version: 17,export.on_cpu: True(CPU export is required at 576×960 to avoid GPU OOM during the trace). - For user-trained fp16 export, pair
opset_versiontoon_cpu:on_cpu: True(CPU trace) accepts either opset 16 or 17 deterministically;on_cpu: False(GPU trace) accepts only opset 16 (opset 17 + on_cpu=False is broken on TRT 10.13 fp16). Aton_cpu=False + opset 16the fp16 build is occasionally non-deterministic — re-run on acostTensor::indexOfMinoroptimizer::reduceassertion. fp32 builds are unaffected. Seetao-deploy-foundation-stereo.mdfor the validation table. export.on_cpuis driven by GPU trace memory:Falsefor ≤320×736 (fits 47 GB VRAM),Truefor ≥480×736 (PyTorch trace OOMs at GPU). Preferon_cpu: Truewhenever feasible — fp16 builds aton_cpu=Trueare empirically deterministic at every tested shape (including NGC release 576×960).- See
tao-deploy-foundation-stereo.mdfor the three supported deploy paths (NGC static / user-trained static / user-trained batch-only-dynamic).
Hardware
Minimum 1 GPU(s), recommended 4 GPU(s). 24GB+ (A100 recommended) VRAM per GPU. Stereo matching is memory intensive due to cost volume. Use model.low_memory > 0 for constrained GPUs. fp32 recommended for training.
name: tao-train-foundation-stereo
network_arch: depth_net_stereo
automl_enabled: true
container_image: tao_toolkit.pyt
data_format: FSD
gpu_spec_key: train.num_gpus
actions:
train:
command: depth_net train -e {config_path}
config_format: yaml
mode: config
inputs:
dataset.train_dataset.data_sources[0].data_file:
type: file
dataset.val_dataset.data_sources[0].data_file:
type: file
model.stereo_backbone.depth_anything_v2_pretrained_path:
type: file
optional: true
model.stereo_backbone.edgenext_pretrained_path:
type: file
optional: true
train.pretrained_model_path:
type: file
optional: true
train.resume_training_checkpoint_path:
type: file
optional: true
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
quantize:
command: depth_net quantize -e {config_path}
config_format: yaml
mode: config
inputs:
quantize.model_path:
type: file
dataset.train_dataset.data_sources[0].data_file:
type: file
dataset.val_dataset.data_sources[0].data_file:
type: file
dataset.quant_calibration_dataset.images_dir:
type: folder
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
evaluate:
command: depth_net evaluate -e {config_path}
config_format: yaml
mode: config
inputs:
dataset.test_dataset.data_sources[0].data_file:
type: file
evaluate.checkpoint:
type: file
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
export:
command: depth_net export -e {config_path}
config_format: yaml
mode: config
inputs:
export.checkpoint:
type: file
outputs:
results_dir:
type: folder
export.onnx_file:
type: file
upload_excludes:
- inputs/
inference:
command: depth_net inference -e {config_path}
config_format: yaml
mode: config
inputs:
dataset.infer_dataset.data_sources[0].data_file:
type: file
inference.checkpoint:
type: file
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
data_sources:
train:
dataset.train_dataset.data_sources[0].data_file:
source: train_datasets
path: annotations.txt
dataset.val_dataset.data_sources[0].data_file:
source: eval_dataset
path: annotations.txt
quantize:
dataset.train_dataset.data_sources[0].data_file:
source: train_datasets
path: annotations.txt
dataset.val_dataset.data_sources[0].data_file:
source: eval_dataset
path: annotations.txt
dataset.quant_calibration_dataset.images_dir:
source: train_datasets
path: left
evaluate:
dataset.test_dataset.data_sources[0].data_file:
source: eval_dataset
path: annotations.txt
inference:
dataset.infer_dataset.data_sources[0].data_file:
source: inference_dataset
path: annotations.txt
spec_params:
train:
dataset.dataset_name: StereoDataset
model.model_type: FoundationStereo
model.stereo_backbone.depth_anything_v2_pretrained_path:
link: https://huggingface.co/depth-anything/Depth-Anything-V2-Small/resolve/main/depth_anything_v2_vits.pth
destination_path: /ptm/depth_net/stereo_backbone/depth_anything_v2_vits.pth
results_dir: output_dir
train.pretrained_model_path: ptm_if_no_resume_model
train.resume_training_checkpoint_path: resume_model
quantize:
dataset.dataset_name: StereoDataset
model.model_type: FoundationStereo
quantize.model_path: parent_model
results_dir: output_dir
evaluate:
dataset.dataset_name: StereoDataset
evaluate.checkpoint: parent_model
model.model_type: FoundationStereo
results_dir: output_dir
export:
dataset.dataset_name: StereoDataset
export.checkpoint: parent_model
export.onnx_file: create_onnx_file
model.model_type: FoundationStereo
results_dir: output_dir
inference:
dataset.dataset_name: StereoDataset
inference.checkpoint: parent_model
model.model_type: FoundationStereo
results_dir: output_dir
key_defaults:
model.model_type: FoundationStereo
model.encoder: vits
model.hidden_dims: [128, 128, 128]
model.corr_radius: 4
model.cv_group: 8
model.train_iters: 22
model.valid_iters: 22
model.volume_dim: 32
model.low_memory: 0
model.mixed_precision: false
model.n_gru_layers: 3
model.corr_levels: 2
model.n_downsample: 2
model.max_disparity: 128
spec_shorthand_keys:
num_epochs: train.num_epochs
train_batch_size: dataset.train_dataset.batch_size
infer_batch_size: dataset.infer_dataset.batch_size
learning_rate: train.optim.lr
resume_checkpoint: train.resume_training_checkpoint_path
train_ptm: train.pretrained_model_path
depth_anything_ptm: model.stereo_backbone.depth_anything_v2_pretrained_path
edgenext_ptm: model.stereo_backbone.edgenext_pretrained_path
spec_templates:
train: ../references/spec_template_train.yaml
quantize: ../references/spec_template_quantize.yaml
evaluate: ../references/spec_template_evaluate.yaml
inference: ../references/spec_template_inference.yaml
export: ../references/spec_template_export.yaml
description: Stereo depth estimation using FoundationStereo architecture. Predicts disparity maps from stereo image pairs
for 3D reconstruction. Mono and stereo share the unified `depth_net` CLI entrypoint;
model family is selected via `model.model_type`.
results_dir: /results
model:
# Required. Must match the trained model variant.
model_type: FoundationStereo
encoder: vits # schema default vitl; FS small NGC ckpt was trained with vits
max_disparity: 128 # fresh-install smoke shape; production specs may override
dataset:
dataset_name: StereoDataset
max_disparity: 128
infer_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: /data/annotations.txt
batch_size: 1
workers: 4
test_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: /data/annotations.txt
batch_size: 1
workers: 4
augmentation:
crop_size: [128, 128]
inference:
trt_engine: /results/depth-net-stereo.engine
input_width: 128
input_height: 128
evaluate:
trt_engine: /results/depth-net-stereo.engine
input_width: 128
input_height: 128
gen_trt_engine:
gpu_id: 0
onnx_file: /models/model.onnx
trt_engine: /results/depth-net-stereo.engine
batch_size: -1
tensorrt:
# Precision: fp32 is the fresh-install safe default; fp16 is supported on
# the static-shape and batch-only-dynamic ONNX paths.
# Engine input H, W are pinned to the trace shape — H/W dynamic is not
# supported.
data_type: fp32
workspace_size: 4 # GiB in the current TAO Deploy image
min_batch_size: 1
opt_batch_size: 1
max_batch_size: 4
verbose: false # Set true only when collecting detailed TensorRT builder diagnostics.
#
# NGC pretrained static-shape ONNX path
# (deployable_foundationstereo_small_576x960_v2.0.onnx):
# onnx_file: <NGC ONNX path>
# batch_size: 1
# tensorrt.data_type: fp16
# inference/evaluate input_height: 576, input_width: 960, crop_size: [576, 960]
#
# User-trained batch-only-dynamic ONNX path (fp16 supported):
# export with batch_size: -1
# onnx_file: <user batch-dynamic ONNX>
# batch_size: -1
# tensorrt.data_type: fp16
# inference/evaluate input_height/width and crop_size: same as export.input_height/width
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 128
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: FoundationStereo
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vits
max_disparity: 128
evaluate:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
checkpoint: ???
trt_engine: ''
results_dir: ''
batch_size: -1
input_width: 736
input_height: 320
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 128
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: FoundationStereo
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vits
max_disparity: 128
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
export:
results_dir: ''
gpu_id: 0
checkpoint: ???
onnx_file: ???
on_cpu: false
input_channel: 3
input_width: 960
input_height: 544
opset_version: 17
batch_size: -1
verbose: false
format: onnx
valid_iters: 22
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 416
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: ''
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 518
- 518
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: ''
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 518
- 518
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: ''
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 518
- 518
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: ''
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 518
- 518
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: MetricDepthAnything
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vitl
max_disparity: 416
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
gen_trt_engine:
results_dir: ''
gpu_id: 0
onnx_file: ???
trt_engine: ???
timing_cache: ''
batch_size: -1
verbose: false
tensorrt:
workspace_size: 1024
min_batch_size: 1
opt_batch_size: 1
max_batch_size: 1
layers_precision: []
data_type: FP32
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 128
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: GenericDataset
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: FoundationStereo
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vits
max_disparity: 128
inference:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
checkpoint: ???
trt_engine: ''
results_dir: ''
batch_size: -1
conf_threshold: 0.5
save_raw_pfm: false
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 128
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: FoundationStereo
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vits
max_disparity: 128
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
model_name: ''
encryption_key: ''
results_dir: ''
wandb:
enable: true
project: TAO Toolkit
entity: ''
group: ''
tags:
- tao-toolkit
reinit: false
sync_tensorboard: false
save_code: false
name: TAO Toolkit Training
run_id: ''
dataset:
dataset_name: StereoDataset
normalize_depth: false
max_disparity: 128
baseline: 0.193001
focal_x: 1998.842
train_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
val_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
test_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
infer_dataset:
data_sources:
- dataset_name: Middlebury
data_file: ''
batch_size: 1
workers: 8
pin_memory: true
augmentation:
input_mean:
- 0.485
- 0.456
- 0.406
input_std:
- 0.229
- 0.224
- 0.225
crop_size:
- 128
- 128
min_scale: -0.2
max_scale: 0.4
do_flip: false
yjitter_prob: 1.0
gamma:
- 1
- 1
- 1
- 1
color_aug_prob: 0.2
color_aug_brightness: 0.4
color_aug_contrast: 0.4
color_aug_saturation:
- 0.0
- 1.4
color_aug_hue_range:
- -0.027777777777777776
- 0.027777777777777776
eraser_aug_prob: 0.5
spatial_aug_prob: 1.0
stretch_prob: 0.8
max_stretch: 0.2
h_flip_prob: 0.5
v_flip_prob: 0.5
hshift_prob: 0.5
crop_min_valid_disp_ratio: 0.0
quant_calibration_dataset:
images_dir: ''
model:
model_type: FoundationStereo
mono_backbone:
pretrained_path: ''
use_bn: false
use_clstoken: false
stereo_backbone:
depth_anything_v2_pretrained_path: ''
edgenext_pretrained_path: ''
use_bn: false
use_clstoken: false
hidden_dims:
- 128
- 128
- 128
corr_radius: 4
cv_group: 8
train_iters: 22
valid_iters: 22
volume_dim: 32
low_memory: 0
mixed_precision: false
n_gru_layers: 3
corr_levels: 2
n_downsample: 2
encoder: vits
max_disparity: 128
train:
num_gpus: 1
gpu_ids:
- 0
num_nodes: 1
seed: 1234
cudnn:
benchmark: false
deterministic: true
num_epochs: 10
checkpoint_interval: 1
checkpoint_interval_unit: epoch
validation_interval: 1
resume_training_checkpoint_path: ''
results_dir: ''
pretrained_model_path: ''
clip_grad_norm: 0.1
dataloader_visualize: false
vis_step_interval: 10
is_dry_run: false
optim:
optimizer: AdamW
monitor_name: val_loss
lr: 0.0001
momentum: 0.9
weight_decay: 0.0001
lr_scheduler: MultiStepLR
lr_steps:
- 1000
lr_step_size: 1000
lr_decay: 0.1
min_lr: 1.0e-07
warmup_steps: 20
precision: fp32
distributed_strategy: ddp
activation_checkpoint: false
inference_tile: false
tile_wtype: gaussian
tile_min_overlap:
- 16
- 16
log_every_n_steps: 500
quantize:
backend: torchao
mode: weight_only_ptq
algorithm: minmax
layers: []
skip_names: []
model_path: ''
results_dir: ''
backend_kwargs: {}
device: cuda
FoundationStereo Spec Overrides
Per-Action Dataset Requirements
| 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 |
| quantize | dataset.train_dataset.data_sources | train_datasets | data_file: annotations.txt + dataset_name | Yes |
| quantize | dataset.val_dataset.data_sources | eval_dataset | data_file: annotations.txt + dataset_name | Yes |
| quantize | dataset.quant_calibration_dataset.images_dir | train_datasets | images.tar.gz | No |
| 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 |
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. Each data_sources entry is a dict with two mandatory fields: data_file and dataset_name.
S3_TRAIN = "aws://bucket/data/train"
S3_EVAL = "aws://bucket/data/eval"train (mandatory data sources):
{
"train.num_epochs": 10,
"train.checkpoint_interval": 10,
"train.validation_interval": 10,
"train.num_gpus": 1,
"model.model_type": "FoundationStereo",
"model.encoder": "vits",
"dataset.train_dataset.batch_size": 1,
"dataset.train_dataset.workers": 4,
"dataset.train_dataset.augmentation.crop_size": [320, 736],
"dataset.train_dataset.data_sources": [
{"data_file": f"{S3_TRAIN}/annotations.txt", "dataset_name": "Middlebury"}
],
"dataset.val_dataset.batch_size": 1,
"dataset.val_dataset.workers": 4,
"dataset.val_dataset.augmentation.crop_size": [320, 736],
"dataset.val_dataset.data_sources": [
{"data_file": f"{S3_EVAL}/annotations.txt", "dataset_name": "Middlebury"}
],
}evaluate (mandatory data sources):
{
"model.model_type": "FoundationStereo",
"model.encoder": "vits",
"dataset.test_dataset.batch_size": 1,
"dataset.test_dataset.workers": 4,
"dataset.test_dataset.augmentation.crop_size": [320, 736],
"dataset.test_dataset.data_sources": [
{"data_file": f"{S3_EVAL}/annotations.txt", "dataset_name": "Middlebury"}
],
"evaluate.checkpoint": "<selected train/AutoML checkpoint>",
}export:
{
"model.model_type": "FoundationStereo",
"model.encoder": "vits",
"export.checkpoint": "<selected train/AutoML checkpoint>",
"export.batch_size": 1,
"export.input_height": 320,
"export.input_width": 736,
}inference (mandatory data sources):
{
"model.model_type": "FoundationStereo",
"model.encoder": "vits",
"dataset.infer_dataset.batch_size": 1,
"dataset.infer_dataset.workers": 4,
"dataset.infer_dataset.data_sources": [
{"data_file": f"{S3_EVAL}/annotations.txt", "dataset_name": "GenericDataset"}
],
"inference.checkpoint": "<selected train/AutoML checkpoint>",
}quantize (mandatory data sources):
{
"model.model_type": "FoundationStereo",
"model.encoder": "vits",
"dataset.train_dataset.data_sources": [
{"data_file": f"{S3_TRAIN}/annotations.txt", "dataset_name": "Middlebury"}
],
"dataset.val_dataset.data_sources": [
{"data_file": f"{S3_EVAL}/annotations.txt", "dataset_name": "Middlebury"}
],
"dataset.quant_calibration_dataset.images_dir": f"{S3_TRAIN}/left",
"quantize.model_path": "<selected train/AutoML checkpoint>",
}Known issue in nvcr.io/nvstaging/tao/tao-toolkit-pyt:7.0.0-rc-226-multiarch: stereo depth_net quantize reaches the checkpoint load path and then fails inside the SDK with StereoDepthNetPlModel missing load_state_dict_from_checkpoint. Keep quantize.model_path wired to the selected checkpoint; do not replace it with a latest-file guess.
DepthNet Stereo Deploy
DepthNet Stereo deploy covers the TAO Deploy actions for an exported FoundationStereo model. Use the depth-net-stereo model skill for training, checkpoint evaluation, quantization, export, or non-TensorRT inference where those actions exist. Use this deploy workflow after export when the input artifact is an ONNX model and the desired output is a TensorRT engine or TensorRT-backed predictions.
Supported actions: gen_trt_engine, evaluate, inference. Direct TAO Deploy command name: depth_net.
Quick Start
Generate TensorRT Engine
docker run --gpus all --rm --shm-size=16g \
-v /path/to/specs:/specs \
-v /path/to/export:/models \
-v /path/to/results:/results \
nvcr.io/nvidia/tao/tao-toolkit:6.26.3-deploy \
depth_net gen_trt_engine -e /specs/gen_trt_engine.yamlEvaluate TensorRT Engine
docker run --gpus all --rm --shm-size=16g \
-v /path/to/specs:/specs \
-v /path/to/eval:/data \
-v /path/to/results:/results \
nvcr.io/nvidia/tao/tao-toolkit:6.26.3-deploy \
depth_net evaluate -e /specs/evaluate.yamlTensorRT Inference
docker run --gpus all --rm --shm-size=16g \
-v /path/to/specs:/specs \
-v /path/to/inference:/data \
-v /path/to/results:/results \
nvcr.io/nvidia/tao/tao-toolkit:6.26.3-deploy \
depth_net inference -e /specs/inference.yamlDeploy action metadata is in tao-deploy-foundation-stereo.skill_info.yaml. Deploy spec template lives in this references folder:
spec_template_deploy.yaml
Deploy Workflow
1. Train and export with the depth-net-stereo skill. 2. Keep the exported ONNX artifact and any sidecar files together in the mounted model directory. 3. Build the TensorRT engine with this workflow. 4. Run TensorRT evaluate or inference from the engine artifact produced by gen_trt_engine.
Direct TAO Launcher spelling is tao deploy depth_net gen_trt_engine, tao deploy depth_net evaluate, tao deploy depth_net inference.
Required Inputs
| Action | Required artifact or data | Spec key |
|---|---|---|
gen_trt_engine | Exported FoundationStereo ONNX model | gen_trt_engine.onnx_file |
evaluate | TensorRT engine | evaluate.trt_engine |
evaluate | Stereo annotation file (3-col with GT, 4-col adds occlusion mask) | dataset.test_dataset.data_sources[0].data_file |
inference | TensorRT engine | inference.trt_engine |
inference | Stereo annotation file (2-col left+right, no GT) | dataset.infer_dataset.data_sources[0].data_file |
gen_trt_engine.trt_engine is a generated output path, not an input artifact. For direct Docker runs, mount input folders at the same paths used in the spec. For chained jobs, map exported ONNX artifacts into gen_trt_engine.onnx_file and map the engine artifact into evaluate.trt_engine or inference.trt_engine.
Spec Template
Stereo deploy supports one model (FoundationStereo). Copy spec_template_deploy.yaml as a starting point and override only paths and environment-specific values (data_file, results_dir, trt_engine paths, batch size as needed).
Adjustments by use case:
- Inference (no GT) — switch
dataset.infer_dataset.data_sources[0].dataset_nametoGenericDataset(the default in the template). Use a 2-column annotation file (left + right). - Evaluate / Inference with GT — pick a dataset-specific class (
Middlebury,Kitti,Eth3d,FSD,IsaacRealDataset,Crestereo) when GT or occlusion-mask handling matches that class's conventions. Use a 3-column annotation (left + right + GT) or 4-column (withnoccmask). - Variable-aspect datasets (Middlebury) — pick a single (H, W) export shape per dataset (multiple of 32, close to the dataset's median aspect) and rebuild the engine for each (H, W) you serve. The engine is fully static on H/W; per-image variable shape is not supported.
- Shape consistency — match
dataset.test_dataset.augmentation.crop_sizetoevaluate.input_height/input_widthand to the export-time ONNX shape (see "Shape consistency" below).
Common:
- The TAO Deploy command is
depth_netfor both mono and stereo DepthNet model skills. - Fresh-install TRT precision:
fp32.fp16is supported on the static-shape and batch-only-dynamic deploy paths, but use FP32 for validation smoke tests unless the user requests FP16. Engine input H/W are pinned to the trace shape on every path. - The current TAO Deploy image interprets
gen_trt_engine.tensorrt.workspace_sizeas GiB. Use4for a 4 GiB workspace; values such as1024request a 1024 GiB workspace and may fail on ordinary systems.
Deploy paths
Three deploy paths are supported. All produce a static-H/W engine; only the batch axis can be marked dynamic.
Path 1 — NGC pretrained static-shape ONNX
Use the NGC release deployable_foundationstereo_small_576x960_v2.0.onnx directly (skip train and export).
gen_trt_engine:
onnx_file: <NGC ONNX path>
trt_engine: <out engine path>
batch_size: 1
tensorrt:
data_type: fp32
workspace_size: 4
evaluate:
trt_engine: <built engine>
input_height: 576
input_width: 960
model:
model_type: FoundationStereo
dataset:
test_dataset:
augmentation:
crop_size: [576, 960]Path 2 — User-trained static-shape ONNX (NGC-compatible)
export:
checkpoint: <user-trained ckpt>
onnx_file: <out.onnx>
input_height: 576
input_width: 960
opset_version: 17 # 17 OK with on_cpu=True (NGC release uses 17); 16 also works
batch_size: 1 # static
on_cpu: True # required at 576×960 to avoid GPU OOM during traceThen use the Path 1 spec yamls for gen_trt_engine, evaluate, inference.
Path 3 — User-trained batch-only-dynamic ONNX
Use this when the engine must accept multiple batch sizes from one build, with input H/W fixed by upstream preprocessing.
export:
batch_size: -1 # batch axis dynamic; H, W are static at the trace shape
input_height: 320
input_width: 736
opset_version: 16 # required when on_cpu=False (opset 17 + on_cpu=False is broken on TRT 10.13 fp16)
on_cpu: False # GPU trace fits ≤320×736; use on_cpu: True for ≥480×736
gen_trt_engine:
onnx_file: <user batch-dynamic ONNX>
trt_engine: <out engine>
batch_size: -1
tensorrt:
data_type: fp32
workspace_size: 4
min_batch_size: 1
opt_batch_size: 1
max_batch_size: 4
evaluate:
trt_engine: <built engine>
input_height: 320 # same as export
input_width: 736
inference:
trt_engine: <built engine>
input_height: 320
input_width: 736Recommended opset_version and on_cpu for FS small fp16 deploy
opset_version must be paired with on_cpu per the validated combinations below:
on_cpu | opset_version for fp16 | Status |
|---|---|---|
| `True` (CPU trace) | 16 or 17 | Deterministic PASS (validated at 480×736 and 576×960) |
| `False` (GPU trace) | 16 only | Mostly works; occasional non-deterministic build failure on TRT 10.13 — re-run on costTensor.cpp::indexOfMin::120 or optimizer.cpp::reduce::1258 assertions |
False + 17 | — | Deterministically broken on TRT 10.13 fp16 — do not use |
on_cpu is driven by export-trace GPU memory:
- ≤320×736:
on_cpu: Falseis feasible (GPU trace fits in 47 GB VRAM). - ≥480×736:
on_cpu: Trueis required (PyTorch GPU trace OOMs on a 47 GB GPU).
Prefer on_cpu: True whenever feasible — at on_cpu=True the fp16 build is empirically deterministic at every tested shape (including the NGC release recipe 576×960+opset 17). fp32 builds are unaffected by these constraints.
Shape consistency: export ↔ evaluate ↔ deploy
The TRT engine is built from an ONNX file that fixes the input height and width at export time (export.input_height, export.input_width). The pyt-side evaluator and the deploy-side TRT evaluator must operate at the same shape to produce comparable disparity values, since disparity is in pixel units and scales with image width.
| Knob | Where | Recommended convention |
|---|---|---|
export.input_height, export.input_width | export action spec | the (height, width) the engine will see at inference time |
dataset.test_dataset.augmentation.crop_size | pyt evaluate spec | match [input_height, input_width] exactly |
dataset.test_dataset.augmentation.crop_size | deploy evaluate spec | match the engine input shape |
Mismatched shapes between pyt and deploy paths produce different disparity values because the cropped/resized image presents a different pixel-disparity distribution to the model. Pick one shape (e.g., [320, 736]) and use it across export, pyt eval, and deploy eval. For datasets whose native aspect differs from the chosen shape, build a separate engine per (H, W) target.
Spec filename invariant
The spec yaml's basename (modulo .yaml) must match the action verb passed on the command line. For example, gen_trt_engine requires the spec at a path ending in gen_trt_engine.yaml; evaluate requires evaluate.yaml. Mismatched filenames produce a non-obvious FileNotFoundError from the hydra config loader before any action work begins.
TRT engine build time
gen_trt_engine for FoundationStereo is dominated by cost-volume convolution kernels and takes several minutes on x86 with a single A100/L40 (≈ 5 min for the FP32 engine at [1, 3, 320, 736]). Plan the deploy chain (gen_trt_engine → inference → evaluate) accordingly; the long build is one-time per (shape, precision) tuple.
Job Chain Mapping
| Action | Spec field | Parent or output |
|---|---|---|
gen_trt_engine | gen_trt_engine.onnx_file | export job ONNX |
gen_trt_engine | gen_trt_engine.trt_engine | new engine output path |
evaluate | evaluate.trt_engine | engine job output |
inference | inference.trt_engine | engine job output |
Outputs
| Action | Output |
|---|---|
gen_trt_engine | TensorRT engine at gen_trt_engine.trt_engine |
evaluate | Stereo metrics under results_dir — primary metrics epe, bp1/bp2/bp3, d1, rmse. The simultaneously-emitted abs_rel, sq_rel, rmse_log are non-meaningful for stereo (formulated for mono metric depth); ignore them |
inference | Disparity outputs under results_dir (PNGs; injective filenames per scene via <scene>_im0.png) |
Common errors
Engine profile mismatch: Runtime batch size for evaluate or inference must fit within the TensorRT min/opt/max batch profile used during gen_trt_engine. Default profile in the spec template is min=1 / opt=1 / max=4.
Aspect-stretched predictions on variable-aspect datasets: forcing the engine input H/W to a single fixed shape distorts samples whose native aspect differs from that shape, degrading disparity quality. Build a separate engine per dataset (H, W) target close to the dataset's median aspect, multiple of 32. Per-image variable shape is not supported on the engine side.
Stereo inference 2-col GenericDataset: 2-column (left + right, no GT) annotation with dataset_name: GenericDataset is the supported inference path. Dataset-specific classes (Middlebury / Kitti / Eth3d / FSD / IsaacRealDataset / Crestereo) require 3-column input.
Deploy evaluate scalar conversion failure: In the current TAO Deploy image, TRT evaluate can complete prediction generation and then fail in stereo_evaluator.py with TypeError: only 0-dimensional arrays can be converted to Python scalars. Treat this as a deploy evaluator issue; the engine and inference handoff may still be valid.
Mounted paths do not exist: TAO Deploy checks local paths inside the container. Make sure every path in the spec has a matching Docker mount or job artifact mapping.
name: depth-net-stereo-deploy
type: model
network_arch: depth_net_stereo
container_image: tao_toolkit.deploy
data_format: FSD
actions:
gen_trt_engine:
command: depth_net gen_trt_engine -e {config_path}
config_format: yaml
mode: config
inputs:
gen_trt_engine.onnx_file:
type: file
outputs:
results_dir:
type: folder
gen_trt_engine.trt_engine:
type: file
upload_excludes:
- inputs/
evaluate:
command: depth_net evaluate -e {config_path}
config_format: yaml
mode: config
inputs:
evaluate.trt_engine:
type: file
dataset.test_dataset.data_sources[0].data_file:
type: file
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
inference:
command: depth_net inference -e {config_path}
config_format: yaml
mode: config
inputs:
inference.trt_engine:
type: file
dataset.infer_dataset.data_sources[0].data_file:
type: file
outputs:
results_dir:
type: folder
upload_excludes:
- inputs/
data_sources:
evaluate:
dataset.test_dataset.data_sources[0].data_file:
source: eval_dataset
path: annotations.txt
inference:
dataset.infer_dataset.data_sources[0].data_file:
source: inference_dataset
path: annotations.txt
spec_params:
gen_trt_engine:
dataset.dataset_name: StereoDataset
results_dir: output_dir
gen_trt_engine.onnx_file: parent_model
gen_trt_engine.trt_engine: create_engine_file
model.model_type: FoundationStereo
evaluate:
dataset.dataset_name: StereoDataset
results_dir: output_dir
evaluate.trt_engine: parent_model
model.model_type: FoundationStereo
inference:
dataset.dataset_name: StereoDataset
results_dir: output_dir
inference.trt_engine: parent_model
model.model_type: FoundationStereo
spec_shorthand_keys:
trt_data_type: gen_trt_engine.tensorrt.data_type
trt_engine: gen_trt_engine.trt_engine
test_batch_size: dataset.test_dataset.batch_size
infer_batch_size: dataset.infer_dataset.batch_size
description: DepthNet Stereo deploy workflow for gen_trt_engine, evaluate, inference
using TAO Deploy.
spec_templates:
gen_trt_engine: spec_template_deploy.yaml
evaluate: spec_template_deploy.yaml
inference: spec_template_deploy.yaml
notes:
- The TAO Deploy command is `depth_net` for both mono and stereo DepthNet model skills.
- 'Keep `dataset.dataset_name: StereoDataset` and use a stereo data source such as
`GenericDataset` (no GT) or a dataset-specific class like `Middlebury` (with GT) in the deploy spec.'
- 'Use `gen_trt_engine.tensorrt.data_type: fp32` for fresh-install smoke tests.
FP16 is supported on the NGC static-shape and user-trained static / batch-only-dynamic
paths. Engine input H/W are pinned to the trace shape on every path. See tao-deploy-foundation-stereo.md.'
- 'The current TAO Deploy image interprets `gen_trt_engine.tensorrt.workspace_size`
as GiB. Use `4` for a 4 GiB workspace; do not use byte or MiB-style values such
as 1024.'
- 'Match `evaluate.input_height/input_width` to the export-time ONNX shape and to
`dataset.test_dataset.augmentation.crop_size` for end-to-end shape consistency.'
FoundationStereo Error Patterns and Troubleshooting
Error Patterns
Disparity overflow: Reduce model.max_disparity if targets exceed range or OOM occurs.
FoundationStereo smoke shape mismatch: For small square smoke tests, use a crop that is compatible with the model's downsample/upsample path (validated: [128, 128]) and keep dataset.max_disparity / model.max_disparity aligned to that square crop side. crop_size: [112, 112] and max_disparity: 64 both failed validation with internal tensor-shape mismatches.
Missing pretrained paths: Both model.stereo_backbone.depth_anything_v2_pretrained_path and model.stereo_backbone.edgenext_pretrained_path should be set for fine-tuning.
`Key 'encoder' not in 'StereoBackBone'`: encoder is a top-level model.encoder field, not under stereo_backbone. See Important Parameters.
`Key 'dataset_name' is not in struct` under data_sources: every data_sources entry must include both data_file and dataset_name.
`bash: exec: depth_net_stereo: not found`: the unified entrypoint is depth_net (no _mono / _stereo suffix). The skill's command already uses the correct form; check any user-supplied wrapper.
Pyt `evaluate` runs at native image resolution (`crop_size` is decorative on the pyt test path): the stereo data module's test transform is built with split='infer' (pl_stereo_data_module.py), which applies only NormalizeImage + PrepareForNet — no Resize/Crop. So dataset.test_dataset.augmentation.crop_size is read but not consumed for the pyt evaluate action; samples are fed at the annotation file's native shape. For variable-aspect datasets like Middlebury, point the test annotation file at a resolution that fits GPU memory (e.g., MiddEval3-data-Q at 718×496 instead of MiddEval3-data-H at 1428×988 for the small variant on 24–48 GB GPUs). This asymmetry is pyt-only — crop_size IS authoritative on the deploy evaluate side (the deploy runtime reads it; see tao-deploy-foundation-stereo.md).
Deploy `evaluate` scalar conversion failure: In the current deploy image, stereo TRT evaluate can finish prediction generation and then fail in stereo_evaluator.py with TypeError: only 0-dimensional arrays can be converted to Python scalars. This is a deploy evaluator issue, not an engine or data-loading failure; document it rather than rerouting through a latest checkpoint or skipping the action.
{
"actions": {
"evaluate": {
"automl_default_parameters": [
"dataset.infer_dataset.augmentation.color_aug_prob",
"dataset.infer_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.infer_dataset.augmentation.eraser_aug_prob",
"dataset.infer_dataset.augmentation.h_flip_prob",
"dataset.infer_dataset.augmentation.hshift_prob",
"dataset.infer_dataset.augmentation.spatial_aug_prob",
"dataset.infer_dataset.augmentation.stretch_prob",
"dataset.infer_dataset.augmentation.v_flip_prob",
"dataset.infer_dataset.augmentation.yjitter_prob",
"dataset.test_dataset.augmentation.color_aug_prob",
"dataset.test_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.test_dataset.augmentation.eraser_aug_prob",
"dataset.test_dataset.augmentation.h_flip_prob",
"dataset.test_dataset.augmentation.hshift_prob",
"dataset.test_dataset.augmentation.spatial_aug_prob",
"dataset.test_dataset.augmentation.stretch_prob",
"dataset.test_dataset.augmentation.v_flip_prob",
"dataset.test_dataset.augmentation.yjitter_prob",
"dataset.train_dataset.augmentation.color_aug_prob",
"dataset.train_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.train_dataset.augmentation.eraser_aug_prob",
"dataset.train_dataset.augmentation.h_flip_prob",
"dataset.train_dataset.augmentation.hshift_prob",
"dataset.train_dataset.augmentation.spatial_aug_prob",
"dataset.train_dataset.augmentation.stretch_prob",
"dataset.train_dataset.augmentation.v_flip_prob",
"dataset.train_dataset.augmentation.yjitter_prob",
"dataset.val_dataset.augmentation.color_aug_prob",
"dataset.val_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.val_dataset.augmentation.eraser_aug_prob",
"dataset.val_dataset.augmentation.h_flip_prob",
"dataset.val_dataset.augmentation.hshift_prob",
"dataset.val_dataset.augmentation.spatial_aug_prob",
"dataset.val_dataset.augmentation.stretch_prob",
"dataset.val_dataset.augmentation.v_flip_prob",
"dataset.val_dataset.augmentation.yjitter_prob",
"model.corr_radius",
"model.cv_group",
"model.volume_dim",
"train.optim.lr",
"train.optim.lr_decay",
"train.optim.lr_step_size",
"train.optim.min_lr",
"train.optim.momentum",
"train.optim.weight_decay"
],
"automl_disabled_parameters": [
"dataset",
"dataset.infer_dataset",
"dataset.infer_dataset.augmentation",
"dataset.infer_dataset.augmentation.color_aug_hue_range",
"dataset.infer_dataset.augmentation.color_aug_saturation",
"dataset.infer_dataset.augmentation.crop_size",
"dataset.infer_dataset.augmentation.gamma",
"dataset.infer_dataset.augmentation.input_mean",
"dataset.infer_dataset.augmentation.input_std",
"dataset.infer_dataset.data_sources",
"dataset.quant_calibration_dataset",
"dataset.test_dataset",
"dataset.test_dataset.augmentation",
"dataset.test_dataset.augmentation.color_aug_hue_range",
"dataset.test_dataset.augmentation.color_aug_saturation",
"dataset.test_dataset.augmentation.crop_size",
"dataset.test_dataset.augmentation.gamma",
"dataset.test_dataset.augmentation.input_mean",
"dataset.test_dataset.augmentation.input_std",
"dataset.test_dataset.data_sources",
"dataset.train_dataset",
"dataset.train_dataset.augmentation",
"dataset.train_dataset.augmentation.color_aug_hue_range",
"dataset.train_dataset.augmentation.color_aug_saturation",
"dataset.train_dataset.augmentation.crop_size",
"dataset.train_dataset.augmentation.gamma",
"dataset.train_dataset.augmentation.input_mean",
"dataset.train_dataset.augmentation.input_std",
"dataset.train_dataset.data_sources",
"dataset.val_dataset",
"dataset.val_dataset.augmentation",
"dataset.val_dataset.augmentation.color_aug_hue_range",
"dataset.val_dataset.augmentation.color_aug_saturation",
"dataset.val_dataset.augmentation.crop_size",
"dataset.val_dataset.augmentation.gamma",
"dataset.val_dataset.augmentation.input_mean",
"dataset.val_dataset.augmentation.input_std",
"dataset.val_dataset.data_sources",
"evaluate",
"evaluate.gpu_ids",
"export",
"gen_trt_engine",
"gen_trt_engine.tensorrt",
"gen_trt_engine.tensorrt.layers_precision",
"inference",
"inference.gpu_ids",
"model",
"model.hidden_dims",
"model.mono_backbone",
"model.stereo_backbone",
"quantize",
"quantize.backend_kwargs",
"quantize.layers",
"quantize.skip_names",
"train",
"train.cudnn",
"train.gpu_ids",
"train.optim",
"train.optim.lr_steps",
"train.tile_min_overlap",
"wandb",
"wandb.tags"
],
"core_module": "depth_net",
"path": "schemas/evaluate.schema.json",
"popular": {
"evaluate": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"gen_trt_engine": {
"batch_size": -1,
"gpu_id": 0,
"tensorrt": {
"max_batch_size": 1,
"min_batch_size": 1,
"opt_batch_size": 1
}
},
"inference": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"train": {
"checkpoint_interval": 1,
"gpu_ids": [
0
],
"num_epochs": 10,
"num_gpus": 1,
"num_nodes": 1,
"validation_interval": 1
}
},
"schema_action": "evaluate",
"spec_template": "references/spec_template_evaluate.yaml"
},
"export": {
"automl_default_parameters": [
"dataset.infer_dataset.augmentation.color_aug_prob",
"dataset.infer_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.infer_dataset.augmentation.eraser_aug_prob",
"dataset.infer_dataset.augmentation.h_flip_prob",
"dataset.infer_dataset.augmentation.hshift_prob",
"dataset.infer_dataset.augmentation.spatial_aug_prob",
"dataset.infer_dataset.augmentation.stretch_prob",
"dataset.infer_dataset.augmentation.v_flip_prob",
"dataset.infer_dataset.augmentation.yjitter_prob",
"dataset.test_dataset.augmentation.color_aug_prob",
"dataset.test_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.test_dataset.augmentation.eraser_aug_prob",
"dataset.test_dataset.augmentation.h_flip_prob",
"dataset.test_dataset.augmentation.hshift_prob",
"dataset.test_dataset.augmentation.spatial_aug_prob",
"dataset.test_dataset.augmentation.stretch_prob",
"dataset.test_dataset.augmentation.v_flip_prob",
"dataset.test_dataset.augmentation.yjitter_prob",
"dataset.train_dataset.augmentation.color_aug_prob",
"dataset.train_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.train_dataset.augmentation.eraser_aug_prob",
"dataset.train_dataset.augmentation.h_flip_prob",
"dataset.train_dataset.augmentation.hshift_prob",
"dataset.train_dataset.augmentation.spatial_aug_prob",
"dataset.train_dataset.augmentation.stretch_prob",
"dataset.train_dataset.augmentation.v_flip_prob",
"dataset.train_dataset.augmentation.yjitter_prob",
"dataset.val_dataset.augmentation.color_aug_prob",
"dataset.val_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.val_dataset.augmentation.eraser_aug_prob",
"dataset.val_dataset.augmentation.h_flip_prob",
"dataset.val_dataset.augmentation.hshift_prob",
"dataset.val_dataset.augmentation.spatial_aug_prob",
"dataset.val_dataset.augmentation.stretch_prob",
"dataset.val_dataset.augmentation.v_flip_prob",
"dataset.val_dataset.augmentation.yjitter_prob",
"model.corr_radius",
"model.cv_group",
"model.volume_dim",
"train.optim.lr",
"train.optim.lr_decay",
"train.optim.lr_step_size",
"train.optim.min_lr",
"train.optim.momentum",
"train.optim.weight_decay"
],
"automl_disabled_parameters": [
"dataset",
"dataset.infer_dataset",
"dataset.infer_dataset.augmentation",
"dataset.infer_dataset.augmentation.color_aug_hue_range",
"dataset.infer_dataset.augmentation.color_aug_saturation",
"dataset.infer_dataset.augmentation.crop_size",
"dataset.infer_dataset.augmentation.gamma",
"dataset.infer_dataset.augmentation.input_mean",
"dataset.infer_dataset.augmentation.input_std",
"dataset.infer_dataset.data_sources",
"dataset.quant_calibration_dataset",
"dataset.test_dataset",
"dataset.test_dataset.augmentation",
"dataset.test_dataset.augmentation.color_aug_hue_range",
"dataset.test_dataset.augmentation.color_aug_saturation",
"dataset.test_dataset.augmentation.crop_size",
"dataset.test_dataset.augmentation.gamma",
"dataset.test_dataset.augmentation.input_mean",
"dataset.test_dataset.augmentation.input_std",
"dataset.test_dataset.data_sources",
"dataset.train_dataset",
"dataset.train_dataset.augmentation",
"dataset.train_dataset.augmentation.color_aug_hue_range",
"dataset.train_dataset.augmentation.color_aug_saturation",
"dataset.train_dataset.augmentation.crop_size",
"dataset.train_dataset.augmentation.gamma",
"dataset.train_dataset.augmentation.input_mean",
"dataset.train_dataset.augmentation.input_std",
"dataset.train_dataset.data_sources",
"dataset.val_dataset",
"dataset.val_dataset.augmentation",
"dataset.val_dataset.augmentation.color_aug_hue_range",
"dataset.val_dataset.augmentation.color_aug_saturation",
"dataset.val_dataset.augmentation.crop_size",
"dataset.val_dataset.augmentation.gamma",
"dataset.val_dataset.augmentation.input_mean",
"dataset.val_dataset.augmentation.input_std",
"dataset.val_dataset.data_sources",
"evaluate",
"evaluate.gpu_ids",
"export",
"gen_trt_engine",
"gen_trt_engine.tensorrt",
"gen_trt_engine.tensorrt.layers_precision",
"inference",
"inference.gpu_ids",
"model",
"model.hidden_dims",
"model.mono_backbone",
"model.stereo_backbone",
"quantize",
"quantize.backend_kwargs",
"quantize.layers",
"quantize.skip_names",
"train",
"train.cudnn",
"train.gpu_ids",
"train.optim",
"train.optim.lr_steps",
"train.tile_min_overlap",
"wandb",
"wandb.tags"
],
"core_module": "depth_net",
"path": "schemas/export.schema.json",
"popular": {
"evaluate": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"gen_trt_engine": {
"batch_size": -1,
"gpu_id": 0,
"tensorrt": {
"max_batch_size": 1,
"min_batch_size": 1,
"opt_batch_size": 1
}
},
"inference": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"train": {
"checkpoint_interval": 1,
"gpu_ids": [
0
],
"num_epochs": 10,
"num_gpus": 1,
"num_nodes": 1,
"validation_interval": 1
}
},
"schema_action": "export",
"spec_template": "references/spec_template_export.yaml"
},
"inference": {
"automl_default_parameters": [
"dataset.infer_dataset.augmentation.color_aug_prob",
"dataset.infer_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.infer_dataset.augmentation.eraser_aug_prob",
"dataset.infer_dataset.augmentation.h_flip_prob",
"dataset.infer_dataset.augmentation.hshift_prob",
"dataset.infer_dataset.augmentation.spatial_aug_prob",
"dataset.infer_dataset.augmentation.stretch_prob",
"dataset.infer_dataset.augmentation.v_flip_prob",
"dataset.infer_dataset.augmentation.yjitter_prob",
"dataset.test_dataset.augmentation.color_aug_prob",
"dataset.test_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.test_dataset.augmentation.eraser_aug_prob",
"dataset.test_dataset.augmentation.h_flip_prob",
"dataset.test_dataset.augmentation.hshift_prob",
"dataset.test_dataset.augmentation.spatial_aug_prob",
"dataset.test_dataset.augmentation.stretch_prob",
"dataset.test_dataset.augmentation.v_flip_prob",
"dataset.test_dataset.augmentation.yjitter_prob",
"dataset.train_dataset.augmentation.color_aug_prob",
"dataset.train_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.train_dataset.augmentation.eraser_aug_prob",
"dataset.train_dataset.augmentation.h_flip_prob",
"dataset.train_dataset.augmentation.hshift_prob",
"dataset.train_dataset.augmentation.spatial_aug_prob",
"dataset.train_dataset.augmentation.stretch_prob",
"dataset.train_dataset.augmentation.v_flip_prob",
"dataset.train_dataset.augmentation.yjitter_prob",
"dataset.val_dataset.augmentation.color_aug_prob",
"dataset.val_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.val_dataset.augmentation.eraser_aug_prob",
"dataset.val_dataset.augmentation.h_flip_prob",
"dataset.val_dataset.augmentation.hshift_prob",
"dataset.val_dataset.augmentation.spatial_aug_prob",
"dataset.val_dataset.augmentation.stretch_prob",
"dataset.val_dataset.augmentation.v_flip_prob",
"dataset.val_dataset.augmentation.yjitter_prob",
"model.corr_radius",
"model.cv_group",
"model.volume_dim",
"train.optim.lr",
"train.optim.lr_decay",
"train.optim.lr_step_size",
"train.optim.min_lr",
"train.optim.momentum",
"train.optim.weight_decay"
],
"automl_disabled_parameters": [
"dataset",
"dataset.infer_dataset",
"dataset.infer_dataset.augmentation",
"dataset.infer_dataset.augmentation.color_aug_hue_range",
"dataset.infer_dataset.augmentation.color_aug_saturation",
"dataset.infer_dataset.augmentation.crop_size",
"dataset.infer_dataset.augmentation.gamma",
"dataset.infer_dataset.augmentation.input_mean",
"dataset.infer_dataset.augmentation.input_std",
"dataset.infer_dataset.data_sources",
"dataset.quant_calibration_dataset",
"dataset.test_dataset",
"dataset.test_dataset.augmentation",
"dataset.test_dataset.augmentation.color_aug_hue_range",
"dataset.test_dataset.augmentation.color_aug_saturation",
"dataset.test_dataset.augmentation.crop_size",
"dataset.test_dataset.augmentation.gamma",
"dataset.test_dataset.augmentation.input_mean",
"dataset.test_dataset.augmentation.input_std",
"dataset.test_dataset.data_sources",
"dataset.train_dataset",
"dataset.train_dataset.augmentation",
"dataset.train_dataset.augmentation.color_aug_hue_range",
"dataset.train_dataset.augmentation.color_aug_saturation",
"dataset.train_dataset.augmentation.crop_size",
"dataset.train_dataset.augmentation.gamma",
"dataset.train_dataset.augmentation.input_mean",
"dataset.train_dataset.augmentation.input_std",
"dataset.train_dataset.data_sources",
"dataset.val_dataset",
"dataset.val_dataset.augmentation",
"dataset.val_dataset.augmentation.color_aug_hue_range",
"dataset.val_dataset.augmentation.color_aug_saturation",
"dataset.val_dataset.augmentation.crop_size",
"dataset.val_dataset.augmentation.gamma",
"dataset.val_dataset.augmentation.input_mean",
"dataset.val_dataset.augmentation.input_std",
"dataset.val_dataset.data_sources",
"evaluate",
"evaluate.gpu_ids",
"export",
"gen_trt_engine",
"gen_trt_engine.tensorrt",
"gen_trt_engine.tensorrt.layers_precision",
"inference",
"inference.gpu_ids",
"model",
"model.hidden_dims",
"model.mono_backbone",
"model.stereo_backbone",
"quantize",
"quantize.backend_kwargs",
"quantize.layers",
"quantize.skip_names",
"train",
"train.cudnn",
"train.gpu_ids",
"train.optim",
"train.optim.lr_steps",
"train.tile_min_overlap",
"wandb",
"wandb.tags"
],
"core_module": "depth_net",
"path": "schemas/inference.schema.json",
"popular": {
"evaluate": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"gen_trt_engine": {
"batch_size": -1,
"gpu_id": 0,
"tensorrt": {
"max_batch_size": 1,
"min_batch_size": 1,
"opt_batch_size": 1
}
},
"inference": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"train": {
"checkpoint_interval": 1,
"gpu_ids": [
0
],
"num_epochs": 10,
"num_gpus": 1,
"num_nodes": 1,
"validation_interval": 1
}
},
"schema_action": "inference",
"spec_template": "references/spec_template_inference.yaml"
},
"quantize": {
"automl_default_parameters": [
"dataset.infer_dataset.augmentation.color_aug_prob",
"dataset.infer_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.infer_dataset.augmentation.eraser_aug_prob",
"dataset.infer_dataset.augmentation.h_flip_prob",
"dataset.infer_dataset.augmentation.hshift_prob",
"dataset.infer_dataset.augmentation.spatial_aug_prob",
"dataset.infer_dataset.augmentation.stretch_prob",
"dataset.infer_dataset.augmentation.v_flip_prob",
"dataset.infer_dataset.augmentation.yjitter_prob",
"dataset.test_dataset.augmentation.color_aug_prob",
"dataset.test_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.test_dataset.augmentation.eraser_aug_prob",
"dataset.test_dataset.augmentation.h_flip_prob",
"dataset.test_dataset.augmentation.hshift_prob",
"dataset.test_dataset.augmentation.spatial_aug_prob",
"dataset.test_dataset.augmentation.stretch_prob",
"dataset.test_dataset.augmentation.v_flip_prob",
"dataset.test_dataset.augmentation.yjitter_prob",
"dataset.train_dataset.augmentation.color_aug_prob",
"dataset.train_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.train_dataset.augmentation.eraser_aug_prob",
"dataset.train_dataset.augmentation.h_flip_prob",
"dataset.train_dataset.augmentation.hshift_prob",
"dataset.train_dataset.augmentation.spatial_aug_prob",
"dataset.train_dataset.augmentation.stretch_prob",
"dataset.train_dataset.augmentation.v_flip_prob",
"dataset.train_dataset.augmentation.yjitter_prob",
"dataset.val_dataset.augmentation.color_aug_prob",
"dataset.val_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.val_dataset.augmentation.eraser_aug_prob",
"dataset.val_dataset.augmentation.h_flip_prob",
"dataset.val_dataset.augmentation.hshift_prob",
"dataset.val_dataset.augmentation.spatial_aug_prob",
"dataset.val_dataset.augmentation.stretch_prob",
"dataset.val_dataset.augmentation.v_flip_prob",
"dataset.val_dataset.augmentation.yjitter_prob",
"model.corr_radius",
"model.cv_group",
"model.volume_dim",
"train.optim.lr",
"train.optim.lr_decay",
"train.optim.lr_step_size",
"train.optim.min_lr",
"train.optim.momentum",
"train.optim.weight_decay"
],
"automl_disabled_parameters": [
"dataset",
"dataset.infer_dataset",
"dataset.infer_dataset.augmentation",
"dataset.infer_dataset.augmentation.color_aug_hue_range",
"dataset.infer_dataset.augmentation.color_aug_saturation",
"dataset.infer_dataset.augmentation.crop_size",
"dataset.infer_dataset.augmentation.gamma",
"dataset.infer_dataset.augmentation.input_mean",
"dataset.infer_dataset.augmentation.input_std",
"dataset.infer_dataset.data_sources",
"dataset.quant_calibration_dataset",
"dataset.test_dataset",
"dataset.test_dataset.augmentation",
"dataset.test_dataset.augmentation.color_aug_hue_range",
"dataset.test_dataset.augmentation.color_aug_saturation",
"dataset.test_dataset.augmentation.crop_size",
"dataset.test_dataset.augmentation.gamma",
"dataset.test_dataset.augmentation.input_mean",
"dataset.test_dataset.augmentation.input_std",
"dataset.test_dataset.data_sources",
"dataset.train_dataset",
"dataset.train_dataset.augmentation",
"dataset.train_dataset.augmentation.color_aug_hue_range",
"dataset.train_dataset.augmentation.color_aug_saturation",
"dataset.train_dataset.augmentation.crop_size",
"dataset.train_dataset.augmentation.gamma",
"dataset.train_dataset.augmentation.input_mean",
"dataset.train_dataset.augmentation.input_std",
"dataset.train_dataset.data_sources",
"dataset.val_dataset",
"dataset.val_dataset.augmentation",
"dataset.val_dataset.augmentation.color_aug_hue_range",
"dataset.val_dataset.augmentation.color_aug_saturation",
"dataset.val_dataset.augmentation.crop_size",
"dataset.val_dataset.augmentation.gamma",
"dataset.val_dataset.augmentation.input_mean",
"dataset.val_dataset.augmentation.input_std",
"dataset.val_dataset.data_sources",
"evaluate",
"evaluate.gpu_ids",
"export",
"gen_trt_engine",
"gen_trt_engine.tensorrt",
"gen_trt_engine.tensorrt.layers_precision",
"inference",
"inference.gpu_ids",
"model",
"model.hidden_dims",
"model.mono_backbone",
"model.stereo_backbone",
"quantize",
"quantize.backend_kwargs",
"quantize.layers",
"quantize.skip_names",
"train",
"train.cudnn",
"train.gpu_ids",
"train.optim",
"train.optim.lr_steps",
"train.tile_min_overlap",
"wandb",
"wandb.tags"
],
"core_module": "depth_net",
"path": "schemas/quantize.schema.json",
"popular": {
"evaluate": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"gen_trt_engine": {
"batch_size": -1,
"gpu_id": 0,
"tensorrt": {
"max_batch_size": 1,
"min_batch_size": 1,
"opt_batch_size": 1
}
},
"inference": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"train": {
"checkpoint_interval": 1,
"gpu_ids": [
0
],
"num_epochs": 10,
"num_gpus": 1,
"num_nodes": 1,
"validation_interval": 1
}
},
"schema_action": "quantize",
"spec_template": "references/spec_template_quantize.yaml"
},
"train": {
"automl_default_parameters": [
"dataset.infer_dataset.augmentation.color_aug_prob",
"dataset.infer_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.infer_dataset.augmentation.eraser_aug_prob",
"dataset.infer_dataset.augmentation.h_flip_prob",
"dataset.infer_dataset.augmentation.hshift_prob",
"dataset.infer_dataset.augmentation.spatial_aug_prob",
"dataset.infer_dataset.augmentation.stretch_prob",
"dataset.infer_dataset.augmentation.v_flip_prob",
"dataset.infer_dataset.augmentation.yjitter_prob",
"dataset.test_dataset.augmentation.color_aug_prob",
"dataset.test_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.test_dataset.augmentation.eraser_aug_prob",
"dataset.test_dataset.augmentation.h_flip_prob",
"dataset.test_dataset.augmentation.hshift_prob",
"dataset.test_dataset.augmentation.spatial_aug_prob",
"dataset.test_dataset.augmentation.stretch_prob",
"dataset.test_dataset.augmentation.v_flip_prob",
"dataset.test_dataset.augmentation.yjitter_prob",
"dataset.train_dataset.augmentation.color_aug_prob",
"dataset.train_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.train_dataset.augmentation.eraser_aug_prob",
"dataset.train_dataset.augmentation.h_flip_prob",
"dataset.train_dataset.augmentation.hshift_prob",
"dataset.train_dataset.augmentation.spatial_aug_prob",
"dataset.train_dataset.augmentation.stretch_prob",
"dataset.train_dataset.augmentation.v_flip_prob",
"dataset.train_dataset.augmentation.yjitter_prob",
"dataset.val_dataset.augmentation.color_aug_prob",
"dataset.val_dataset.augmentation.crop_min_valid_disp_ratio",
"dataset.val_dataset.augmentation.eraser_aug_prob",
"dataset.val_dataset.augmentation.h_flip_prob",
"dataset.val_dataset.augmentation.hshift_prob",
"dataset.val_dataset.augmentation.spatial_aug_prob",
"dataset.val_dataset.augmentation.stretch_prob",
"dataset.val_dataset.augmentation.v_flip_prob",
"dataset.val_dataset.augmentation.yjitter_prob",
"model.corr_radius",
"model.cv_group",
"model.volume_dim",
"train.optim.lr",
"train.optim.lr_decay",
"train.optim.lr_step_size",
"train.optim.min_lr",
"train.optim.momentum",
"train.optim.weight_decay"
],
"automl_disabled_parameters": [
"dataset",
"dataset.infer_dataset",
"dataset.infer_dataset.augmentation",
"dataset.infer_dataset.augmentation.color_aug_hue_range",
"dataset.infer_dataset.augmentation.color_aug_saturation",
"dataset.infer_dataset.augmentation.crop_size",
"dataset.infer_dataset.augmentation.gamma",
"dataset.infer_dataset.augmentation.input_mean",
"dataset.infer_dataset.augmentation.input_std",
"dataset.infer_dataset.data_sources",
"dataset.quant_calibration_dataset",
"dataset.test_dataset",
"dataset.test_dataset.augmentation",
"dataset.test_dataset.augmentation.color_aug_hue_range",
"dataset.test_dataset.augmentation.color_aug_saturation",
"dataset.test_dataset.augmentation.crop_size",
"dataset.test_dataset.augmentation.gamma",
"dataset.test_dataset.augmentation.input_mean",
"dataset.test_dataset.augmentation.input_std",
"dataset.test_dataset.data_sources",
"dataset.train_dataset",
"dataset.train_dataset.augmentation",
"dataset.train_dataset.augmentation.color_aug_hue_range",
"dataset.train_dataset.augmentation.color_aug_saturation",
"dataset.train_dataset.augmentation.crop_size",
"dataset.train_dataset.augmentation.gamma",
"dataset.train_dataset.augmentation.input_mean",
"dataset.train_dataset.augmentation.input_std",
"dataset.train_dataset.data_sources",
"dataset.val_dataset",
"dataset.val_dataset.augmentation",
"dataset.val_dataset.augmentation.color_aug_hue_range",
"dataset.val_dataset.augmentation.color_aug_saturation",
"dataset.val_dataset.augmentation.crop_size",
"dataset.val_dataset.augmentation.gamma",
"dataset.val_dataset.augmentation.input_mean",
"dataset.val_dataset.augmentation.input_std",
"dataset.val_dataset.data_sources",
"evaluate",
"evaluate.gpu_ids",
"export",
"gen_trt_engine",
"gen_trt_engine.tensorrt",
"gen_trt_engine.tensorrt.layers_precision",
"inference",
"inference.gpu_ids",
"model",
"model.hidden_dims",
"model.mono_backbone",
"model.stereo_backbone",
"quantize",
"quantize.backend_kwargs",
"quantize.layers",
"quantize.skip_names",
"train",
"train.cudnn",
"train.gpu_ids",
"train.optim",
"train.optim.lr_steps",
"train.tile_min_overlap",
"wandb",
"wandb.tags"
],
"core_module": "depth_net",
"path": "schemas/train.schema.json",
"popular": {
"evaluate": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"gen_trt_engine": {
"batch_size": -1,
"gpu_id": 0,
"tensorrt": {
"max_batch_size": 1,
"min_batch_size": 1,
"opt_batch_size": 1
}
},
"inference": {
"gpu_ids": [
0
],
"num_gpus": 1,
"num_nodes": 1
},
"train": {
"checkpoint_interval": 1,
"gpu_ids": [
0
],
"num_epochs": 10,
"num_gpus": 1,
"num_nodes": 1,
"validation_interval": 1
}
},
"schema_action": "train",
"spec_template": "references/spec_template_train.yaml"
}
},
"automl_enabled": true,
"failures": {},
"model": "depth-net-stereo",
"network_arch": "depth_net_stereo",
"schema_version": 1
}
Description: <br>
Stereo depth estimation using FoundationStereo, predicting disparity maps from stereo image pairs for 3D reconstruction. <br>
This skill is ready for commercial/non-commercial use. <br>
Owner
NVIDIA <br>
License/Terms of Use: <br>
Apache 2.0 <br>
Use Case: <br>
Developers and engineers training, evaluating, exporting, and running inference on NVIDIA TAO FoundationStereo models for stereo depth estimation and 3D reconstruction workflows. <br>
Deployment Geography for Use: <br>
Global <br>
Known Risks and Mitigations: <br>
Risk: Review before execution as proposals could introduce incorrect or misleading guidance into skills. <br> Mitigation: Review and scan skill before deployment. <br>
Reference(s): <br>
- Spec Overrides — Foundation Stereo <br>
- Parameters — Foundation Stereo <br>
- Checkpoint Inference Mappings — Foundation Stereo <br>
- TAO Deploy — Foundation Stereo <br>
- Troubleshooting — Foundation Stereo <br>
Skill Output: <br>
Output Type(s): [Shell commands, Configuration instructions] <br> Output Format: [Markdown with inline bash code blocks] <br> Output Parameters: [1D] <br> Other Properties Related to Output: [None] <br>
Evaluation Agents Used: <br>
- Claude Code (
claude-code) <br> - Codex (
codex) <br>
Evaluation Tasks: <br>
Evaluated against 1 evaluation task in the NVSkills-Eval external profile within the astra-sandbox environment. <br>
Evaluation Metrics Used: <br>
Reported benchmark dimensions: <br>
- Security: Checks whether skill-assisted execution avoids unsafe behavior such as secret leakage, destructive commands, or unauthorized access. <br>
- Correctness: Checks whether the agent follows the expected workflow and produces the correct final output. <br>
- Discoverability: Checks whether the agent loads the skill when relevant and avoids using it when irrelevant. <br>
- Effectiveness: Checks whether the agent performs measurably better with the skill than without it. <br>
- Efficiency: Checks whether the agent uses fewer tokens and avoids redundant work. <br>
Underlying evaluation signals used in this run: <br>
security: Checks for unsafe operations, secret leakage, and unauthorized access. <br>skill_execution: Verifies that the agent loaded the expected skill and workflow. <br>skill_efficiency: Checks routing quality, decoy avoidance, and redundant tool usage. <br>accuracy: Grades final-answer correctness against the reference answer. <br>goal_accuracy: Checks whether the overall user task completed successfully. <br>behavior_check: Verifies expected behavior steps, including safety expectations. <br>token_efficiency: Compares token usage with and without the skill. <br>
Evaluation Results: <br>
| Dimension | Num | claude-code | codex |
|---|---|---|---|
| Security | 1 | 100% (+0%) | 100% (+0%) |
| Correctness | 1 | 100% (+100%) | 97% (+97%) |
| Discoverability | 1 | 100% (+100%) | 97% (+97%) |
| Effectiveness | 1 | 66% (+56%) | 90% (+72%) |
| Efficiency | 1 | 95% (+67%) | 96% (+68%) |
Skill Version(s): <br>
0.1.0 (source: frontmatter) <br>
Ethical Considerations: <br>
NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. When downloaded or used in accordance with our terms of service, developers should work with their internal team to ensure this skill meets requirements for the relevant industry and use case and addresses unforeseen product misuse. <br>
(For Release on NVIDIA Platforms Only) <br> Please report quality, risk, security vulnerabilities or NVIDIA AI Concerns here. <br>
Related skills
How it compares
Use this stereo-specific skill instead of generic TAO train skills when working with paired left/right images and GT disparity in depth_net containers.
FAQ
Which TAO actions does tao-train-foundation-stereo package?
tao-train-foundation-stereo covers PyT `depth_net` actions train, evaluate, inference, export, and quantize; TensorRT gen_trt_engine runs through the separate deploy workflow documented in references/tao-deploy-foundation-stereo.md.
When does FoundationStereo training route to AutoML?
tao-train-foundation-stereo defaults `automl_policy: on` and routes train to `tao-run-automl` when `automl_enabled: true` and both `schemas/train.schema.json` and `references/spec_template_train.yaml` are packaged; direct training is used when AutoML is off or schemas are missing
Which dataset_name values does FoundationStereo stereo support?
tao-train-foundation-stereo lists FSD, IsaacRealDataset, Crestereo, Middlebury, Eth3d, Kitti, and GenericDataset (case-insensitive) for stereo data_sources entries requiring data_file and dataset_name on every action.