Model Overview

Description:

Cosmos AnomalyGen β€” Metal Surface (UC2) generates synthetic magnetic-tile-surface anomaly images by inpainting a user-supplied binary mask onto a clean reference tile image, conditioned on one of five trained defect types (Blowhole, Break, Crack, Fray, Uneven). The release ships only the few-shot-finetuned modules β€” a set of per-defect-type LoRA adapters β€” which plug into the frozen Cosmos3-Nano diffusion backbone (also using a frozen Wan2.2 VAE tokenizer and a frozen Qwen3-VL text encoder) at inference time. Cosmos AnomalyGen β€” UC2 v1.2.0 was developed by NVIDIA as part of the Cosmos AnomalyGen pipeline. This model is ready for commercial or non-commercial use.

License/Terms of Use:

GOVERNING DOWNLOAD TERMS: Use of the model is governed by the OpenMDW License Agreement, version 1.1.

ADDITIONAL INFORMATION: The Cosmos3-Nano base model is governed by OpenMDW License Agreement, version 1.1. The training framework uses components governed by Apache License, Version 2.0.

Deployment Geography:

Global

Use Case:

Industrial visual-inspection teams responsible for magnetic-tile / metal-surface QA who have very few (≀5 per defect type) real anomaly examples. The model produces large-scale synthetic anomaly datasets (clean tile + binary mask β†’ realistic Blowhole / Break / Crack / Fray / Uneven image) for training downstream defect-detection or segmentation models, including downstream consumers via the pseudo-labeling export path (COCO instance annotations and per-class classification layout).

Release Date:

Github 10/20/2026 via https://github.com/NVIDIA/cdf-anomalygen

References(s):

Model Architecture:

Architecture Type: Transformer (diffusion MoT backbone with learnable per-defect-type conditioning modules)

Network Architecture:

  • per_class_lora (trainable, included in this release): per-defect-type LoRA adapters (rank 8, alpha 8) on the four generation-expert attention projections (q_proj_moe_gen, k_proj_moe_gen, v_proj_moe_gen, o_proj_moe_gen) of all 36 layers β€” five pairs trained for UC2: metal_surface+MT_Blowhole, metal_surface+MT_Break, metal_surface+MT_Crack, metal_surface+MT_Fray, metal_surface+MT_Uneven; each generation token is routed to the adapter of its defect type.
  • tokenizer (frozen, not redistributed in this release): Wan2.2 VAE (16Γ— spatial compression, 48 latent channels); weights are loaded from the separately downloaded Wan-AI/Wan2.2-TI2V-5B checkpoint at inference time.
  • text_encoder (frozen, not redistributed in this release): the Qwen3-VL-8B reasoner tower of Cosmos3-Nano, with the Qwen/Qwen3-VL-8B-Instruct tokenizer.
  • These modules condition the frozen Cosmos3-Nano Mixture-of-Transformers (MoT) diffusion denoiser (36 layers, hidden size 4096) at inference time.

This model was developed based on Cosmos3-Nano.

Number of model parameters: Approximately 3.8Γ—10^7 (38.3 million) trainable parameters in the released modules β€” per_class_lora β‰ˆ 7.67M per <texture>+<anomaly_type> pair (rank-8 adapters on 4 projections Γ— 36 layers) Γ— 5 pairs = 38,338,560. The trainable modules are distributed as the model/iter_000014000.pt checkpoint file. The frozen Cosmos3-Nano base contributes ~1.6Γ—10^10 (16 billion) parameters used at inference time but not redistributed in this release.

Input(s):

Input Type(s): Image, Binary Mask, Text

Input Format(s):

  • Image: PNG / JPG, Red, Green, Blue (RGB)
  • Binary Mask: PNG / JPG, single-channel binary (0 = background, 255 = anomaly region; binarized at threshold 127)
  • Text: anomaly-type string in the form <texture>+<anomaly_type> (one of metal_surface+MT_Blowhole, metal_surface+MT_Break, metal_surface+MT_Crack, metal_surface+MT_Fray, metal_surface+MT_Uneven)

Input Parameters:

  • Image: Two-Dimensional (2D)
  • Mask: Two-Dimensional (2D)
  • Text: One-Dimensional (1D)

Other Properties Related to Input: Input clean image and paired mask must have the same dimensions; the model was trained on defect-centred crops at variable model input sizes (256 / 512 / 1024 / 1536 px) and inference is run with the same crop geometry, so there is no fixed input resolution. anomaly_type must exactly match one of the five pairs trained for this UC2 checkpoint β€” passing an unsupported defect string is rejected by anomalygen/scripts/texture/generate.py against this checkpoint's recipe anomaly_types (the checkpoint carries a geometry stamp and refuses a recipe that differs from the one it trained under). The mask should ideally cover a contiguous defect region that resembles the trained mask distribution; the optional Automatic Mask Placement (AMP) tool, or the default Agentic Mask Generation (AMG) stage, can constrain placement to legal ROIs.

Output(s)

Output Type(s): Image

Output Format(s): PNG; Red, Green, Blue (RGB)

Output Parameters: Two-Dimensional (2D)

