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
- 参考文档references/configuration.md8.4 KB
- 参考文档references/model-api.md7.0 KB
- 参考文档references/model-zoo.md5.0 KB
- 参考文档references/troubleshooting.md8.3 KB
- 脚本scripts/validate_config.py14.9 KB
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, orBACKBONE.KWARGS.used_layersmeans. - A user gets
KeyError, missing-key, anchor-count,size not match!,ModelBuilder, orbuild_trackerfailures 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 siblingevaluation-toolkit. - Cross-cutting install/import/backend guidance belongs in the root PySOT troubleshooting reference; keep config/model-specific diagnosis here.
Operating workflow
-
Identify the user-supplied PySOT config path and the intended workflow: model choice, config edit, construction smoke, tracking run, training, or evaluation.
-
Read references/configuration.md for required YAML sections, common model families, safe edit rules, and anchor/output-size formulas.
-
Read references/model-api.md before writing code that imports
cfg,ModelBuilder, orbuild_tracker. -
Read references/model-zoo.md when selecting among model-zoo names or interpreting suffixes such as
_otb,_lt,_8gpu, and_16gpu. -
Run the bundled validator before any heavy workflow:
python scripts/validate_config.py --config path/to/config.yamlIf 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-modelThis is a CPU-safe construction smoke: it does not load a snapshot, open video, run inference, launch training, download assets, or evaluate benchmarks.
-
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
toolkitdistribution; importingpysotnormally 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
- references/configuration.md — config sections, model-family keys, edit workflow, anchor and output-size checks.
- references/model-api.md — verified
cfg,ModelBuilder, component maps, tracker dispatch, and safe construction pattern. - references/model-zoo.md — model-zoo name grammar, suffixes, benchmark columns, and selection guidance.
- references/troubleshooting.md — config/model failure modes and expected validator signals.
- scripts/validate_config.py — safe argparse validator for PySOT YAML configs and optional construction smoke.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).