paidf-anomalygen

Generate synthetic anomaly images for manufacturing defect detection workflows.

83|20|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/NVIDIA-TAO/tao-skill-bank --skill paidf-anomalygen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paidf-anomalygen
Source: https://github.com/NVIDIA-TAO/tao-skill-bank/tree/main/skills/data/paidf-anomalygen
Command: npx skills add https://github.com/NVIDIA-TAO/tao-skill-bank --skill paidf-anomalygen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires metropolis_sdg.paidf_anomalygen, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the generation of synthetic anomaly images for manufacturing defect inspection workflows, saving time and resources compared to manual generation.

Core Features & Use Cases

  • Anomaly Generation: Generate synthetic anomaly images for defect detection.
  • Pipeline: Full PAIDF AnomalyGen pipeline for fine-tuning, synthetic image generation, quality evaluation, and per-sample search.
  • Use Case: Ideal for engineers and developers who need to fine-tune AnomalyGen models on custom anomaly datasets and generate synthetic anomaly images for manufacturing defect inspection workflows.

Quick Start

To generate synthetic anomaly images using the paidf-anomalygen skill, follow these steps:

export ANOMALYGEN_SCRIPTS="$(git rev-parse --show-toplevel)/scripts/utilities"
MODE=full
NAME=my_exp
DATASET_DIR=/data/uc1
DEFECT_DESC=assets/defect_spec_template.jsonl
NUM_SDG=20
MODEL_SIZE=2b
${ANOMALYGEN_SCRIPTS}/check.sh || ${ANOMALYGEN_SCRIPTS}/download_checkpoints.sh
${ANOMALYGEN_SCRIPTS}/run_sdg.sh \
  --checkpoint_dir ${CKPT} \
  --step ${STEP} \
  --input_jsonl ${JSONL} \
  --output_dir ${ORIGINAL} \
  --model_size ${MODEL_SIZE} \
  --num_gpus ${NUM_GPUS}

Frequently Asked Questions about paidf-anomalygen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate synthetic anomaly images for manufacturing defect detection?

To generate synthetic anomaly images for manufacturing defect detection, you can use the PAIDF AnomalyGen pipeline to fine-tune models on custom datasets and automate image synthesis. This process requires a CUDA GPU and Docker to execute the provided scripts.

What is the PAIDF AnomalyGen pipeline for defect inspection?

The PAIDF AnomalyGen pipeline is an automated workflow for manufacturing defect inspection that performs fine-tuning, synthetic image generation, quality evaluation, and per-sample search to create anomaly datasets for training models.

Do I need a CUDA GPU to run synthetic image generation for anomaly detection?

Yes, you need a CUDA GPU and Docker to run synthetic image generation for anomaly detection. These hardware and software dependencies are required to execute the fine-tuning and image synthesis scripts provided by the pipeline.

How do I fine-tune AnomalyGen models on custom anomaly datasets?

You can fine-tune AnomalyGen models on custom anomaly datasets by running the pipeline's scripts with your specified dataset directory, defect description template, and model size. This automates the fine-tuning step before generating synthetic images.

What is the best way to automate defect image synthesis for manufacturing workflows?

The best way to automate defect image synthesis for manufacturing workflows is using a full pipeline that handles fine-tuning, generation, and quality evaluation. This approach saves time and resources compared to manual generation of anomaly images.

Are there limitations when using synthetic anomaly generation for defect inspection?

Limitations of synthetic anomaly generation include the strict requirement for Docker and a CUDA GPU environment. Additionally, the quality of generated defect images depends on the fine-tuning data provided in your custom anomaly datasets.