AGENT SKILL

pysot

Operate PySOT visual object tracking workflows: configs, model/tracker APIs, demo/test inference, training data preparation, and toolkit evaluation.

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

01 前言 Front Matter

name
pysot
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate PySOT visual object tracking workflows: configs, model/tracker APIs, demo/test inference, training data preparation, and toolkit evaluation.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

PySOT repo skill

Use this skill when the task is about PySOT, SiamRPN/SiamRPN++/DaSiamRPN/SiamMask visual object tracking, PySOT experiment YAMLs, PySOT tracker snapshots, training data preparation, or the PySOT evaluation toolkit.

This skill is an operating router. It gives safe preflights and routes to focused sub-skills; it does not claim that full tracking, training, or evaluation can run without the user's snapshots, datasets, video/display setup, and compatible PyTorch/CUDA environment.

First checks

  1. Identify the user's task family: config/model, tracking inference, training/data, or evaluation/results.

  2. Confirm whether the task is a safe preflight or a full native workflow. Safe preflights may run without model/data assets; full workflows usually need external files and sometimes CUDA.

  3. If the environment itself is uncertain, read references/environment-and-install.md and run:

    python scripts/check_env.py --repo-root <pysot-checkout>
    

    Add a config/model construction smoke only when the user has a config:

    python scripts/check_env.py --repo-root <pysot-checkout> --config <config.yaml> --model-smoke
    
  4. If the current repository version may differ from this skill, read references/repo-provenance.md before acting.

Route map

Configs, models, trackers, and model zoo

Read sub-skills/configuration-models/SKILL.md when the user asks to:

  • edit or validate an experiment YAML;
  • choose a SiamRPN/SiamMask/long-term/AlexNet/ResNet/MobileNetV2 config;
  • understand cfg, META_ARC, BACKBONE, RPN, MASK, REFINE, TRACK, or ANCHOR keys;
  • instantiate ModelBuilder() or build_tracker(model) safely;
  • diagnose config merge, unsupported component type, anchor-count, output-size, or snapshot/config mismatch errors.

Tracking inference, demo, and benchmark test commands

Read sub-skills/tracking-inference/SKILL.md when the user asks to:

  • run a webcam/video/image-folder demo;
  • validate config/snapshot/video/dataset inputs before tracking;
  • use tracker.init(img, bbox) and tracker.track(img) programmatically;
  • construct a tools/test.py benchmark run and understand result output paths;
  • debug OpenCV GUI/video, missing snapshot, CUDA, bbox/mask output, or tracker API failures.

Training data and distributed training setup

Read sub-skills/training-data/SKILL.md when the user asks to:

  • prepare VID, YouTube-BB, DET, or COCO training data;
  • understand crop image names, train.json, SubDataset, or TrkDataset expectations;
  • validate training config/data paths;
  • construct distributed tools/train.py commands, pretrained backbone paths, resume settings, logs, or snapshots;
  • debug size not match!, missing annotations/images, distributed launch, or training CUDA issues.

Evaluation toolkit, result layouts, metrics, and hp-search

Read sub-skills/evaluation-toolkit/SKILL.md when the user asks to:

  • validate tracker result trees before eval.py;
  • evaluate OTB, UAV, NFS, LaSOT, VOT short-term, or VOT2018-LT results;
  • choose OPE, accuracy/robustness, EAO, or F1 metric flows;
  • diagnose tracker_prefix, missing tracker directories, JSON sidecars, region extension, multiprocessing, or result-file naming;
  • plan or interpret hp_search.py outputs.

Cross-cutting guidance

  • PySOT's setup.py declares the toolkit distribution and Cython region extension. The main pysot package is normally imported from a checkout/PYTHONPATH or equivalent editable-development context.
  • If toolkit.utils.region fails to import, build the extension with a compatible Cython version; references/troubleshooting.md gives the recovery path.
  • Do not run full training, benchmark testing, hyperparameter search, dataset crop generation, or metric evaluation as default smoke tests. Use the bundled validators first.
  • Keep config/model edits and command construction tied to explicit user-provided paths. Do not silently download model snapshots or benchmark/training datasets.
  • Treat CUDA as required for unmodified source training/test/hp-search paths that call .cuda() directly. CPU-safe model construction does not prove those paths are runnable.

Root references and helper

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