AGENT SKILL

pytorch-wildlife

Use Pytorch-Wildlife for conservation AI workflows involving camera-trap and overhead image detection, wildlife classification, bioacoustic audio pipelines, result post-processing, video demos, and legacy fine-tuning data preparation.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
pytorch-wildlife
license
MIT
metadata
{ "disco-role": "operating" }
description
Use Pytorch-Wildlife for conservation AI workflows involving camera-trap and overhead image detection, wildlife classification, bioacoustic audio pipelines, result post-processing, video demos, and legacy fine-tuning data preparation.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Pytorch-Wildlife

Use this skill when a task names Pytorch-Wildlife, PytorchWildlife, MegaDetector, HerdNet, OWL, Deepfaune, passive-acoustic wildlife monitoring, or the companion camera-trap fine-tuning modules. It is a router for the versioned public package and its documented companion workflows; it is not a replacement for model weights, datasets, or a project-specific experiment plan.

Start safely

Install the public distribution in an isolated Python environment. The source metadata for this snapshot requires Python >=3.10:

python -m pip install PytorchWildlife

The package has a broad dependency surface, including PyTorch/TorchVision/ TorchAudio, supervision==0.23.0, gradio>=6.15.1,<7, Ultralytics, YOLOv5, timm, Lightning, and audio packages for bioacoustics. For a CUDA install, select a PyTorch wheel compatible with the host driver before installing the package. Do not use a default pretrained constructor merely to test imports: model constructors may download weights.

Verify the installation without model construction:

python -c "import PytorchWildlife; print(PytorchWildlife.__version__)"

If the import fails in a modern environment around legacy yolov5 and pkg_resources, read the cross-cutting troubleshooting reference before changing package versions.

Route by user intent

  • Image detection and localization — read detection for MegaDetector V5/V6, HerdNet, OWL, devices, thresholds, batches, local weights, and detection results.
  • Species or image classification — read classification for pretrained/custom classifiers, Deepfaune, batch inputs, and detector-crop classification.
  • Audio and passive acoustics — read bioacoustics for YAML configs, annotated windows, mel spectrograms, checkpoints, training/inference flags, and CSVs.
  • Data, output, video, or UI — read data-and-postprocessing for image-folder datasets, transforms, JSON/visual outputs, safe separation, video callbacks, and Gradio/Docker caveats.
  • User dataset adaptation or fine-tuning — read fine-tuning for the legacy classification and detection companions, split design, YAML/CSV/YOLO preflight, and weight handoff. Do not start training by default.

For a multi-stage request, route each stage to its owner rather than copying all model and output details into one plan. A common image pipeline is: detection → classification (only animal crops) → data-and-postprocessing. An audio pipeline is: bioacoustics preparation → training or checkpoint inference → CSV review.

Cross-cutting operating rules

  1. Decide whether the task permits network access, model-weight downloads, GPU execution, external credentials, and writes before running a command.
  2. Prefer explicit local weights= and explicit device= values for reproducible or offline work. CPU is a valid structural fallback, but a CPU check does not prove CUDA throughput or model behavior.
  3. Validate image/audio paths, label/class mappings, config ranges, and output containment before expensive inference or training.
  4. Preserve source files. Post-processing helpers write copies/outputs; keep generated outputs outside recursively scanned input directories.
  5. Treat the companion fine-tuning directories as legacy/experimental and keep their environment and checkpoints separate from core package inference.
  6. Do not launch Gradio, pull Docker images, download external datasets, or run long training as an implicit “smoke test.”

Public package map

  • PytorchWildlife.models.detection: image/localization wrappers and model families.
  • PytorchWildlife.models.classification: pretrained and custom image classifiers.
  • PytorchWildlife.models.bioacoustics: spectrogram classifiers and checkpoint loading.
  • PytorchWildlife.data: image-folder datasets, transforms, and bioacoustic data/config/window/spectrogram helpers.
  • PytorchWildlife.utils: video processing and detection/classification output serializers.

Use installation and deployment for prerequisites, CUDA/codec/container choices; API boundaries for verified cross-module contracts; and troubleshooting for import, dependency, weight, path, and backend failures. Read repository provenance before deciding whether this skill matches a checkout or whether a refresh is needed.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp 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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert 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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match 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).

★ 351