[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71Q19FH51S5102J6TH8K2P3":3,"skill-same:01M71Q19FH51S5102J6TH8K2P3":152},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":14,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":57,"install":58,"resources":71},"01M71Q19FH51S5102J6TH8K2P3","tao-train-optical-inspection",null,"Optical Inspection for defect detection using Siamese networks. Compares image pairs to detect manufacturing defects, anomalies, or quality issues. Use when training, evaluating, exporting, or running inference for a TAO Optical Inspection model on AOI \u002F quality-control data. Trigger phrases include \"train optical inspection\", \"AOI defect detection\", \"Siamese defect classifier\", \"PCB \u002F manufacturing inspection\".","pattanation\u002FNorvik","pattanation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235419268?v=4","01M71M5THHYYB15ME8R2E4FCZG","Patta","01M71M5TJM1NDM992M8PDKYR2K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"tao train optical inspection","tao","train","inspection","for","NVIDIA","running","pcb","data","read","manufacturing","classifier","defect","quality-control","Bash","image","when","issues","training","model","2026-11-10 13:02:02",false,"---\nname: tao-train-optical-inspection\ndescription: Optical Inspection for defect detection using Siamese networks. Compares image pairs to detect manufacturing\n  defects, anomalies, or quality issues. Use when training, evaluating, exporting, or running inference for a TAO Optical\n  Inspection model on AOI \u002F quality-control data. Trigger phrases include \"train optical inspection\", \"AOI defect\n  detection\", \"Siamese defect classifier\", \"PCB \u002F manufacturing inspection\".\nlicense: Apache-2.0\ncompatibility: Requires docker + nvidia-container-toolkit.\nmetadata:\n  version: \"0.1.0\"\n  author: NVIDIA Corporation\nallowed-tools: Read Bash\ntags:\n- defect\n- detection\n---\n\n# Optical Inspection\n\nOptical inspection for defect detection using Siamese networks. Compares image pairs to detect manufacturing defects, anomalies, or quality issues.\n\nSet train.pretrained_model_path for pretrained Siamese weights.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-optical-inspection.md` first. The parent PyT container does not expose `optical_inspection gen_trt_engine`; TensorRT engine generation is deploy-only. Deploy spec templates live in this skill's `references\u002F` folder with the `spec_template_deploy_*.yaml` prefix.\n\n## Dataclass Schemas\n\nGenerated TAO Core schemas are packaged in `schemas\u002F\u003Caction>.schema.json`, with `schemas\u002Fmanifest.json` listing available actions. Each generated schema also emits `references\u002Fspec_template_\u003Caction>.yaml` from the schema top-level `default` field. AutoML enablement is declared at the model layer in `references\u002Fskill_info.yaml` via `automl_enabled`. Runnable AutoML still requires `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` to exist and parse. Use the packaged train schema for `automl_default_parameters`, `automl_disabled_parameters`, defaults, min\u002Fmax bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect `~\u002Ftao-core` at runtime; maintainers regenerate schemas\u002Ftemplates before packaging the skill bank.\n\n## Train Action Policy\n\nThis model is AutoML-enabled at the model layer. Before handling any train-stage request, read `references\u002Fskill_info.yaml` and resolve the run override from either an explicit `automl_policy` value or the user's workflow request. Use `automl_policy: on` by default and only expose `on` \u002F `off` in new launch prompts. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only. When `automl_policy: on`, `automl_enabled: true`, and both `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` are packaged, route the train action through `tao-skill-bank:tao-run-automl` by default with this model's `skill_dir`. Preserve workflow\u002Fapplication overrides for datasets, specs, output directories, GPU\u002Fplatform settings, parent checkpoints, and `automl_policy`. Use direct model training only when `automl_policy: off` or the packaged train schema\u002Ftemplate is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.\n\nNon-train actions such as `evaluate`, `inference`, `export`, and deploy flows stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Training Requirements\n\n- **Dataset type:** optical_inspection\n- **Formats:** default\n- **Monitoring metric:** val_acc\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| evaluate | dataset.test_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| evaluate | dataset.test_dataset.csv_path | eval_dataset | dataset.csv | No |\n| inference | dataset.infer_dataset.images_dir | inference_dataset | images.tar.gz | No |\n| inference | dataset.infer_dataset.csv_path | inference_dataset | dataset.csv | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images.tar.gz | No |\n| train | dataset.train_dataset.csv_path | train_datasets | dataset.csv | No |\n| train | dataset.validation_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| train | dataset.validation_dataset.csv_path | eval_dataset | dataset.csv | No |\n| train | dataset.test_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| train | dataset.test_dataset.csv_path | eval_dataset | dataset.csv | No |\n\n### Typical Spec Overrides\n\nData source overrides are **mandatory for every action** — the agent MUST construct data source paths from the Per-Action Dataset Requirements table above and include them in `spec_overrides`.\n\n```python\nS3_TRAIN = \"s3:\u002F\u002Fbucket\u002Fdata\u002Ftrain\"\nS3_EVAL = \"s3:\u002F\u002Fbucket\u002Fdata\u002Feval\"\nS3_INFERENCE = \"s3:\u002F\u002Fbucket\u002Fdata\u002Finference\"\n```\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 30,\n    \"train.checkpoint_interval\": 10,\n    \"train.validation_interval\": 10,\n    \"train.num_gpus\": 1,\n    \"dataset.batch_size\": 8,\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages.tar.gz\",\n    \"dataset.train_dataset.csv_path\": f\"{S3_TRAIN}\u002Fdataset.csv\",\n    \"dataset.validation_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.validation_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.test_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"evaluate.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.test_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n}\n```\n\nUse the workflow's checkpoint resolver for downstream actions instead of guessing a filename. For Optical Inspection smoke runs, AutoML may produce `model_epoch_000_step_00006.pth`; resume can then produce `model_epoch_001_step_00012.pth`. Best-checkpoint actions should use the AutoML best child job's selected checkpoint, epoch-specific actions should pass the exact epoch\u002Fstep checkpoint requested, and only explicit \"latest\" requests should resolve to the latest checkpoint.\n\n**export:**\n```python\n{\n    \"export.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"export.onnx_file\": \"\u002Fresults\u002Foptical_inspection.onnx\",\n    \"export.input_width\": 128,\n    \"export.input_height\": 512,\n    \"export.batch_size\": 1,\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"inference.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"dataset.infer_dataset.images_dir\": f\"{S3_INFERENCE}\u002Fimages.tar.gz\",\n    \"dataset.infer_dataset.csv_path\": f\"{S3_INFERENCE}\u002Fdataset.csv\",\n}\n```\n\n## Dataset Convert\n\nDataset conversion is optional for Optical Inspection. If the dataset is already in TAO-ready Optical Inspection format, start directly from the `images.tar.gz` plus `dataset.csv` splits and run `train`, `evaluate`, `inference`, and downstream checkpoint\u002Fexport\u002Fdeploy actions on that converted data.\n\nThe PyT container exposes `optical_inspection dataset_convert`, but this model skill does not package a `dataset_convert` action\u002Ftemplate. The converter expects the raw Factory PCB layout (`root_dataset_dir`, train\u002Fval\u002Fall PCB directories, `golden_csv_dir`, `project_name`, and `bot_top`). The S3 validation bucket currently contains preconverted Optical Inspection `images.tar.gz` plus `dataset.csv` splits, not the raw PCB\u002Fgolden CSV source. Do not synthesize a fake PCB dataset. In model validation reports, mark dataset conversion as `not run: preconverted dataset provided` rather than failed or blocked when only converted data is available.\n\nWhen using the preconverted S3 validation tarballs locally, verify the extracted directory before writing specs. The tarballs may unpack an `images\u002F` wrapper directory; point `dataset.*.images_dir` at the inner directory that contains `golden\u002F` and the board\u002Fimage folders referenced by `dataset.csv`, for example `...\u002F\u003Csplit>\u002Fimages\u002Fimages`, not the outer wrapper.\n\n## Eval Dataset\n\nOptional. Eval dataset uses same format (images + CSV).\n\n## Important Parameters\n\n- **model.model_type**: Siamese variant. Options include Siamese, Siamese_3.\n- **model.model_backbone**: Default custom.\n- **model.embedding_vectors**: Number of embedding dimensions. Default 5.\n- **train.optim.lr**: Learning rate. Default 5e-4.\n- **dataset.batch_size**: Training batch size. Must be greater than 1; use `2` or higher for minimal smoke runs.\n- **dataset.num_input**: Number of input images per comparison.\n- **dataset.input_map**: Mapping of input channels \u002F image pairs.\n\n## Multi-GPU \u002F Multi-Node\n\n**Launch method:** Lightning-managed (single `python` process, Lightning spawns workers).\n\n| Spec Key | Description | Default |\n|----------|-------------|---------|\n| `train.num_gpus` | Number of GPUs | 1 |\n| `train.gpu_ids` | GPU device indices | [0] |\n\n- Strategy: `auto` (Lightning picks best strategy automatically)\n- No explicit `num_nodes` or `distributed_strategy` config — single-node only\n- Lightweight Siamese network, single GPU typically sufficient\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 1 GPU(s). 8GB+ VRAM per GPU. Siamese networks for inspection are lightweight. Single GPU sufficient.\n\n## Error Patterns\n\n**CSV format error**: Ensure dataset.csv has the correct column format for image pair paths and labels.\n\n**Extracted image root mismatch**: If train, evaluate, or inference cannot find paths from `dataset.csv`, inspect the extracted `images.tar.gz` tree. The TAO-ready root must contain `golden\u002F` plus the board folders referenced in the CSV. For validation S3 tarballs this can be one level below the extraction target, such as `images\u002Fimages`.\n\n**Training batch size assertion**: The Optical Inspection dataloader rejects\n`dataset.batch_size: 1` for train. Keep the template default of 8 for normal\nruns, or set `dataset.batch_size: 2` for minimal AutoML smoke validation.\n\n**PyTorch checkpoint load failure on downstream actions**: For checkpoints\nproduced by the same trusted TAO train\u002FAutoML workflow, set\n`TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1` for evaluate, inference, export, and\nresume jobs if the current PyTorch default blocks loading the full checkpoint.\nDo not use this env var for untrusted checkpoints.\n\n## Spec Param \u002F Parent Model Inference\n\nModel-specific inference mappings belong in this MD file, not in `config.json`. Generated runners should read this section and apply the mappings with SDK helpers before `create_job()`. This mirrors the old microservices `infer_params.py` flow.\n\nInference mappings from TAO Core `optical_inspection.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| evaluate | `encryption_key` | `key` | encryption key |\n| evaluate | `evaluate.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| evaluate | `results_dir` | `output_dir` | current job results directory |\n| export | `encryption_key` | `key` | encryption key |\n| export | `export.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| export | `export.onnx_file` | `create_onnx_file` | output ONNX path |\n| export | `results_dir` | `output_dir` | current job results directory |\n| inference | `encryption_key` | `key` | encryption key |\n| inference | `inference.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `inference.trt_engine` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `results_dir` | `output_dir` | current job results directory |\n| train | `encryption_key` | `key` | encryption key |\n| train | `results_dir` | `output_dir` | current job results directory |\n| train | `train.pretrained_model_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `train.resume_training_checkpoint_path` | `resume_model` | model file inferred from the current job results folder |\n\nFor `parent_model` or `parent_model_folder`, pass the upstream train\u002Fexport\u002FAutoML child job id as `parent_job_id`. The SDK lists the parent result folder, filters checkpoint artifacts, and returns the selected model file or folder. Do not add these mappings back to `config.json` and do not patch generated runner scripts to guess checkpoint paths.\n\n## Deployment\n\n- [tao-deploy-optical-inspection](references\u002Ftao-deploy-optical-inspection.md)\n","# Optical Inspection\n\nOptical inspection for defect detection using Siamese networks. Compares image pairs to detect manufacturing defects, anomalies, or quality issues.\n\nSet train.pretrained_model_path for pretrained Siamese weights.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-optical-inspection.md` first. The parent PyT container does not expose `optical_inspection gen_trt_engine`; TensorRT engine generation is deploy-only. Deploy spec templates live in this skill's `references\u002F` folder with the `spec_template_deploy_*.yaml` prefix.\n\n## Dataclass Schemas\n\nGenerated TAO Core schemas are packaged in `schemas\u002F\u003Caction>.schema.json`, with `schemas\u002Fmanifest.json` listing available actions. Each generated schema also emits `references\u002Fspec_template_\u003Caction>.yaml` from the schema top-level `default` field. AutoML enablement is declared at the model layer in `references\u002Fskill_info.yaml` via `automl_enabled`. Runnable AutoML still requires `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` to exist and parse. Use the packaged train schema for `automl_default_parameters`, `automl_disabled_parameters`, defaults, min\u002Fmax bounds, enums, option weights, math conditions, dependencies, and popular parameters. Do not expect `~\u002Ftao-core` at runtime; maintainers regenerate schemas\u002Ftemplates before packaging the skill bank.\n\n## Train Action Policy\n\nThis model is AutoML-enabled at the model layer. Before handling any train-stage request, read `references\u002Fskill_info.yaml` and resolve the run override from either an explicit `automl_policy` value or the user's workflow request. Use `automl_policy: on` by default and only expose `on` \u002F `off` in new launch prompts. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only. When `automl_policy: on`, `automl_enabled: true`, and both `schemas\u002Ftrain.schema.json` and `references\u002Fspec_template_train.yaml` are packaged, route the train action through `tao-skill-bank:tao-run-automl` by default with this model's `skill_dir`. Preserve workflow\u002Fapplication overrides for datasets, specs, output directories, GPU\u002Fplatform settings, parent checkpoints, and `automl_policy`. Use direct model training only when `automl_policy: off` or the packaged train schema\u002Ftemplate is missing; in the missing-schema case, report that AutoML is enabled but not runnable for this model until schemas are generated.\n\nNon-train actions such as `evaluate`, `inference`, `export`, and deploy flows stay in this model skill. The per-run `automl_policy` override does not change model metadata.\n\n## Training Requirements\n\n- **Dataset type:** optical_inspection\n- **Formats:** default\n- **Monitoring metric:** val_acc\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| evaluate | dataset.test_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| evaluate | dataset.test_dataset.csv_path | eval_dataset | dataset.csv | No |\n| inference | dataset.infer_dataset.images_dir | inference_dataset | images.tar.gz | No |\n| inference | dataset.infer_dataset.csv_path | inference_dataset | dataset.csv | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images.tar.gz | No |\n| train | dataset.train_dataset.csv_path | train_datasets | dataset.csv | No |\n| train | dataset.validation_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| train | dataset.validation_dataset.csv_path | eval_dataset | dataset.csv | No |\n| train | dataset.test_dataset.images_dir | eval_dataset | images.tar.gz | No |\n| train | dataset.test_dataset.csv_path | eval_dataset | dataset.csv | No |\n\n### Typical Spec Overrides\n\nData source overrides are **mandatory for every action** — the agent MUST construct data source paths from the Per-Action Dataset Requirements table above and include them in `spec_overrides`.\n\n```python\nS3_TRAIN = \"s3:\u002F\u002Fbucket\u002Fdata\u002Ftrain\"\nS3_EVAL = \"s3:\u002F\u002Fbucket\u002Fdata\u002Feval\"\nS3_INFERENCE = \"s3:\u002F\u002Fbucket\u002Fdata\u002Finference\"\n```\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 30,\n    \"train.checkpoint_interval\": 10,\n    \"train.validation_interval\": 10,\n    \"train.num_gpus\": 1,\n    \"dataset.batch_size\": 8,\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages.tar.gz\",\n    \"dataset.train_dataset.csv_path\": f\"{S3_TRAIN}\u002Fdataset.csv\",\n    \"dataset.validation_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.validation_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.test_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"evaluate.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages.tar.gz\",\n    \"dataset.test_dataset.csv_path\": f\"{S3_EVAL}\u002Fdataset.csv\",\n}\n```\n\nUse the workflow's checkpoint resolver for downstream actions instead of guessing a filename. For Optical Inspection smoke runs, AutoML may produce `model_epoch_000_step_00006.pth`; resume can then produce `model_epoch_001_step_00012.pth`. Best-checkpoint actions should use the AutoML best child job's selected checkpoint, epoch-specific actions should pass the exact epoch\u002Fstep checkpoint requested, and only explicit \"latest\" requests should resolve to the latest checkpoint.\n\n**export:**\n```python\n{\n    \"export.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"export.onnx_file\": \"\u002Fresults\u002Foptical_inspection.onnx\",\n    \"export.input_width\": 128,\n    \"export.input_height\": 512,\n    \"export.batch_size\": 1,\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"inference.checkpoint\": \"\u003Cselected train\u002FAutoML checkpoint>\",\n    \"dataset.infer_dataset.images_dir\": f\"{S3_INFERENCE}\u002Fimages.tar.gz\",\n    \"dataset.infer_dataset.csv_path\": f\"{S3_INFERENCE}\u002Fdataset.csv\",\n}\n```\n\n## Dataset Convert\n\nDataset conversion is optional for Optical Inspection. If the dataset is already in TAO-ready Optical Inspection format, start directly from the `images.tar.gz` plus `dataset.csv` splits and run `train`, `evaluate`, `inference`, and downstream checkpoint\u002Fexport\u002Fdeploy actions on that converted data.\n\nThe PyT container exposes `optical_inspection dataset_convert`, but this model skill does not package a `dataset_convert` action\u002Ftemplate. The converter expects the raw Factory PCB layout (`root_dataset_dir`, train\u002Fval\u002Fall PCB directories, `golden_csv_dir`, `project_name`, and `bot_top`). The S3 validation bucket currently contains preconverted Optical Inspection `images.tar.gz` plus `dataset.csv` splits, not the raw PCB\u002Fgolden CSV source. Do not synthesize a fake PCB dataset. In model validation reports, mark dataset conversion as `not run: preconverted dataset provided` rather than failed or blocked when only converted data is available.\n\nWhen using the preconverted S3 validation tarballs locally, verify the extracted directory before writing specs. The tarballs may unpack an `images\u002F` wrapper directory; point `dataset.*.images_dir` at the inner directory that contains `golden\u002F` and the board\u002Fimage folders referenced by `dataset.csv`, for example `...\u002F\u003Csplit>\u002Fimages\u002Fimages`, not the outer wrapper.\n\n## Eval Dataset\n\nOptional. Eval dataset uses same format (images + CSV).\n\n## Important Parameters\n\n- **model.model_type**: Siamese variant. Options include Siamese, Siamese_3.\n- **model.model_backbone**: Default custom.\n- **model.embedding_vectors**: Number of embedding dimensions. Default 5.\n- **train.optim.lr**: Learning rate. Default 5e-4.\n- **dataset.batch_size**: Training batch size. Must be greater than 1; use `2` or higher for minimal smoke runs.\n- **dataset.num_input**: Number of input images per comparison.\n- **dataset.input_map**: Mapping of input channels \u002F image pairs.\n\n## Multi-GPU \u002F Multi-Node\n\n**Launch method:** Lightning-managed (single `python` process, Lightning spawns workers).\n\n| Spec Key | Description | Default |\n|----------|-------------|---------|\n| `train.num_gpus` | Number of GPUs | 1 |\n| `train.gpu_ids` | GPU device indices | [0] |\n\n- Strategy: `auto` (Lightning picks best strategy automatically)\n- No explicit `num_nodes` or `distributed_strategy` config — single-node only\n- Lightweight Siamese network, single GPU typically sufficient\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 1 GPU(s). 8GB+ VRAM per GPU. Siamese networks for inspection are lightweight. Single GPU sufficient.\n\n## Error Patterns\n\n**CSV format error**: Ensure dataset.csv has the correct column format for image pair paths and labels.\n\n**Extracted image root mismatch**: If train, evaluate, or inference cannot find paths from `dataset.csv`, inspect the extracted `images.tar.gz` tree. The TAO-ready root must contain `golden\u002F` plus the board folders referenced in the CSV. For validation S3 tarballs this can be one level below the extraction target, such as `images\u002Fimages`.\n\n**Training batch size assertion**: The Optical Inspection dataloader rejects\n`dataset.batch_size: 1` for train. Keep the template default of 8 for normal\nruns, or set `dataset.batch_size: 2` for minimal AutoML smoke validation.\n\n**PyTorch checkpoint load failure on downstream actions**: For checkpoints\nproduced by the same trusted TAO train\u002FAutoML workflow, set\n`TORCH_FORCE_NO_WEIGHTS_ONLY_LOAD=1` for evaluate, inference, export, and\nresume jobs if the current PyTorch default blocks loading the full checkpoint.\nDo not use this env var for untrusted checkpoints.\n\n## Spec Param \u002F Parent Model Inference\n\nModel-specific inference mappings belong in this MD file, not in `config.json`. Generated runners should read this section and apply the mappings with SDK helpers before `create_job()`. This mirrors the old microservices `infer_params.py` flow.\n\nInference mappings from TAO Core `optical_inspection.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| evaluate | `encryption_key` | `key` | encryption key |\n| evaluate | `evaluate.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| evaluate | `results_dir` | `output_dir` | current job results directory |\n| export | `encryption_key` | `key` | encryption key |\n| export | `export.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| export | `export.onnx_file` | `create_onnx_file` | output ONNX path |\n| export | `results_dir` | `output_dir` | current job results directory |\n| inference | `encryption_key` | `key` | encryption key |\n| inference | `inference.checkpoint` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `inference.trt_engine` | `parent_model` | model file inferred from the parent job results folder |\n| inference | `results_dir` | `output_dir` | current job results directory |\n| train | `encryption_key` | `key` | encryption key |\n| train | `results_dir` | `output_dir` | current job results directory |\n| train | `train.pretrained_model_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\n| train | `train.resume_training_checkpoint_path` | `resume_model` | model file inferred from the current job results folder |\n\nFor `parent_model` or `parent_model_folder`, pass the upstream train\u002Fexport\u002FAutoML child job id as `parent_job_id`. The SDK lists the parent result folder, filters checkpoint artifacts, and returns the selected model file or folder. Do not add these mappings back to `config.json` and do not patch generated runner scripts to guess checkpoint paths.\n\n## Deployment\n\n- [tao-deploy-optical-inspection](references\u002Ftao-deploy-optical-inspection.md)\n",{"name":5,"tags":44,"license":15,"metadata":46,"description":7,"allowed-tools":49,"compatibility":50},[31,45],"detection",{"author":47,"version":48},"NVIDIA Corporation","0.1.0","Read Bash","Requires docker + nvidia-container-toolkit.","claude\u002Finstall-gsd-build-foQdV","d86cd127f527124b5fd0fd0bc679a4d79b7d01d7",".agents\u002Fskills\u002Ftao-train-optical-inspection","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik","https:\u002F\u002Fnorvik-orpin.vercel.app","https:\u002F\u002Fgithub.com\u002Fpattanation","2026-07-17 11:17:04",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add pattanation\u002FNorvik --skill tao-train-optical-inspection",{"tool":64,"command":65},"bunx","bunx skills add pattanation\u002FNorvik --skill tao-train-optical-inspection",{"tool":67,"command":68},"pnpm","pnpm dlx skills add pattanation\u002FNorvik --skill tao-train-optical-inspection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002FSKILL.md",true,[72,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138,142,146],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"BENCHMARK.md","REFERENCE","参考文档",4131,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002FBENCHMARK.md",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fevals.json",839,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fevals\u002Fevals.json",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fskill_info.yaml",4920,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fskill_info.yaml",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fspec_template_deploy_experiment.yaml",1561,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_deploy_experiment.yaml",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fspec_template_evaluate.yaml",2061,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_evaluate.yaml",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fspec_template_export.yaml",2149,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_export.yaml",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fspec_template_gen_trt_engine.yaml",2336,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_gen_trt_engine.yaml",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fspec_template_inference.yaml",2062,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_inference.yaml",{"path":107,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fspec_template_train.yaml",1936,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Fspec_template_train.yaml",{"path":111,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Ftao-deploy-optical-inspection.md",5640,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Ftao-deploy-optical-inspection.md",{"path":115,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Ftao-deploy-optical-inspection.skill_info.yaml",3563,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Freferences\u002Ftao-deploy-optical-inspection.skill_info.yaml",{"path":119,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":120,"sourceHtmlUrl":121},"schemas\u002Fevaluate.schema.json",33951,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Fevaluate.schema.json",{"path":123,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":124,"sourceHtmlUrl":125},"schemas\u002Fexport.schema.json",34031,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Fexport.schema.json",{"path":127,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":128,"sourceHtmlUrl":129},"schemas\u002Fgen_trt_engine.schema.json",39525,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Fgen_trt_engine.schema.json",{"path":131,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":132,"sourceHtmlUrl":133},"schemas\u002Finference.schema.json",33952,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Finference.schema.json",{"path":135,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":136,"sourceHtmlUrl":137},"schemas\u002Fmanifest.json",15880,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Fmanifest.json",{"path":139,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":140,"sourceHtmlUrl":141},"schemas\u002Ftrain.schema.json",31433,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fschemas\u002Ftrain.schema.json",{"path":143,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":144,"sourceHtmlUrl":145},"skill-card.md",3788,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fskill-card.md",{"path":147,"resourceType":148,"resourceTypeDesc":149,"sizeBytes":150,"sourceHtmlUrl":151},"skill.oms.sig","OTHER","其他",8369,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Ftao-train-optical-inspection\u002Fskill.oms.sig",[153,161,168,175,199,224],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":160},"01M73Z1NPMJ667E0DSPBS9FH0B","jetson-set-target","Switch the active Jetson target-platform pointer to an existing profile YAML. Use before customize\u002Fbuild\u002Fflash to change target; not for authoring profiles — use jetson-init-target instead.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-set-target\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":160},"01M73YC29YWGCW521P7B0NM3HQ","earth2studio-data-fetch","Fetch weather\u002Fclimate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-data-fetch\u002FSKILL.md",[],[],{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":160},"01M73YBNHMHFDFP83MAVGQQ92N","earth2studio-create-datasource","Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-create-datasource\u002FSKILL.md",[],[],{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":179,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":39},"01M71QDV4DM8T19HEHWATEF1K4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[183,184,185,186,187,23,188,189,190,191,192,193,194,195,196,197,198],"webapp","testing","webapp testing","local","screenshots","applications","browser","ui","behavior","web","playwright","with","frontend","debugging","toolkit","logs",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":203,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":39},"01M71QDH2GGMXGA9105C9W1N7B","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[207,192,208,209,210,211,212,213,214,215,216,217,23,218,219,195,220,221,222,223],"web artifacts builder","artifacts","artifacts builder","builder","multi","state","routing","state management","react","single-file","css","Tailwind","ui components","single","use","file","components",{"skillNo":225,"name":226,"nameZh":6,"description":227,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":228,"licenseFileUrl":229,"sourceHtmlUrl":230,"categories":231,"keywords":232,"publishedAt":39},"01M71QD9T2XC3EWMQNN9ACNWQ1","vueuse-functions","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","MIT","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[233,234,235,236,237,238,239,240,241,242,243,244,245,246],"vueuse","vueuse functions","functions","composables","project","nuxt","apply","github","concise","build","https","features","vue","js"]