[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M793REBNTGY6TT5AW8S9BWE5":3,"skill-same:01M793REBNTGY6TT5AW8S9BWE5":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":45},"01M793REBNTGY6TT5AW8S9BWE5","classification",null,"Route and execute PytorchWildlife wildlife image-classification workflows, including pretrained, custom-weight, batch, and detector-crop inference.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"MIT","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: classification\ndescription: \"Route and execute PytorchWildlife wildlife image-classification\n  workflows, including pretrained, custom-weight, batch, and detector-crop\n  inference.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Classification\n\nUse this sub-skill when the request is to classify wildlife images or crops,\nchoose a PytorchWildlife classifier, load a local classifier checkpoint, run\nsingle\u002Fbatch inference, or attach species labels to detector animals. The\npackage target is **PytorchWildlife 1.3.0** on Python **>=3.10**.\n\n## Route first\n\n- Choose a classifier from [the model overview](references\u002Fmodel-overview.md)\n  before constructing it. Check the model's class count, label vocabulary,\n  language (Deepfaune), input size, and checkpoint format.\n- Use `single_image_classification` for one RGB image and\n  `batch_image_classification` for an image directory or detector results.\n  The exact signatures and result-shape caveats are in the [API reference](references\u002Fapi-reference.md).\n- For a detector-to-classifier request, let the detection workflow construct\n  and run the detector, then pass its results to the crop workflow described\n  in [pipelines](references\u002Fpipelines.md). Do not configure detectors here;\n  route that part to `..\u002Fdetection\u002FSKILL.md`.\n- Route JSON\u002Ftimelapse\u002Fimage\u002Fvideo serialization to\n  `..\u002Fdata-and-postprocessing\u002FSKILL.md`; route training or fine-tuning to\n  `..\u002Ffine-tuning\u002FSKILL.md`.\n\n## Model selection\n\n- `AI4GAmazonRainforest`: PlainResNet, 36 classes, `version=\"v1\"` or\n  `version=\"v2\"`; v2 is the constructor default.\n- `AI4GOpossum`: binary Opossum\u002Fnon-opossum sigmoid classifier.\n- `AI4GSnapshotSerengeti`: 10-class PlainResNet classifier (nine named\n  animals plus `other`).\n- `DeepfauneClassifier`: TIMM\u002FDINOv2 classifier; select `class_name_lang`\n  explicitly when labels must be French, English, Italian, or German.\n- `DFNE`: the Deepfaune-New-England TIMM classifier with its fixed English\n  vocabulary.\n- `CustomWeights`: PlainResNet-50 checkpoint loader. Supply complete,\n  zero-based `class_names` matching the checkpoint output dimension; inspect a\n  local checkpoint with the bundled [diagnostic helper](scripts\u002Finspect_classifier_checkpoint.py)\n  before constructing it.\n\n`pretrained=True` may download model weights. Construction and inference do\nnot imply that weights are cached. Prefer an explicit local `weights` path in\noffline or reproducible runs; never start a download merely to diagnose an\nAPI or shape problem.\n\n## Safe operating sequence\n\n1. Normalize the input: use a readable RGB path or an HWC RGB array for single\n   inference; use a directory of supported image extensions for folder\n   inference. Use `Classification_Inference_Transform` unless a model-specific\n   transform is required.\n2. Instantiate the selected class with an explicit `device` (`\"cpu\"` or a\n   verified CUDA device), local `weights` when available, and the exact model\n   parameters in the reference tables. Do not use pretrained constructors in\n   a no-network check.\n3. Call the single or batch method with exactly one source: `data_path` **or**\n   `det_results`. Preserve the returned order; the DataLoader does not shuffle,\n   but filesystem traversal order should not be mistaken for sorted order.\n   TIMM models additionally expose `batch_size` and `num_workers`.\n4. Validate each result's `img_id`, `prediction`, `class_id`, and\n   `confidence`. Treat `all_confidences` as a full class distribution only for\n   models that emit it and only with the batch caveat documented in the API\n   reference.\n5. If crops came from detections, retain a parallel `(img_id, detection index,\n   bbox)` mapping while building or consuming crops. Do not align labels by a\n   single global counter across all detections: `DetectionCrops` filters to\n   animal class `0` and returns only those crops.\n6. If anything fails, use [troubleshooting](references\u002Ftroubleshooting.md) and\n   run the read-only checkpoint helper before changing model architecture or\n   class names.\n\n## Input and output contract\n\n`ClassificationImageFolder` yields `(tensor, image_path)` and recursively\naccepts common raster extensions. `DetectionCrops` yields `(tensor, crop_path)`\nand retains only detections whose `class_id == animal_cls_id` (default `0`).\nThe classifier result is a dictionary for single inference and a list of such\ndictionaries for batch inference. Most multiclass implementations emit:\n\n```text\n{\"img_id\", \"prediction\", \"class_id\", \"confidence\", \"all_confidences\"}\n```\n\n`AI4GOpossum` emits the first four fields only. See the API reference before\nfeeding results to a serializer, and route serialization to data-and-\npostprocessing rather than inventing a new output schema here.\n\n## Boundaries and limitations\n\n- This skill does not select thresholds or construct detector models.\n- It does not download weights, launch a service, run training, or claim a\n  CUDA forward pass unless that pass was separately verified.\n- The package eagerly imports many model families. A legacy `yolov5`\n  compatibility failure can prevent importing classification even when the\n  classifier code itself is usable; apply the actionable recovery in\n  troubleshooting without publishing environment-specific shims.\n- The source's `id_strip` is Python string `strip` behavior, not a guaranteed\n  path-prefix removal. Normalize identifiers explicitly before relying on\n  exact joins.\n\n## Bundled references\n\n- [Model overview](references\u002Fmodel-overview.md)\n- [API reference](references\u002Fapi-reference.md)\n- [Detector-crop and batch pipelines](references\u002Fpipelines.md)\n- [Troubleshooting](references\u002Ftroubleshooting.md)\n- [Checkpoint\u002Fresult diagnostic](scripts\u002Finspect_classifier_checkpoint.py)\n","# Classification\n\nUse this sub-skill when the request is to classify wildlife images or crops,\nchoose a PytorchWildlife classifier, load a local classifier checkpoint, run\nsingle\u002Fbatch inference, or attach species labels to detector animals. The\npackage target is **PytorchWildlife 1.3.0** on Python **>=3.10**.\n\n## Route first\n\n- Choose a classifier from [the model overview](references\u002Fmodel-overview.md)\n  before constructing it. Check the model's class count, label vocabulary,\n  language (Deepfaune), input size, and checkpoint format.\n- Use `single_image_classification` for one RGB image and\n  `batch_image_classification` for an image directory or detector results.\n  The exact signatures and result-shape caveats are in the [API reference](references\u002Fapi-reference.md).\n- For a detector-to-classifier request, let the detection workflow construct\n  and run the detector, then pass its results to the crop workflow described\n  in [pipelines](references\u002Fpipelines.md). Do not configure detectors here;\n  route that part to `..\u002Fdetection\u002FSKILL.md`.\n- Route JSON\u002Ftimelapse\u002Fimage\u002Fvideo serialization to\n  `..\u002Fdata-and-postprocessing\u002FSKILL.md`; route training or fine-tuning to\n  `..\u002Ffine-tuning\u002FSKILL.md`.\n\n## Model selection\n\n- `AI4GAmazonRainforest`: PlainResNet, 36 classes, `version=\"v1\"` or\n  `version=\"v2\"`; v2 is the constructor default.\n- `AI4GOpossum`: binary Opossum\u002Fnon-opossum sigmoid classifier.\n- `AI4GSnapshotSerengeti`: 10-class PlainResNet classifier (nine named\n  animals plus `other`).\n- `DeepfauneClassifier`: TIMM\u002FDINOv2 classifier; select `class_name_lang`\n  explicitly when labels must be French, English, Italian, or German.\n- `DFNE`: the Deepfaune-New-England TIMM classifier with its fixed English\n  vocabulary.\n- `CustomWeights`: PlainResNet-50 checkpoint loader. Supply complete,\n  zero-based `class_names` matching the checkpoint output dimension; inspect a\n  local checkpoint with the bundled [diagnostic helper](scripts\u002Finspect_classifier_checkpoint.py)\n  before constructing it.\n\n`pretrained=True` may download model weights. Construction and inference do\nnot imply that weights are cached. Prefer an explicit local `weights` path in\noffline or reproducible runs; never start a download merely to diagnose an\nAPI or shape problem.\n\n## Safe operating sequence\n\n1. Normalize the input: use a readable RGB path or an HWC RGB array for single\n   inference; use a directory of supported image extensions for folder\n   inference. Use `Classification_Inference_Transform` unless a model-specific\n   transform is required.\n2. Instantiate the selected class with an explicit `device` (`\"cpu\"` or a\n   verified CUDA device), local `weights` when available, and the exact model\n   parameters in the reference tables. Do not use pretrained constructors in\n   a no-network check.\n3. Call the single or batch method with exactly one source: `data_path` **or**\n   `det_results`. Preserve the returned order; the DataLoader does not shuffle,\n   but filesystem traversal order should not be mistaken for sorted order.\n   TIMM models additionally expose `batch_size` and `num_workers`.\n4. Validate each result's `img_id`, `prediction`, `class_id`, and\n   `confidence`. Treat `all_confidences` as a full class distribution only for\n   models that emit it and only with the batch caveat documented in the API\n   reference.\n5. If crops came from detections, retain a parallel `(img_id, detection index,\n   bbox)` mapping while building or consuming crops. Do not align labels by a\n   single global counter across all detections: `DetectionCrops` filters to\n   animal class `0` and returns only those crops.\n6. If anything fails, use [troubleshooting](references\u002Ftroubleshooting.md) and\n   run the read-only checkpoint helper before changing model architecture or\n   class names.\n\n## Input and output contract\n\n`ClassificationImageFolder` yields `(tensor, image_path)` and recursively\naccepts common raster extensions. `DetectionCrops` yields `(tensor, crop_path)`\nand retains only detections whose `class_id == animal_cls_id` (default `0`).\nThe classifier result is a dictionary for single inference and a list of such\ndictionaries for batch inference. Most multiclass implementations emit:\n\n```text\n{\"img_id\", \"prediction\", \"class_id\", \"confidence\", \"all_confidences\"}\n```\n\n`AI4GOpossum` emits the first four fields only. See the API reference before\nfeeding results to a serializer, and route serialization to data-and-\npostprocessing rather than inventing a new output schema here.\n\n## Boundaries and limitations\n\n- This skill does not select thresholds or construct detector models.\n- It does not download weights, launch a service, run training, or claim a\n  CUDA forward pass unless that pass was separately verified.\n- The package eagerly imports many model families. A legacy `yolov5`\n  compatibility failure can prevent importing classification even when the\n  classifier code itself is usable; apply the actionable recovery in\n  troubleshooting without publishing environment-specific shims.\n- The source's `id_strip` is Python string `strip` behavior, not a guaranteed\n  path-prefix removal. Normalize identifiers explicitly before relying on\n  exact joins.\n\n## Bundled references\n\n- [Model overview](references\u002Fmodel-overview.md)\n- [API reference](references\u002Fapi-reference.md)\n- [Detector-crop and batch pipelines](references\u002Fpipelines.md)\n- [Troubleshooting](references\u002Ftroubleshooting.md)\n- [Checkpoint\u002Fresult diagnostic](scripts\u002Finspect_classifier_checkpoint.py)\n",{"name":5,"license":14,"metadata":23,"description":7,"disable-model-invocation":25},{"disco-role":24},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":25},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill classification",{"tool":39,"command":40},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill classification",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill classification","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002FSKILL.md",[46,52,56,60,64],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fapi-reference.md","REFERENCE","参考文档",6182,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002Freferences\u002Fapi-reference.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fmodel-overview.md",5100,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002Freferences\u002Fmodel-overview.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fpipelines.md",6257,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002Freferences\u002Fpipelines.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Ftroubleshooting.md",5739,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002Freferences\u002Ftroubleshooting.md",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Finspect_classifier_checkpoint.py","SCRIPT","脚本",3869,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpytorch-wildlife\u002Fsub-skills\u002Fclassification\u002Fscripts\u002Finspect_classifier_checkpoint.py",[71,79,86,93,100,107],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":75,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]