Image-to-Image
Cosmos
PyTorch
nvidia
cosmos-predict2
diffusion
inpainting
anomaly-generation
synthetic-data-generation
pcb-inspection
few-shot
fine-tuned
Instructions to use nvidia/Cosmos-AnomalyGen-PCB-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Cosmos
How to use nvidia/Cosmos-AnomalyGen-PCB-2B with Cosmos:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Initial release — iter_14000 checkpoint + ag_config
Browse files- ag_config.yaml +50 -0
- iter_000014000.pt +3 -0
ag_config.yaml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DDP config template (default, use with predict2_anomaly_gen_ddp_{2b,14b}).
|
| 2 |
+
# Placeholders in <angle-brackets> are filled by scripts/generate_config.py.
|
| 3 |
+
# Keep sections minimal — the experiment provides defaults for everything else.
|
| 4 |
+
job:
|
| 5 |
+
project: anomaly_gen
|
| 6 |
+
group: UC1_data_byTexture_rot90aug_newForTest
|
| 7 |
+
name: UC1_data_byTexture_rot90aug_newForTest_training_FP32_lr0.02_bs=2_2B_512x512
|
| 8 |
+
optimizer:
|
| 9 |
+
lr: 0.02
|
| 10 |
+
checkpoint:
|
| 11 |
+
save_iter: 2000
|
| 12 |
+
trainer:
|
| 13 |
+
max_iter: 28000
|
| 14 |
+
logging_iter: 10
|
| 15 |
+
validation_iter: 2000
|
| 16 |
+
run_validation: True
|
| 17 |
+
early_stop:
|
| 18 |
+
enabled: false
|
| 19 |
+
metric: nn
|
| 20 |
+
patience: 5
|
| 21 |
+
min_delta: 0
|
| 22 |
+
min_delta_mode: rel
|
| 23 |
+
dataloader_train:
|
| 24 |
+
batch_size: 2
|
| 25 |
+
dataset:
|
| 26 |
+
dataset_dir: /workspace/cosmos-anomalygen-predict2/datasets/CPTX_dryrun/Dataset/UC1_data_byTexture_rot90aug_newForTest
|
| 27 |
+
image_size:
|
| 28 |
+
- 512
|
| 29 |
+
- 512
|
| 30 |
+
anomaly_types: [[IC, bridge], [passive_component, excess_solder], [passive_component, missing]]
|
| 31 |
+
seed: 1
|
| 32 |
+
data_augprob: 0.5
|
| 33 |
+
aug_type: random_ratio_crop
|
| 34 |
+
ratio_range: [1.5, 8.0]
|
| 35 |
+
dataloader_val:
|
| 36 |
+
batch_size: 32
|
| 37 |
+
dataset:
|
| 38 |
+
input_data_path: ag_inference/validation_UC1_data_byTexture_rot90aug_newForTest/testcase.jsonl
|
| 39 |
+
model:
|
| 40 |
+
config:
|
| 41 |
+
ag_config:
|
| 42 |
+
ad_precision: float32
|
| 43 |
+
t5_model_name: checkpoints/google-t5/t5-large
|
| 44 |
+
anomaly_embedding:
|
| 45 |
+
anomaly_types: [[IC, bridge], [passive_component, excess_solder], [passive_component, missing]]
|
| 46 |
+
freeze: False
|
| 47 |
+
mask_encoder:
|
| 48 |
+
encoder_config:
|
| 49 |
+
init_cfg:
|
| 50 |
+
checkpoint: checkpoints/NVDINOV2/nv_dinov2_classification_model.ckpt
|
iter_000014000.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc824d3d2d25b7f27c6049587b08d7e54573ae882a80e63f222186228885cb89
|
| 3 |
+
size 11545964
|