Other Properties Related to Output: RGB synthetic anomaly image at the native resolution of the input clean image. Anomaly content is generated inside the user-supplied mask region; the inpainted patch is pasted back onto the clean reference image so non-masked pixels remain identical to the input. Optionally Poisson blending can be enabled. Generation metadata (per-sample guidance, crop_ratio, seed, etc.) is written to texture_ft_generation_result.csv alongside the images; samples rejected by the default content-safety guardrail are listed in guardrail_blocked.csv.

Our AI models are designed and/or optimized to run on NVIDIA GPU-accelerated systems. By leveraging NVIDIA's hardware (e.g. GPU cores) and software frameworks (e.g., CUDA libraries), the model achieves faster training and inference times compared to CPU-only solutions.

Software Integration:

Runtime Engine(s):

  • PyTorch (via the Cosmos Framework / Cosmos3-Nano pipeline)
  • Cosmos AnomalyGen scripts (anomalygen/scripts/texture/generate.py, torchrun-based)
  • Downstream dataset export via pseudo-labeling (anomalygen/scripts/texture/pseudo_label.py; COCO instance annotations + classification layout)

Supported Hardware Microarchitecture Compatibility:

  • NVIDIA Ampere A100
  • NVIDIA Hopper H100
  • NVIDIA RTX PRO 6000 Blackwell

Supported Operating System(s):

  • Linux

The integration of foundation and fine-tuned models into AI systems requires additional testing using use-case-specific data to ensure safe and effective deployment. Following the V-model methodology, iterative testing and validation at both unit and system levels are essential to mitigate risks, meet technical and functional requirements, and ensure compliance with safety and ethical standards before deployment.

Model Version(s):

v1.2.0 β€” uc2-metal-surface-nano-iter14000 (trained 15,000 iterations, best checkpoint at 14,000; released artifacts are the model/iter_000014000.pt checkpoint file containing finetuned modules only, its iter_000014000.pt.sha256 digest sidecar, and its exp_texture_ft_magnetic_tile.yaml training recipe).

Training, Testing, and Evaluation Datasets:

Dataset Overview

  • Total Number of Datasets: 1 (Magnetic Tile Defect dataset β€” abin24/Magnetic-tile-defect-datasets, fetched automatically by anomalygen.scripts.datasets.prepare_magnetic_tile_defect)
  • Total Size: 25 anomaly RGB images + 25 paired binary masks + 20 clean reference tile images (clean images are used at inference time, not as supervised training targets)
  • Dataset partition: 100% Training (few-shot fine-tuning regime; no held-out validation or test split)

Public Datasets

  • abin24/Magnetic-tile-defect-datasets β€” https://github.com/abin24/Magnetic-tile-defect-datasets β€” source of magnetic-tile surface RGB images and per-defect binary masks. A curated 5-images-per-defect subset (plus 20 clean tiles) is selected by anomalygen.scripts.datasets.prepare_magnetic_tile_defect. Publicly available on GitHub; license per upstream repository.

Training Dataset:

Data Modality:

  • Image

Training Data Size:

  • Less than a Million Images (25 anomaly images + 25 paired masks; 5 per defect type Γ— 5 types)

** Data Collection Method by dataset

  • Hybrid: Manually-Collected, Automatic/Sensors

** Labeling Method by dataset

  • Manually-Labeled

Properties: 25 RGB images of magnetic tile surfaces spanning five defect categories β€” MT_Blowhole (5 images), MT_Break (5 images), MT_Crack (5 images), MT_Fray (5 images), MT_Uneven (5 images) β€” each paired with a per-defect binary mask. Clean (no-defect) tile images from the same source are used as inpainting references at inference time. No personal data, copyrighted human-subject content, or human subjects are present in the dataset.

Testing Dataset:

Not Applicable β€” the model is qualitatively evaluated via the ValidationKPI validation callback (inpainted samples logged every N training steps) rather than against a held-out test split.

Evaluation Dataset:

Not Applicable β€” no held-out evaluation dataset. The model is evaluated qualitatively during training via the ValidationKPI validation callback, plus FID, nearest-neighbour metrics (nn_score, mnn_score) and anomaly-quality metrics (completeness, precision, boundary_iou) logged at each validation step. See the Explainability subcard for performance metric details.

Inference:

Acceleration Engine: PyTorch (native, BF16). Multi-GPU data-parallel inference is supported via torchrun --nproc_per_node=<N> with the anomalygen_texture_ft experiment.

Test Hardware:

  • NVIDIA Ampere A100
  • NVIDIA Hopper H100
  • NVIDIA RTX PRO 6000 Blackwell

Ethical Considerations:

NVIDIA believes Trustworthy AI is a shared responsibility and we have established policies and practices to enable development for a wide array of AI applications. Developers should work with their internal model team to ensure this model meets requirements for the relevant industry and use case and addresses unforeseen product misuse.

Please make sure you have proper rights and permissions for all input image and video content.

Users are responsible for model inputs and outputs. Users are responsible for ensuring safe integration of this model, including implementing guardrails as well as other safety mechanisms, prior to deployment.

For more detailed information on ethical considerations for this model, please see the Bias, Explainability, Privacy, and Safety & Security subcards.

Please report model quality, risk, security vulnerabilities or NVIDIA AI Concerns here.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for nvidia/Cosmos-AnomalyGen-Metal-Nano

Finetuned
(43)
this model

Paper for nvidia/Cosmos-AnomalyGen-Metal-Nano