界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

tracker-development

tracker-development

【开发与工程】Implement, adapt, and debug PyTracking tracker packages and parameter modules safely, including BaseTracker contracts, registration, output dictionaries, multi-object/segmentation conventions, and runtime checkpoint handoff.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: tracker-development description: "Implement, adapt, and debug PyTracking tracker packages and parameter modules safely, including BaseTracker contracts, registration, output dictionaries, multi-object/segmentation conventions, and runtime checkpoint handoff." disable-model-invocation: true metadata: disco-role: operating license: GPL 3.0

Tracker Development

Use this sub-skill when a task asks to create, adapt, review, or debug a PyTracking tracker implementation or parameter file. This includes tracker package layout, BaseTracker.initialize() / track() contracts, get_tracker_class() registration, TrackerParams and feature parameters, output dictionaries, segmentation or multi-object conventions, and connecting an LTR-trained checkpoint to a runtime parameter module.

Do not use this sub-skill to run evaluations, videos, webcams, or experiments; route command execution to tracking-evaluation. Route full training, training-setting edits, and checkpoint creation to ltr-training. Route saved-result analysis, plots, VOS metrics, VOT packaging, and benchmark submission packaging to analysis-and-packaging.

Fast routing

Standard development loop

  1. Choose a Python module-safe tracker package name such as mytracker; this becomes both the runtime tracker name and the folder under pytracking/tracker/ and pytracking/parameter/.
  2. Implement a class inheriting BaseTracker and provide initialize(self, image, info) -> dict and track(self, image, info=None) -> dict.
  3. Register the class in the tracker package __init__.py with get_tracker_class().
  4. Create at least one parameter module with parameters() returning a TrackerParams object.
  5. Connect checkpoints through runtime parameters only after the selected .pth or .pth.tar file is present under the user's configured network path, or after the user explicitly chooses an absolute path.
  6. Validate the layout statically before trying imports or tracker runs.
python skills/disco/pytracking/sub-skills/tracker-development/scripts/validate_tracker_layout.py \
  --repo-root /path/to/pytracking-checkout \
  --tracker-name mytracker \
  --param-name default

Guardrails

  • Keep runtime tracker output dictionaries compatible with the PyTracking evaluator; do not invent result keys that replace target_bbox.
  • Do not run dataset/video/webcam/experiment commands from this sub-skill. After static layout and parameter review, hand execution to tracking-evaluation.
  • Do not start or modify LTR training here. If the needed network does not exist yet, hand the training task to ltr-training.
  • Do not analyze benchmark results or package submissions here; use analysis-and-packaging.
  • Do not make future agents depend on hidden inspection environments or generated review artifacts. Use only the user's checkout and the bundled helper script.
我的收藏