Skip to main content
skill CX Codex

physical-ai-defect-image-generation — Claude Code skill

Prepares automated defect synthesis pipelines for optical quality inspection. Helps construct training sets for electronic boards, metal, and glass using Cosmos vision models.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add NVIDIA/skills --skill physical-ai-defect-image-generation -a claude-code
Open on GitHub

What physical-ai-defect-image-generation does

The skill automates the configuration of inspection workflows dispatched through OSMO. At its core is Cosmos AnomalyGen, an adaptation of the Cosmos-Predict2-2B architecture trained for electronic boards, glass surfaces, and raw metal. It provides two primary execution paths: initial cold-start batches derived from USD CAD assets in Day 0, and alignment or manual masking of genuine photographs in Day 1.

Each process runs autonomously through prepared YAML blueprints and cookbook configurations. When testing assembly faults, structural shifts rely on IsaacSim geometry adjustments. In contrast, surface flaws like scratches or omitted components are handled by pairing AnomalyGen with Qwen Image-Edit transformations.

Day 0 routines will fail immediately unless an active image_edit_endpoint is reachable, hosting the appearance transfer model. In addition, generation volume requires configuring two separate thresholds. The render_patches option sets limits on raw scan patches, while crop_max_emit controls the count of exported cell crops.

What it helps with

  • synthesize solder bridges and scratches on circuit boards
  • simulate missing components and misaligned parts from CAD models
  • register authentic board photography against reference CAD definitions
  • produce defect image collections for metal and glass inspection
  • execute non-interactive AnomalyGen finetuning jobs via OSMO

Example prompts for the agent

  • Draft an OSMO configuration for Day 0 defect synthesis using our PCBA USD scene
  • Set up a Day 1 alignment job to register raw circuit board photos
  • Create an OSMO workflow to fine-tune AnomalyGen on metal surface anomalies

How to install physical-ai-defect-image-generation

1Skills CLI (Vercel)

npx skills add NVIDIA/skills --skill physical-ai-defect-image-generation -a claude-code

2Manually: put the files in place

~/.claude/skills/physical-ai-defect-image-generation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/physical-ai-defect-image-generation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about physical-ai-defect-image-generation

How do I install physical-ai-defect-image-generation in Claude Code?

Run npx skills add NVIDIA/skills --skill physical-ai-defect-image-generation -a claude-code. This downloads the skill to ~/.claude/skills/physical-ai-defect-image-generation/SKILL.md.

What does physical-ai-defect-image-generation do?

It coordinates defect creation pipelines on OSMO for visual quality inspection. The tool automates dataset generation and model fine-tuning across circuit boards, glass, and metal surfaces.

What external service must be running for Day 0 pipelines?

Day 0 executions depend on an accessible image_edit_endpoint hosting Qwen Image-Edit. Without that endpoint active, image augmentation cannot process the rendered scan patches.

Similar skills

Everything for AI and ML →

From the same set178

nemo-automodel-distributed-training Picks a distributed training strategy for NeMo AutoModel and lists the YAML fields to set. Useful when the model no longer fits on one GPU. CX Codex +1 2,000installs nemotron-retrieval-recipes Helps plan, debug, tune, export, and deploy public NVIDIA Nemotron embedding and reranking retrieval recipes. Useful for fixing recall and ranking issues in search pipelines. CX Codex +1 2,000installs nemo-rl-session-memory Keeps a durable, human-readable record of a working session under session/, so another agent can resume after a disconnect or a VS Code restart. CX Codex +1 2,000installs nemotron-speech A skill that walks your agent through NVIDIA Nemotron Speech (formerly Riva) NIM work: deploying, running and testing ASR, TTS and NMT in the cloud or self-hosted. CX Codex +1 2,000installs physical-ai-video-data-augmentation Runs the video augmentation and auto-labeling loop on OSMO, from picking a flow and preflight checks to monitoring and pulling outputs. CX Codex +1 2,000installs dynamo-troubleshoot Sorts a broken Dynamo deployment into one problem class and hands you the next command. Useful when pods, PVCs or benchmark jobs stall. CX Codex +1 1,900installs nemo-mbridge-recipe-recommender A skill that picks a starting Megatron Bridge recipe for your model, GPU count and training goal, then helps you resize parallelism. CX Codex +1 1,900installs launch-nemo-rl Playbook for launching, inspecting, and debugging NeMo-RL recipes on Kubernetes using the nrl-k8s CLI. CX Codex +1 1,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor