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}