tao run deft aoi
Run the full DEFT AOI improvement loop for NVIDIA TAO VisualChangeNet / ChangeNet PCB inspection models: baseline evaluate, RCA, Cosmos AnomalyGen / AMP synthetic defects, k-NN mining, retraining, and deployment gating against a customer-defined primary metric and optional constraints. Use only when the request identifies an AOI / automated-optical-inspection, PCB-defect, VisualChangeNet, or ChangeNet workflow. Supports air-gapped/offline runs with pre-staged assets. Never infer AOI from generic
Documentation & Preview
tao-run-deft-aoi — credentials template.
#
Copy this file to <workspace>/.env and fill in values:
cp .env.example <workspace>/.env
# Edit <workspace>/.env and fill in values.
#
Then point the agent at that path; it never picks the file up on its own, and
loads it with set -a; source <workspace>/.env; set +a in the same bash call
as each command that needs it. A key left empty here overrides your shell —
delete any line you are not filling in.
=== Container registry (NGC) ===
A single NGC key gates every nvcr.io image this workflow pulls.
The key needs read access to:
- the TAO Toolkit image org (tao-toolkit-pyt, tao-toolkit-deploy,
tao-toolkit-ds)
- the Metropolis SDG image org (paidf-anomalygen, used by the
inline AnomalyGen stage)
The authoritative orgs are whatever the pinned image URIs in
references/preflight.md step 5 point at.
Get a key at https://ngc.nvidia.com → Setup → API Key.
NGC_KEY=
=== HuggingFace ===
Required: Pre-Flight downloads model weights from HuggingFace on your
behalf into augmentation/anomalygen/base_checkpoints/ (cached between
runs; one-time ~22 GB for 2B SDG, ~140 GB if 14B + T5-11b is included).
Also gates the PCB reference dataset auto-fetch.
Models pulled:
- ChangeNet backbone nvidia/C-RADIOv2-B
- SDG diffusion nvidia/Cosmos-Predict2-2B-Text2Image (+ -14B-)
- Text encoder google-t5/t5-large (or t5-11b)
- Eval embeddings nvidia/C-RADIO-V3
- nn_score / mnn_score facebook/dinov2-large
- AMP segmentation facebook/sam2
- AMP captioning Qwen/Qwen3-VL-4B-Instruct
- k-NN mining google/siglip-base-patch16-224
- PCB dataset nvidia/Cosmos-AnomalyGen-PCB-Dataset
Get a token at https://huggingface.co/settings/tokens (read access is enough).
HF_TOKEN=