AGENT SKILL

configuration-models

Inspect, edit, validate, and reason about PySOT YACS configs, model builders, tracker mappings, model-zoo naming, and safe model construction.

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

01 前言 Front Matter

name
configuration-models
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Inspect, edit, validate, and reason about PySOT YACS configs, model builders, tracker mappings, model-zoo naming, and safe model construction.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

PySOT configuration and model guidance

Use this sub-skill when the task is about PySOT experiment YAMLs, cfg keys, META_ARC, model-family selection, backbone/RPN/head/neck/tracker mappings, model-zoo names, or safe construction of ModelBuilder/build_tracker without running a benchmark or training job.

Read this sub-skill when

  • A user asks to edit, compare, or validate a PySOT config file.
  • A user asks which SiamRPN, SiamMask, long-term, AlexNet, ResNet, or MobileNetV2 variant fits a task.
  • A user asks what META_ARC, TRACK.TYPE, ANCHOR.*, RPN.KWARGS.anchor_num, TRAIN.OUTPUT_SIZE, or BACKBONE.KWARGS.used_layers means.
  • A user gets KeyError, missing-key, anchor-count, size not match!, ModelBuilder, or build_tracker failures while loading a config or building the model graph.
  • A user wants a safe preflight before using a snapshot, running a demo/test, or starting training.

Route elsewhere

  • Demo, video/webcam/image-folder tracking, snapshot loading, and benchmark test execution: read sibling tracking-inference.
  • Training datasets, crop/annotation formats, distributed launch, pretrained training backbones, and training data validation: read sibling training-data.
  • Benchmark dataset/result directory layouts, OPE/EAO/AR/F1 metrics, eval.py, and hyperparameter-search result interpretation: read sibling evaluation-toolkit.
  • Cross-cutting install/import/backend guidance belongs in the root PySOT troubleshooting reference; keep config/model-specific diagnosis here.

Operating workflow

  1. Identify the user-supplied PySOT config path and the intended workflow: model choice, config edit, construction smoke, tracking run, training, or evaluation.

  2. Read references/configuration.md for required YAML sections, common model families, safe edit rules, and anchor/output-size formulas.

  3. Read references/model-api.md before writing code that imports cfg, ModelBuilder, or build_tracker.

  4. Read references/model-zoo.md when selecting among model-zoo names or interpreting suffixes such as _otb, _lt, _8gpu, and _16gpu.

  5. Run the bundled validator before any heavy workflow:

    python scripts/validate_config.py --config path/to/config.yaml
    

    If the task specifically asks whether the model graph and tracker can be constructed, add:

    python scripts/validate_config.py --config path/to/config.yaml --instantiate-model
    

    This is a CPU-safe construction smoke: it does not load a snapshot, open video, run inference, launch training, download assets, or evaluate benchmarks.

  6. If validation fails, use references/troubleshooting.md. Fix config keys and rerun validation before routing to execution-oriented sub-skills.

Key safety rules

  • Pair a downloaded snapshot with the config family it was trained for; do not assume a checkpoint can be loaded under a different backbone, RPN, mask, or tracker setting.
  • Treat full benchmark/test/training runs as user-asset and often CUDA-dependent workflows. This sub-skill only validates config/model construction.
  • PySOT's package metadata installs the toolkit distribution; importing pysot normally depends on using the source checkout through PYTHONPATH or an editable-development setup.
  • Do not ask future users to reopen original repository docs or scripts for the information covered here; use the bundled references and helper script.

References and bundled 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