/nvidia-tao-toolkit:tao-validate-recipe-transferfrom NVIDIA TAO Toolkit
Ports published computer vision papers to customer datasets and diagnoses failed training runs. Splits work into Phase A (verify official code reproduces) and Phase B (transfer to new data). Handles post-mortems for suspiciously good/bad results.
Ships in NVIDIA TAO Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Port published CV work onto customer data without inheriting the silent bugs that make the resulting numbers meaningless.
This work splits into two phases with fundamentally different epistemic status:
Everything verifiable must be verified in Phase A, because the safety net disappears at the boundary. Once you are in Phase B, an implementation bug and a genuine domain mismatch produce identical symptoms: a mediocre number with a clean-looking loss curve.
Two consequences that drive everything below:
Read the request and pick a mode. Say which one you picked and why.
Post-mortem mode — a run already happened and the result was wrong, disappointing, or
suspiciously good. Go to references/postmortem.md. Do not start by rerunning anything.
Walk the checks in likelihood order and find the gate that was skipped.
Forward mode — no run yet, or starting over. Work Phase 0 → A → G → T → R → E below.
Audit mode — a pipeline exists and works, someone wants it checked before it goes to a customer. Run the Phase A gate and the Phase G report against the existing artifacts, then the parity and leakage scripts. Skip the porting work.
If the request is ambiguous, ask which of the three it is before doing anything expensive.
Cheap, and it prevents the most expensive class of mistake. Do this before reading any code.
Ask and answer, in writing:
Record the answers. If the feasibility gate fails, say so plainly and stop — that is a successful outcome of this skill, not a failure.
Goal: prove the code, the data pipeline, the preprocessing, and the metric implementation
are all faithful. Read references/port-gate.md for the detailed procedure.
The gate, in short:
references/port-gate.md
has the grep patterns.Do not enter Phase B until step 3 passes. If it cannot be made to pass, say so and report the gap — "this repo does not reproduce its own paper" is a legitimate and valuable finding.
Make the gap measurable rather than assumed. Run:
python scripts/domain_gap_report.py --source <source_annotations> --target <target_annotations> --out gap_report.md
It compares the source benchmark and the customer set on image count, resolution and aspect distribution, objects per image, class balance, and — most importantly — object size as a fraction of image area.
That last axis drives more recipe decisions than any other. COCO objects average a few percent of image area. If the customer's aerial, microscopy, or inspection imagery puts them at 0.1%, that immediately implicates input resolution, FPN level assignment, anchor scales, and rules out mosaic-style augmentation. The script emits these as explicit flags with reasons, not generic warnings.
The magnitude of the gap on each axis tells you which recipe fields in Phase T are at risk. Carry the flags forward — they are the justification for every deviation from the paper.
Also run split hygiene here, before any training:
python scripts/split_leakage_check.py --splits train=<dir> val=<dir> test=<dir> --report leakage.md
Near-duplicate images across splits are the single biggest source of inflated CV numbers. Video frames sampled at 5fps, the same scene from a fixed camera, the same patient, the same production lot — a random split gives 0.95 mAP and a model that collapses on deployment. Detectable via perceptual hashing and group metadata; almost nobody checks. If this skill does one thing well, make it this.
The intellectual core. Classify every field in the paper's recipe into one of three
buckets before writing a config. references/recipe-fields.md has the full field-by-field
table; the buckets are:
If you initialize from the authors' released checkpoint — which you almost always should on a small customer dataset — their schedule is wrong for you by a large factor. Their recipe assumes ImageNet init or from-scratch training on 118k images. You are fine-tuning on 2,000. Copying the paper's 300-epoch schedule is a common, expensive, and entirely predictable mistake. Expect: much shorter schedule, lower LR (often 10x), shorter warmup, possibly a frozen stem, and weaker augmentation.
State the initialization explicitly in the config and derive the schedule from it. If you cannot say in one sentence whether you are fine-tuning or training from scratch, stop and resolve that first.
Write the preprocessing spec — resize policy (letterbox vs stretch), channel order, normalization constants, augmentation ordering — into one file that the training pipeline, the eval path, and the export path all read. Then verify numerically:
python scripts/preprocess_parity.py --config <preproc.yaml> --image <sample.jpg> --paths train,eval,export
Preprocessing mismatch between training and inference is the failure mode that actually kills deployments: excellent validation mAP, garbage in production, and a long debugging loop because nothing ever errors. Assert tensor equality rather than trusting that two code paths do the same thing.
Apply the verification ladder from references/verification-ladder.md before spending real
GPU hours. Abbreviated:
Fail early, fail cheap. Most disasters are a wrong pipeline trained for three days.
Alongside the full run, keep a regression suite: the pretrained baseline from Phase 0 and any prior best model, evaluated on the same frozen test set. Log dataset version, config, and commit hash together so any checkpoint is reproducible.
Choose an operating point. Everyone reports mAP@50-95 and then deploys at a confidence threshold nobody chose deliberately. Pick the threshold from the PR curve against the customer's actual precision/recall tradeoff — the cost of a miss versus a false alarm is a business question, so ask it — and report metrics at that threshold alongside the aggregate.
Break down, don't average. Per-class and per-slice (object size, lighting, camera, site, time-of-day). A single mAP hides the fact that the model fails entirely on the one class the customer cares about.
Error analysis. For detection, separate classification errors, localization errors, duplicates, background false positives, and missed detections — they have different fixes. High-confidence false positives are often missing annotations, not model errors: a missing box is not a missing label, it is a wrong label, and the model was explicitly taught to suppress that object. Feed these back into annotation QC.
Status artifact — emit one at every evaluation, including mid-run. Write status.json
and render it:
python scripts/render_status.py --status status.json --out status.html
It shows exactly two things: the delta against the paper on top, and the best result so far
against its baseline below. assets/status.example.json is the schema by example. Two rules
that make it honest:
"paper": null, which renders as n/p with no
delta. Never fill that column with a number from a different variant or a blog post.callout
and name what the comparison is actually against. "vs the previous run" and "vs a published
result" are different claims.Mid-run is a first-class state: label the cards still climbing and say so in the footnote,
so nobody quotes a partial number as final.
Report structure — use this template:
# <Task> recipe transfer: <paper> → <customer dataset>
## Outcome
One paragraph. The number, at the chosen operating point, versus the baseline.
## Phase A verification
Did the official checkpoint reproduce the reported number? Exact figures.
## Domain gap
The measured gap and which recipe fields it forced us to change.
## Recipe deviations
Table: field | paper value | our value | bucket | reason.
## Results
Per-class and per-slice at the chosen threshold. PR curve. Regression vs baseline.
## Error analysis
Failure categories with counts and examples.
## Known risks
What we could not verify, and what would change the conclusion.
The "Known risks" section is not optional. It is the difference between a number a customer can act on and a number that will embarrass someone in three months.
Read these as needed rather than upfront:
references/postmortem.md — diagnose a failed run. Symptom-ordered, cheapest checks
first. Start here in post-mortem mode.references/port-gate.md — Phase A detail: commit pinning, CUDA op survival, checkpoint
gate procedure, hardcoded-assumption grep patterns.references/recipe-fields.md — the full field classification table, per task family.references/verification-ladder.md — the seven rungs, with the expected analytic values.references/failure-atlas.md — symptom → cause → check, for the ~25 recurring failures.references/stacks.md — framework-specific notes: raw research repo, MMDetection /
Detectron2, Ultralytics, timm / torchvision, TAO. Read only the relevant one.scripts/domain_gap_report.py — quantified source-vs-target gap with risk flagsscripts/split_leakage_check.py — perceptual-hash near-duplicate detection across splitsscripts/preprocess_parity.py — numerical assertion that train/eval/export preprocessing agreescripts/render_status.py — the Phase E status artifact: paper delta + best result so farRun them with --help for options. The first three are dependency-light (numpy + Pillow) and
render_status.py is stdlib-only, so all of them run inside a research repo's container
without disturbing its environment.
For a customer's private task there is no SOTA. There is no leaderboard for "find defects in this customer's parts." There is only the baseline and your number. So do not promise state-of-the-art; promise a well-validated result with no methodology bugs, defensible to someone who wants to poke at it.
That is worth more than it sounds, because a large share of impressive-looking fine-tuning results are inflated by test leakage, evaluating on the training distribution, or comparing against a deliberately weak baseline. Those errors are mechanical, and this skill exists to catch them.
assets/status.example.json (opens in a new tab)evals/evals.json (opens in a new tab)references/failure-atlas.md (opens in a new tab)references/port-gate.md (opens in a new tab)references/postmortem.md (opens in a new tab)references/recipe-fields.md (opens in a new tab)references/recipe_spec.yaml (opens in a new tab)references/stacks.md (opens in a new tab)references/verification-ladder.md (opens in a new tab)scripts/domain_gap_report.py (opens in a new tab)scripts/preprocess_parity.py (opens in a new tab)scripts/render_status.py (opens in a new tab)scripts/split_leakage_check.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
82 skills in this plugin
/paidf-cosmos-predictPrepare and run PAIDF Cosmos Predict video generation for DEFT media samples./tao-analyze-changenet-rcaPerforms deep Root Cause Analysis (RCA) on NVIDIA TAO Visual ChangeNet classification experiments with image-evidence-driven investigation. Use when analyzing ChangeNet model failures, investigating poor recall / FAR / PASS-NO_PASS metrics, auditing visual inspection pipeline quality, or running an RCA report for an AOI defect-detection model. Trigger phrases include "RCA on my ChangeNet model", "why is my AOI model failing", "audit ChangeNet predictions", "investigate FAR regressions", "root cause analysis on visual-changenet"./npx claudepluginhub nvidia/skills --plugin nvidia-tao-toolkitOther plugins' skills for the same job