Tao Prepare Anomalygennext Inputs
NVIDIAOfficialCreated by NVIDIA Corporation
- Skill
- Workflow
- Software development
- Apache-2.0
- Medium risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow to prepare data for the AnomalyGenNext pipeline. It processes false-negative (FN) object detection results by isolating masks, selecting deterministic donor masks, and generating embedding specifications. The workflow ensures data integrity by freezing configurations, validating mask eligibility, and maintaining a strict input contract for downstream embedding and automatic mask placement (AMP) tasks. It is designed to handle complex data preparation without modifying the original source pool, ensuring reproducibility across the generation pipeline.
What it does
- Freezes eligible false-negative identities and isolates masks to their bounding boxes.
- Selects deterministic same-type donor masks for each false negative.
- Generates embedding specifications for clean images and false-negative inputs.
- Executes automatic mask placement (AMP) to validate mask branches.
- Produces a final integrity manifest and generation plan for valid pairs.
- Records skip reasons for ineligible false negatives to maintain auditability.
When to use it
- When you need to prepare false-negative gaps for AnomalyGenNext generation.
- When you must turn box-level false-negative data into a frozen, pair-preserving preparation plan.
- When you need to validate mask eligibility before running image generation.
- When you are preparing inputs for downstream embedding and AMP tasks.
Advantages
- Ensures deterministic and reproducible data preparation.
- Maintains strict input contracts to prevent configuration drift.
- Provides detailed reporting on skipped items and failure reasons.
- Preserves original source data by avoiding any mutation of the training pool.
- Supports independent processing of eligible false negatives.
Usage examples
- “Prepare my object detection false negatives for AnomalyGenNext using the default filtering configuration.”
- The skill executes the preparation script, validates the input parquet, and generates the necessary embedding specs and input contract for the specified dataset.
- “Run the automatic mask placement for my prepared AnomalyGenNext inputs.”
- The skill triggers the AMP process, verifying the frozen configuration and checkpoint paths to produce the final testcase and candidate parquet files.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/nvidia/tao-prepare-anomalygennext-inputs/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip tao-prepare-anomalygennext-inputs.zip -d .agents/skills
Documentation by NVIDIA Corporation
Prepare AnomalyGenNext Inputs
The first action freezes eligible false-negative identities, isolates each FN mask to its bounding box, selects one deterministic same-type mask, and emits the clean and FN embedding specs. The second action consumes those embedding results, preserves every FN-to-clean pair, and runs native automatic mask placement (AMP) from the AnomalyGenNext container. The final action accepts only pairs for which both mask branches passed AMP, then freezes the exact generation inputs and their hashes.
Input contract
Start from assets/default_filtering.yaml. The gap parquet must contain:
image_id filepath gap_type bbox class split
dataset_id texture_id defect_class anomaly_type fn_mask_sourceIdentity is explicit: anomaly_type must equal
texture_id+defect_class. Preparation intentionally has no filename or
directory-layout inference. A caller adapting an unfamiliar dataset must
normalize these fields before this boundary.
Clean references are resolved independently for each routed FN/type. A missing
directory or a directory with no supported images skips only affected FNs with
reason no_clean_reference_images; it does not disable other types.
Each selected dataset maps to an existing fine-tuned checkpoint and recipe.
The recipe must declare the exact anomaly type, and defect_spec.jsonl must
contain its placement definition. Text-routed definitions require a nonempty
roi_prompt_defect_location. The pool layout is:
POOL/TEXTURE/clean_image/*
POOL/TEXTURE/mask/DEFECT/*Action
Run through the selected platform after the common launch review:
scripts/prepare_anomalygennext_inputs.py \
--config /path/to/filtering.yaml \
--pool-dataset-root /path/to/anomalygen_pool \
--output-dir /new/result/rootThe output root must not exist. The action emits fn_queries.parquet,
selected_fn_queries.parquet, mask_selection.parquet, clean_pool.parquet,
two tao-generate-image-embeddings specs, the copied filtering config, and
input_contract.json. Mask eligibility is evaluated per FN. The contract lists
eligible FN IDs plus stable skipped FN IDs and machine-readable reasons; skipped
FNs are absent from every query, embedding, mask, and AMP input. Donor masks are
tried in deterministic order until one valid same-type donor is found.
If no FN survives, preparation emits only a SKIPPED input_contract.json
with reason no_eligible_false_negatives. Detailed skip_counts, per-FN
records, and warning evidence distinguish missing clean references from mask
eligibility failures. Do not run embeddings or AMP for that typed no-op, and do
not represent it as generation success. A partial skip emits warning evidence
while specs contain only eligible FNs.
pool_dataset_root is one user-level folder input for the workflow. The
platform stages it once and retains the binding between its source and the
compute-visible path passed to preparation. Preparation freezes that compute
path into filtering_config.yaml, every clean filepath in clean_pool.parquet,
and input_contract.json. The contract declares the same typed folder as a
read-only downstream input for clean-image embedding and AMP. Each later
container must remount the original source at that exact compute path; the
generated script arguments are platform plumbing, not new user choices.
Run both emitted specs through tao-generate-image-embeddings, preserving the
same encoder. The clean-image embedding action must consume
input_contract.json.downstream_inputs.clean_embeddings so the pool paths in
its parquet resolve. The FN embedding action likewise needs mounts for the
source-image paths already carried by its input parquet. Place both outputs
under embeddings/ as named by the specs, then submit the run_amp action:
scripts/run_anomalygennext_amp.py \
--prepared-root /temporary/execution/root \
--published-root /persistent/result/root \
--pool-dataset-root /path/to/anomalygen_pool \
--checkpoint-root /workspace/paidf-anomalygen/checkpointsrun_amp always loads the frozen config below --prepared-root; it accepts no
second config. Its typed pool argument confirms that the platform remounted the
folder at the path already frozen into the config and parquets.
This writes knn_candidates.parquet, the native AMP request, and
amp/testcase.jsonl. When execution uses temporary storage, --published-root
records the persistent locations that will contain the saved results. The
complete checkpoint root is a required typed input mounted at the image's
canonical /workspace/paidf-anomalygen/checkpoints path. Before GPU work,
run_amp verifies the pinned Qwen cache, the configured amp.model_id as a
complete direct-local model or Hugging Face snapshot, and
facebook/sam2.1-hiera-large/sam2.1_hiera_large.pt; a separately mounted SAM2
file does not satisfy
the native runtime contract. The selected platform must honor the declared
checkpoint_root.container_path; the leaf rejects a different mount point.
Finalize the saved output in that persistent
result root:
scripts/finalize_anomalygennext_inputs.py --prepared-root /existing/result/rootThe finalizer writes pair status, selected pairs, copied aligned masks, per-dataset testcase and provenance JSONL, and a generation plan plus integrity manifest. A clean image is unique only within one FN; separate FNs may reuse it. Platform skills own staging and cache placement.
Gates
Preserve each box-level FN as a distinct
fn_id.Produce exactly two masks per FN: isolated FN and deterministic same-type.
Skip one invalid FN without aborting other eligible FNs.
Embed a repeated source image once while preserving every FN query row.
Require successful, nonempty, non-full-image aligned masks for both branches.
Never infer an anomaly type or placement prompt.
Refuse output reuse and never mutate a training pool.
Platform skills own transient staging, caches, and copy-back.
Read references/input-contract.md when authoring the normalized parquet or
dataset mapping.
Files
- ATTRIBUTION.mdAdded by AutoGineer969 B
- BENCHMARK.md7.0 KiB
- LICENSELicence file added by AutoGineer11.2 KiB
- SKILL.md6.5 KiB
- assets/default_filtering.yaml1.3 KiB
- config/skillspector-baseline.yaml3.0 KiB
- evals/evals.json931 B
- references/input-contract.md5.4 KiB
- references/skill_info.yaml2.1 KiB
- scripts/finalize_anomalygennext_inputs.pyScript9.6 KiB
- scripts/prepare_anomalygennext_inputs.pyScript17.5 KiB
- scripts/run_anomalygennext_amp.pyScript12.6 KiB
- scripts/tests/test_finalize_anomalygennext_inputs.pyScript4.5 KiB
- scripts/tests/test_prepare_anomalygennext_inputs.pyScript15.6 KiB
- scripts/tests/test_run_anomalygennext_amp.pyScript11.5 KiB
- skill-card.md5.0 KiB
- skill.oms.sig7.0 KiB
BENCHMARK.md
Skill Benchmark: tao-prepare-anomalygennext-inputs
✅ Overall verdict: PASS — Recommended for publication
Publication Recommendation
Recommended for publication based on the completed evaluation evidence in this report.
Evaluation Metadata
Skill:
tao-prepare-anomalygennext-inputsEvaluation date: 2026-10-16
Evaluator version:
1.5.6Agents: Claude Code (
aws/anthropic/bedrock-claude-opus-4-8), Codex (openai/openai/gpt-5.5)Tasks: 1 evaluation tasks (1 positive)
Dataset digest:
sha256:f006e725f4b5f639555f92aeb585edc3e6b3689d9af0b0f1ccc4fb471bf87216(skill-evaluator-dataset-snapshot/1)Attempts per task: 1
Environment:
k8s-sandboxTier 2 evidence: required for publication
Tier 3 evidence: required for publication
Each task attempt ran in its own isolated sandbox pod.
What This Report Answers
The three-tier evaluation checks whether the skill:
is safe to use;
produces correct answers;
is discovered and activated when needed;
helps the agent complete the user's goal and expected workflow; and
avoids wasted skill and tool usage.
Results at a Glance
| Measure | Claude Code (Baseline → Skill Uplift) | Codex (Baseline → Skill Uplift) |
|---|---|---|
| Overall | 89.6% — baseline ran, but no comparable score was available; uplift unavailable | 66.7% — baseline ran, but no comparable score was available; uplift unavailable |
| Security | 100.0% → 100.0% (±0.0 points) | 100.0% → 100.0% (±0.0 points) |
| Correctness | 0.0% → 100.0% (+100.0 points) | 20.0% → 100.0% (+80.0 points) |
| Discoverability | 95.0% — baseline ran, but no comparable score was available; uplift unavailable | 0.0% — baseline ran, but no comparable score was available; uplift unavailable |
| Effectiveness | 0.0% → 80.0% (+80.0 points) | 0.0% → 35.0% (+35.0 points) |
| Efficiency | 72.8% — baseline ran, but no comparable score was available; uplift unavailable | 99.5% → 98.5% (-1.0 points) |
How to read this table: baseline is the same task attempted without the target skill. Scores are rounded to one decimal; threshold-adjacent values use additional precision so their displayed band matches the verdict. Uplift is derived from those displayed scores and shown in percentage points.
Example: 47.0% → 92.0% (+45.0 points) means the skill-assisted run scored 92.0%, 45.0 percentage points above its 47.0% no-skill baseline.
A partial dimension was calculated from only the available configured signals; review the detailed report before relying on it.
Token Usage
Actual Tier 3 execution usage is reported for every observed agent/case pair and both conditions.
| Agent | Dataset case | With skill | Without skill | Delta | Change | Coverage |
|---|---|---|---|---|---|---|
| claude-code | All cases | 96,950 | 30,094 | +66,856 | +222.16% | skill 1/1; base 1/1 |
| claude-code | prepare-fn-driven-inputs | 96,950 | 30,094 | +66,856 | +222.16% | skill 1/1; base 1/1 |
| codex | All cases | 13,892 | 14,014 | -122 | -0.87% | skill 1/1; base 1/1 |
| codex | prepare-fn-driven-inputs | 13,892 | 14,014 | -122 | -0.87% | skill 1/1; base 1/1 |
| ALL AGENTS | Dataset aggregate | 110,842 | 44,108 | +66,734 | +151.30% | skill 2/2; base 2/2 |
Prompt tokens include cached reads, so total tokens are prompt + completion (cached is not added twice). The Efficiency score uses (prompt - cached) + completion. N/A means the relevant trajectory counters were not available; coverage is never estimated.
Tier Status
| Tier | Purpose | Status | Evidence |
|---|---|---|---|
| Tier 1 | Static validation | PASSED WITH OBSERVATIONS | 11 validator(s); 27 finding(s) |
| Tier 2 | Semantic deduplication | PASSED | 2 validator(s); 0 finding(s) |
| Tier 3 | Live agent evaluation | PASS | 2 agent(s); 1 task(s) |
Findings and Observations
<details> <summary>Show detailed findings and successful checks</summary>
MEDIUM QUALITY/quality_correctness: No documented scripts in table format (
skills/data/tao-prepare-anomalygennext-inputs/SKILL.md)MEDIUM QUALITY/quality_correctness: Instructions don't mention 'run_script' (
skills/data/tao-prepare-anomalygennext-inputs/SKILL.md)MEDIUM QUALITY/quality_correctness: SKILL_SPEC recommended field missing: 'metadata.tags' (
skills/data/tao-prepare-anomalygennext-inputs/SKILL.md)MEDIUM SCHEMA/frontmatter_field_placement: Root field 'tags' is ignored; use 'metadata.tags' (
skills/data/tao-prepare-anomalygennext-inputs/SKILL.md)MEDIUM SCHEMA/folder_hierarchy: Unexpected nesting depth for general skill (
skills/data/tao-prepare-anomalygennext-inputs)22 additional finding(s) are available in the full evaluation artifacts.
</details>
Scoring Methodology
<details> <summary>Show dimension definitions, source signals, and thresholds</summary>
| Dimension | Question | Scored signals |
|---|---|---|
| Security | Is it safe to use? | security (100%) |
| Correctness | Is the answer correct? | accuracy (100%) |
| Discoverability | Was the right skill loaded when needed? | skill_execution (100%) |
| Effectiveness | Did the skill help complete the task? | goal_accuracy (50%) + behavior_check (50%) |
| Efficiency | Did it avoid wasted tool calls and token usage? | skill_efficiency (50%) + token_efficiency (50%) |
Dimension bands: PASS at 50% or above; NEUTRAL from 40% to below 50%; FAIL below 40%.
Overall Tier 3 lift: PASS at +5 points or more; FAIL at -10 points or less; values between those bands are NEUTRAL.
Overall verdict: PASS only when every configured dimension passes for at least one supported agent. Lift is reported as diagnostic evidence and does not override this gate.
The 50% attempt pass threshold is a separate per-task gate; it is not the dimension pass threshold.
Effectiveness is the equal-weight mean of goal completion (
goal_accuracy) and expected workflow adherence (behavior_check).Efficiency is 50% tool-call productivity (the backward-compatible
skill_efficiencywire id) and 50%token_efficiency. Positive-case skill routing is scored under Discoverability, not Efficiency; a negative case without a routing target is N/A. N/A sources are omitted, remaining weights are renormalized, and the dimension is marked partial.
Signals present in this run:
security(Security): unsafe operations, secret leakage, and unauthorized access.skill_execution(Skill Execution): whether the expected skill was selected, decoys were avoided, and the workflow executed.skill_efficiency(Tool Productivity): tool-call productivity (legacy wire id; routing is scored under Discoverability).accuracy(Accuracy): final-answer correctness against the reference answer.goal_accuracy(Goal Accuracy): whether the user's goal was achieved.behavior_check(Behavior Check): whether the expected workflow behavior was followed.token_efficiency(Token Efficiency): actual uncached prompt plus completion usage (50% of Efficiency).
</details>
Freshness
Regenerate this benchmark when the skill, evaluation dataset, target agent/model, evaluator version, environment, or scoring policy changes.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Declares allowed tools, Needs Python
The author says: Requires the AnomalyGenNext 1.1 image, pandas, pyarrow, NumPy, Pillow, and PyYAML.
Security
What our scanner noticed· Medium risk
- Large base64-encoded blobs
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- NVIDIA Corporation
- Publisher
- NVIDIA (Official)
- Source
- NVIDIA/skills · skills/tao-prepare-anomalygennext-inputs · commit fce3cca
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE-APACHE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by NVIDIA Corporation or NVIDIA.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download tao-prepare-anomalygennext-inputs.zip