Agent skill · NVIDIA
paidf-anomalygen
Full PAIDF AnomalyGen pipeline — fine-tune on a new anomaly dataset, generate synthetic anomaly images (SDG), evaluate quality (nn_score), and search per-sample (guidance, crop_ratio) parameters. Three modes: full (Phase 0→7: finetune then generate), finetune_only (Phase 0→1: train only), inference_only (Phase 0, 2→7: generate from an existing checkpoint). Use when the user asks to "fine-tune AnomalyGen", "generate anomaly images", "run PAIDF SDG", "evaluate SDG output quality", "run per-sample search", or run any part of the AnomalyGen pipeline, even if they only mention one phase.
What it needs
About 9k tokens when loaded.
What this skill does
PAIDF AnomalyGen Standalone install? If this session was not initialized by the TAO skill bank plugin, run the tao-setup skill first (host preflight, credentials, cross-skill discovery). Multi-phase pipeline (0–7); the mode flag selects which phases run. Phase What runs Mode(s) --- --- --- 0 Verify / download pretrained checkpoints all 1 Fine-tune on datasetdir full, finetuneonly 2 Prepare inference JSONL (AMP routing) full, inferenceonly 3 SDG — generate synthetic anomaly images → original/ full, inferenceonly 4 Eval original/ — emit persample.csv + eval.log, merge nnscore into SDGresult.csv full, inferenceonly 5 Per-sample (guidance, cropratio) search rounds → rounds/roundNN/ (each round runs SDG + eval) full, inferenceonly 6 Assemble best-of-rounds into searched/ (stitch only), plus rounds/searchsummary.csv full, inferenceonly 7 Filter searched/ by nnthreshold (default 0.4), regen dropped samples, then canonical bucket eval → searched/{persample.csv, eval.log} full, inferenceonly Run every phase through to completion without mid-run pauses. Collect all required parameters up front, and run every command from the repo root. Shell setup. All ${ANOMALYGENSCRIPTS} references resolve to the packaged helper-script directory. Inside the container this is preset (ENV ANOMALYGENSCRIPTS=<dir>/scripts/utilities); on the host, export it once per shell: python3 -m scripts.utilities.<name> invocations work from any CWD inside the container (PYTHONPATH is preset) and from the repo root on the host. When inside a product container (ANOMALYGENPRODUCTMODE=1), invoke anomalygen-guard before any GPU work; if it reports BLOCKED, fix the listed issues before continuing. Quick Start The pipeline runs inside the metropolissdg.paidfanomalygen container (declared in versions.yaml) or any host with the cosmos-predict2 conda env active. All phase commands assume that environment, at the repo root, with ANOMALYGENSCRIPTS exported. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills NVIDIA/paidf-anomalygen