[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79FVW0YDXSW52W92141HG93":3,"skill-same:01M79FVW0YDXSW52W92141HG93":154},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M79FVW0YDXSW52W92141HG93","tao-train-image-classification",null,"PyTorch-based TAO image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment. Use when training, evaluating, distilling, quantizing, exporting, or running inference for a TAO image-classification (PyT) model. Trigger phrases include \"train image classifier\", \"TAO classification\", \"ResNet\u002FEfficientNet\u002FFAN backbone classifier\", \"classification-pyt\".","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tao-train-image-classification\ndescription: PyTorch-based TAO image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.)\n  with distillation and quantization for deployment. Use when training, evaluating, distilling, quantizing, exporting, or\n  running inference for a TAO image-classification (PyT) model. Trigger phrases include \"train image classifier\",\n  \"TAO classification\", \"ResNet\u002FEfficientNet\u002FFAN backbone classifier\", \"classification-pyt\".\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- image\n- classification\n---\n\n# Classification PyT\n\nPyTorch image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment.\n\nSet model.backbone.pretrained_backbone_path for backbone weights or train.pretrained_model_path for full model.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-image-classification.md` first. 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. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only; otherwise default to `auto`. When `automl_policy: auto`, `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:** image_classification\n- **Formats:** classification_pyt\n- **Monitoring metric:** val_acc_1\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| distill | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| distill | dataset.classes_file | train_datasets | classes.txt | No |\n| distill | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.classes_file | eval_dataset | classes.txt | No |\n| evaluate | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| export | dataset.root_dir | train_datasets |  | No |\n| inference | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| inference | dataset.classes_file | eval_dataset | classes.txt | No |\n| inference | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| quantize | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| quantize | dataset.classes_file | train_datasets | classes.txt | No |\n| quantize | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| quantize | dataset.quant_calibration_dataset.images_dir | calibration_dataset | images_train.tar.gz | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| train | dataset.classes_file | train_datasets | classes.txt | No |\n| train | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | 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\"\n```\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 2,\n    \"train.validation_interval\": 2,\n    \"train.checkpoint_interval\": 2,\n    \"train.num_gpus\": 1,\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n}\n```\n\n**export (mandatory data sources):**\n```python\n{\n    \"export.input_height\": 224,\n    \"export.input_width\": 224,\n    \"dataset.root_dir\": f\"{S3_TRAIN}\",\n}\n```\n\n**gen_trt_engine:**\n```python\n{\n    \"gen_trt_engine.tensorrt.data_type\": \"fp16\",\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"dataset.batch_size\": 1,\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_EVAL}\u002Fclasses.txt\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_test.tar.gz\",\n}\n```\n\n**distill (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_EVAL}\u002Fclasses.txt\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_test.tar.gz\",\n}\n```\n\n**quantize (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.quant_calibration_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n}\n```\n## Eval Dataset\n\nOptional. Validation images are provided as a separate tar alongside training images.\n\n## Important Parameters\n\n- **dataset.num_classes**: Number of classes. Default 20. Must match the number of subdirectories in your image tarballs.\n- **model.backbone.type**: Default fan_small_12_p4_hybrid. Supported backbones and their head in_channels (from model_params_mapping.py): FAN: fan_tiny, fan_small_12_p4_hybrid, fan_base_16_p4_hybrid, fan_large_16_p4_hybrid. GCViT: gcvit_tiny through gcvit_large. FasterViT: fastervit_0 through fastervit_6. ViT\u002FEVA\u002FDINO: vit_large_patch14_dinov2, eva02_large_patch14, etc. SigLIP-CLIPA: ViT-H-14-SigLIP-CLIPA-224, etc. Some backbones require non-default input resolution (384, 512, 768).\n- **dataset.classes_file**: Path to classes.txt listing class names.\n- **train.optim.lr**: Learning rate. Default 6e-5.\n- **dataset.img_size**: Input image size. Default 224.\n- **dataset.batch_size**: Per-GPU batch size. Default 8.\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| `train.num_nodes` | Number of nodes | 1 |\n\n- Multi-GPU strategy: `ddp_find_unused_parameters_true`\n- No fsdp support\n\n**Multi-node env vars** (set by orchestrator): `WORLD_SIZE`, `NODE_RANK`, `MASTER_ADDR`, `MASTER_PORT`, `NUM_GPU_PER_NODE`.\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 2 GPU(s). 16GB+ (V100 or A100) VRAM per GPU. Classification is generally lightweight. Most backbones at 224x224 fit well on 16GB GPUs with batch_size=8.\n\n## Error Patterns\n\n**CUDA out of memory**: Reduce batch_size or use a smaller backbone.\n\n**num_classes mismatch**: Ensure dataset.num_classes matches the actual class directories in your image tarballs and classes.txt.\n\n**Empty class directory**: Every class in classes.txt must have at least one image in the corresponding subdirectory.\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 `classification_pyt.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| distill | `distill.pretrained_teacher_model_path` | `parent_model` | model file inferred from the parent job results folder |\n| distill | `results_dir` | `output_dir` | current job results directory |\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 | `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| gen_trt_engine | `gen_trt_engine.onnx_file` | `parent_model` | model file inferred from the parent job results folder |\n| gen_trt_engine | `gen_trt_engine.trt_engine` | `create_engine_file` | output TensorRT engine path |\n| gen_trt_engine | `results_dir` | `output_dir` | current job results directory |\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| quantize | `quantize.model_path` | `parent_model` | model file inferred from the parent job results folder |\n| quantize | `results_dir` | `output_dir` | current job results directory |\n| train | `model.backbone.pretrained_backbone_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\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-image-classification](references\u002Ftao-deploy-image-classification.md) — Classification PyT deploy workflow for TensorRT engine generation, TensorRT evaluation, and TensorRT inference using TAO Deploy.\n","# Classification PyT\n\nPyTorch image classification. Supports a wide range of backbones (FAN, EfficientNet, ResNet, etc.) with distillation and quantization for deployment.\n\nSet model.backbone.pretrained_backbone_path for backbone weights or train.pretrained_model_path for full model.\n\nFor TAO Deploy TensorRT actions (`gen_trt_engine`, TensorRT `evaluate`, and TensorRT `inference`), read `references\u002Ftao-deploy-image-classification.md` first. 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. Treat phrases like \"turn off AutoML\", \"disable AutoML\", \"no HPO\", or \"plain training\" as `automl_policy: off` for this run only; otherwise default to `auto`. When `automl_policy: auto`, `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:** image_classification\n- **Formats:** classification_pyt\n- **Monitoring metric:** val_acc_1\n\n### Per-Action Dataset Requirements\n\n| Action | Spec Key | Source | Files | List? |\n|---|---|---|---|---|\n| distill | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| distill | dataset.classes_file | train_datasets | classes.txt | No |\n| distill | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| evaluate | dataset.classes_file | eval_dataset | classes.txt | No |\n| evaluate | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| export | dataset.root_dir | train_datasets |  | No |\n| inference | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| inference | dataset.classes_file | eval_dataset | classes.txt | No |\n| inference | dataset.test_dataset.images_dir | inference_dataset | images_test.tar.gz | No |\n| quantize | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| quantize | dataset.classes_file | train_datasets | classes.txt | No |\n| quantize | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | No |\n| quantize | dataset.quant_calibration_dataset.images_dir | calibration_dataset | images_train.tar.gz | No |\n| train | dataset.train_dataset.images_dir | train_datasets | images_train.tar.gz | No |\n| train | dataset.classes_file | train_datasets | classes.txt | No |\n| train | dataset.val_dataset.images_dir | eval_dataset | images_val.tar.gz | 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\"\n```\n\n**train (mandatory data sources):**\n```python\n{\n    \"train.num_epochs\": 2,\n    \"train.validation_interval\": 2,\n    \"train.checkpoint_interval\": 2,\n    \"train.num_gpus\": 1,\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n}\n```\n\n**export (mandatory data sources):**\n```python\n{\n    \"export.input_height\": 224,\n    \"export.input_width\": 224,\n    \"dataset.root_dir\": f\"{S3_TRAIN}\",\n}\n```\n\n**gen_trt_engine:**\n```python\n{\n    \"gen_trt_engine.tensorrt.data_type\": \"fp16\",\n}\n```\n\n**inference (mandatory data sources):**\n```python\n{\n    \"dataset.batch_size\": 1,\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_EVAL}\u002Fclasses.txt\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_test.tar.gz\",\n}\n```\n\n**distill (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n}\n```\n\n**evaluate (mandatory data sources):**\n```python\n{\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_EVAL}\u002Fclasses.txt\",\n    \"dataset.test_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_test.tar.gz\",\n}\n```\n\n**quantize (mandatory data sources):**\n```python\n{\n    \"dataset.train_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n    \"dataset.classes_file\": f\"{S3_TRAIN}\u002Fclasses.txt\",\n    \"dataset.val_dataset.images_dir\": f\"{S3_EVAL}\u002Fimages_val.tar.gz\",\n    \"dataset.quant_calibration_dataset.images_dir\": f\"{S3_TRAIN}\u002Fimages_train.tar.gz\",\n}\n```\n## Eval Dataset\n\nOptional. Validation images are provided as a separate tar alongside training images.\n\n## Important Parameters\n\n- **dataset.num_classes**: Number of classes. Default 20. Must match the number of subdirectories in your image tarballs.\n- **model.backbone.type**: Default fan_small_12_p4_hybrid. Supported backbones and their head in_channels (from model_params_mapping.py): FAN: fan_tiny, fan_small_12_p4_hybrid, fan_base_16_p4_hybrid, fan_large_16_p4_hybrid. GCViT: gcvit_tiny through gcvit_large. FasterViT: fastervit_0 through fastervit_6. ViT\u002FEVA\u002FDINO: vit_large_patch14_dinov2, eva02_large_patch14, etc. SigLIP-CLIPA: ViT-H-14-SigLIP-CLIPA-224, etc. Some backbones require non-default input resolution (384, 512, 768).\n- **dataset.classes_file**: Path to classes.txt listing class names.\n- **train.optim.lr**: Learning rate. Default 6e-5.\n- **dataset.img_size**: Input image size. Default 224.\n- **dataset.batch_size**: Per-GPU batch size. Default 8.\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| `train.num_nodes` | Number of nodes | 1 |\n\n- Multi-GPU strategy: `ddp_find_unused_parameters_true`\n- No fsdp support\n\n**Multi-node env vars** (set by orchestrator): `WORLD_SIZE`, `NODE_RANK`, `MASTER_ADDR`, `MASTER_PORT`, `NUM_GPU_PER_NODE`.\n\n## Hardware\n\nMinimum 1 GPU(s), recommended 2 GPU(s). 16GB+ (V100 or A100) VRAM per GPU. Classification is generally lightweight. Most backbones at 224x224 fit well on 16GB GPUs with batch_size=8.\n\n## Error Patterns\n\n**CUDA out of memory**: Reduce batch_size or use a smaller backbone.\n\n**num_classes mismatch**: Ensure dataset.num_classes matches the actual class directories in your image tarballs and classes.txt.\n\n**Empty class directory**: Every class in classes.txt must have at least one image in the corresponding subdirectory.\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 `classification_pyt.config.json`:\n\n| Action | Spec Field | Inference Function | Meaning |\n|---|---|---|---|\n| distill | `distill.pretrained_teacher_model_path` | `parent_model` | model file inferred from the parent job results folder |\n| distill | `results_dir` | `output_dir` | current job results directory |\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 | `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| gen_trt_engine | `gen_trt_engine.onnx_file` | `parent_model` | model file inferred from the parent job results folder |\n| gen_trt_engine | `gen_trt_engine.trt_engine` | `create_engine_file` | output TensorRT engine path |\n| gen_trt_engine | `results_dir` | `output_dir` | current job results directory |\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| quantize | `quantize.model_path` | `parent_model` | model file inferred from the parent job results folder |\n| quantize | `results_dir` | `output_dir` | current job results directory |\n| train | `model.backbone.pretrained_backbone_path` | `ptm_if_no_resume_model` | PTM when no resume checkpoint exists |\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-image-classification](references\u002Ftao-deploy-image-classification.md) — Classification PyT deploy workflow for TensorRT engine generation, TensorRT evaluation, and TensorRT inference using TAO Deploy.\n",{"name":5,"tags":24,"license":15,"metadata":27,"description":7,"allowed-tools":30,"compatibility":31},[25,26],"image","classification",{"author":28,"version":29},"NVIDIA Corporation","0.1.0","Read Bash","Requires docker + nvidia-container-toolkit.","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","skills\u002Fnvidia\u002Ftao-train-image-classification","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill tao-train-image-classification",{"tool":44,"command":45},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill tao-train-image-classification",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill tao-train-image-classification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002FSKILL.md",true,[52,58,62,66,70,74,78,82,86,90,94,98,101,104,108,112,116,120,124,128,132,136,140,144,148],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"BENCHMARK.md","REFERENCE","参考文档",4459,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002FBENCHMARK.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"evals\u002Fevals.json",806,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fevals\u002Fevals.json",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fskill_info.yaml",2071,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fskill_info.yaml",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fspec_template_deploy_evaluate.yaml",184,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_deploy_evaluate.yaml",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fspec_template_deploy_gen_trt_engine.yaml",217,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_deploy_gen_trt_engine.yaml",{"path":75,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fspec_template_deploy_inference.yaml",152,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_deploy_inference.yaml",{"path":79,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fspec_template_distill.yaml",3012,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_distill.yaml",{"path":83,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fspec_template_evaluate.yaml",3185,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_evaluate.yaml",{"path":87,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fspec_template_export.yaml",3279,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_export.yaml",{"path":91,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fspec_template_gen_trt_engine.yaml",3407,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_gen_trt_engine.yaml",{"path":95,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fspec_template_inference.yaml",3186,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_inference.yaml",{"path":99,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":80,"sourceHtmlUrl":100},"references\u002Fspec_template_quantize.yaml","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_quantize.yaml",{"path":102,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":80,"sourceHtmlUrl":103},"references\u002Fspec_template_train.yaml","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Fspec_template_train.yaml",{"path":105,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Ftao-deploy-image-classification.md",5107,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Ftao-deploy-image-classification.md",{"path":109,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Ftao-deploy-image-classification.skill_info.yaml",2082,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Freferences\u002Ftao-deploy-image-classification.skill_info.yaml",{"path":113,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":114,"sourceHtmlUrl":115},"schemas\u002Fdistill.schema.json",63416,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fdistill.schema.json",{"path":117,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":118,"sourceHtmlUrl":119},"schemas\u002Fevaluate.schema.json",66556,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fevaluate.schema.json",{"path":121,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":122,"sourceHtmlUrl":123},"schemas\u002Fexport.schema.json",67511,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fexport.schema.json",{"path":125,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":126,"sourceHtmlUrl":127},"schemas\u002Fgen_trt_engine.schema.json",71484,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fgen_trt_engine.schema.json",{"path":129,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":130,"sourceHtmlUrl":131},"schemas\u002Finference.schema.json",66558,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Finference.schema.json",{"path":133,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":134,"sourceHtmlUrl":135},"schemas\u002Fmanifest.json",29104,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fmanifest.json",{"path":137,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":138,"sourceHtmlUrl":139},"schemas\u002Fquantize.schema.json",63418,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Fquantize.schema.json",{"path":141,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":142,"sourceHtmlUrl":143},"schemas\u002Ftrain.schema.json",63412,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fschemas\u002Ftrain.schema.json",{"path":145,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":146,"sourceHtmlUrl":147},"skill-card.md",3850,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fskill-card.md",{"path":149,"resourceType":150,"resourceTypeDesc":151,"sizeBytes":152,"sourceHtmlUrl":153},"skill.oms.sig","OTHER","其他",9901,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Ftao-train-image-classification\u002Fskill.oms.sig",[155,162,169,176,183,190],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]