Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

physical-ai-defect-image-generation

БесплатноБез исполняемых скриптовНе проверен

Use when the user wants to orchestrate defect image generation with NVIDIA Cosmos AnomalyGen (Cosmos-Predict2-derived) on OSMO for PCBA, metal surface, and…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

Physical AI Defect Image Generation

Table of Contents

End-to-end orchestration of defect image generation, augmentation, and labeling pipelines for AOI (Automated Optical Inspection) datasets. AnomalyGen = Cosmos-Predict2-2B finetuned per use case (Cosmos-AnomalyGen-PCB-2B, -Metal-2B, -Glass-2B). Every flow has a canonical OSMO workflow YAML in assets/configs/ that chains all steps non-interactively. Use-case cookbooks in assets/cookbooks/ provide PCBA usd2roi/image-edit configs and AnomalyGen training configs for PCBA, metal surface, and glass inspection. This skill governs flow selection, data handoffs, and submit commands; component internals live in each component's SKILL.md.

Supported Flows

Flow Entry point OSMO YAML Steps Use cases
Day 0 — Texture Defects CAD scene USD (pcba_target.yaml ships in the cookbook) texture_defect_generation_day0.yaml usd2roi (scan_grid + per-cell ROI crops) → image-edit augmentation (nvidia/Qwen-Image-Edit-NVPCB-OVSL2SL) → finetune-or-passthrough → infer (anomalygen labels inline, including missing-component) PCBA
Day 0 — Good Image (usd2roi + Image-Edit) CAD scene USD + per-board pcba_target.yaml / day0_image.yaml / day0_crop.yaml good_image_generation.yaml usd2roi-render (scan_grid + per-cell ROI crop) → Qwen Image-Edit (OVSL2SL appearance transfer) PCBA clean-image set (ChangeNet golden halves, finetune positives, real-photo pairing)
Day 0 — Structural Defects CAD scene USD + per-board pcba_target.yaml structural_defect_generation.yaml isaac-render (pose defects: shift / tombstone / sideflip) + per-component crop (single pod) → Qwen Image-Edit (OVSL2SL lighting transfer; pose geometry preserved) PCBA pose-defect set; ChangeNet defect halves
Day 1 — Infer + Label (real-photo alignment, DEFAULT) CAD-derived USD + real PCBA photo (both ship in datasets/pcb/assets) texture_defect_generation_day1_real_alignment.yaml usd2roi day-1 render → MI register → per-ROI crop → yq-render config → finetune-or-passthrough → infer (anomalygen labels inline) Default PCBA Day 1. Raw AOI screenshot of any usd2roi-supported board
Day 1 — Infer + Label (manual ROI) Pre-captured clean images + ROI masks (NGC artifact or user upload) texture_defect_generation_day1_manual_roi.yaml yq-render config → finetune-or-passthrough → infer (anomalygen labels inline) Metal surface, glass (no USD/real-photo flow); PCBA only when user explicitly asks for pre-captured ROI experimentation
Finetune Only Labeled anomaly URL artifact finetune.yaml yq-render config → finetune (validate_dataset → prep_testcase → torchrun) Any use case; produces checkpoint for Day 0 or Day 1. Requires raw training data under <dig_url_root>/datasets/<usecase>/raw (see assets/configs/setup/setup_<usecase>.yaml).

All flows run on OSMO. Day 0 flows require image_edit_endpoint (Qwen Image-Edit OVSL2SL — existing URL or local deploy from references/nim/); Finetune Only has no external endpoints.

Pick the right workflow for the user's defect class

Defect class Workflow Mechanism
Clean / good / scan-grid / normal_img + cad_mask pairs good_image_generation.yaml usd2roi-render + Qwen Image-Edit
Texture defects (solder bridge, scratch, discoloration) AND missing-component (handled natively by AnomalyGen, NOT structural) texture_defect_generation_day0.yaml Qwen Image-Edit + AnomalyGen AMP/SDG
Structural / pose defects (tombstone, shift, sideflip) structural_defect_generation.yaml IsaacSim pose perturbation
Day 1 inference + labeling on a real image texture_defect_generation_day1_real_alignment.yaml (PCBA default) or texture_defect_generation_day1_manual_roi.yaml (metal/glass; PCBA only when user explicitly asks for pre-captured ROI / skip-alignment) usd2roi day-1 registration (real-alignment) or direct inference (manual-ROI)

ChangeNet golden/defect pairs: submit good_image_generation.yaml + structural_defect_generation.yaml with the same --set name= (two-submission pairing convention).

Day 0 and Day 1 share the same downstream shape: a Jinja-gated finetune-job (omitted when use_pretrained_checkpoint=true) feeding anomaly-infer. Day 0 prepends usd2roi-render + augment-image-edit; Day 1 sta

Полный SKILL.md на GitHub

Установить physical-ai-defect-image-generation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Shell

Вложенные файлы

BENCHMARK.mdassets/configs/finetune.yamlassets/configs/good_image_generation.yamlassets/configs/setup/setup_glass.yamlassets/configs/setup/setup_metal.yamlassets/configs/setup/setup_pcb.yamlassets/configs/setup/setup_pretrained.yamlassets/configs/structural_defect_generation.yamlassets/configs/texture_defect_generation_day0.yamlassets/configs/texture_defect_generation_day1_manual_roi.yamlassets/configs/texture_defect_generation_day1_real_alignment.yamlassets/cookbooks/glass/ag_config.yamlassets/cookbooks/metal_surface/ag_config.yamlassets/cookbooks/pcb/0603_H100/day0_crop.yamlassets/cookbooks/pcb/0603_H100/day0_image.yamlassets/cookbooks/pcb/0603_H100/defect_image.yamlassets/cookbooks/pcb/0603_H100/pcba_target.yamlassets/cookbooks/pcb/0603_H100/usd2roi_nvpcb.yamlassets/cookbooks/pcb/1152819000/day0_crop.yamlassets/cookbooks/pcb/1152819000/day0_image.yamlassets/cookbooks/pcb/1152819000/defect_image.yamlassets/cookbooks/pcb/1152819000/pcba_target.yamlassets/cookbooks/pcb/1152819000/usd2roi_nvpcb.yamlassets/cookbooks/pcb/ag_config.yamlassets/cookbooks/pcb/augmentation_config_ovsl2sl.yamlassets/cookbooks/pcb/usd2roi_day1.yamlevals/evals.jsonreferences/container-images.mdreferences/contents.mdreferences/disambiguation.mdreferences/flows/finetune.mdreferences/flows/good_image_generation.mdreferences/flows/structural_defect_generation.mdreferences/flows/texture_defect_generation_day0.mdreferences/flows/texture_defect_generation_day1_manual_roi.mdreferences/flows/texture_defect_generation_day1_real_alignment.mdreferences/gpu_sizing.mdreferences/knob_mapping.mdreferences/monitoring.mdreferences/nim/README.md

FAQ

Что делает скилл physical-ai-defect-image-generation?

Use when the user wants to orchestrate defect image generation with NVIDIA Cosmos AnomalyGen (Cosmos-Predict2-derived) on OSMO for PCBA, metal surface, and glass inspection. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint, cosmos defect generation, cosmos-predict2 defect, cosmos-anomalygen, cosmos predict2 finetune.

Как установить скилл physical-ai-defect-image-generation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл physical-ai-defect-image-generation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить physical-ai-defect-image-generation с