ReID Lifecycle
Use this sub-skill when the task involves ReID models: training a backbone, evaluating a checkpoint, comparing checkpoints across datasets, exporting deployment formats, generating embeddings, or inspecting registries.
Covers
boxmot train
boxmot eval-reid
boxmot compare-reid
boxmot export
BoxMOT.train(...), BoxMOT.eval_reid(...), BoxMOT.export(...), and BoxMOT.embed(...)
boxmot.ReIDModel
- training recipes, ReID dataset names, export formats, and checkpoint metadata
Does not cover
- live tracking or tracker output schemas unless the question is about ReID features used by a tracker
- benchmark
generate / eval / tune / research cache workflows
- native C++ build tooling except native ReID notes relevant to C++ trackers
Read first
- ReID lifecycle workflows
- Model and export overview
- Troubleshooting
- Registry summary script
Good prompts for this route
- "Train a ReID model on Market1501."
- "Evaluate this checkpoint and save mAP/rank metrics."
- "Compare these two checkpoints across Duke and Market1501."
- "Export an OSNet checkpoint to ONNX or TensorRT."
- "Generate embeddings for image crops and pass them to a tracker."
Typical workflow
- Determine whether the user needs training, single-checkpoint evaluation, multi-checkpoint comparison, export, or embedding inference.
- Verify the dataset root and expected split layout before suggesting heavy runs.
- Check checkpoint metadata when model architecture is ambiguous.
- Match
preprocess, image size, and inference feature overrides between train/eval/export as needed.
- Use the registry summary script for a safe inventory before recommending a model or format.
Entry points
boxmot train --model osnet_x0_25 --dataset market1501 --data-dir /data/reid --device cpu
boxmot eval-reid --weights runs/reid_train/exp/best.pt --dataset market1501 --data-dir /data/reid --device cpu
boxmot compare-reid --weights runs/reid_train/exp/best.pt --target market1501=/data/reid/Market-1501-v15.09.15
boxmot export --weights osnet_x0_25_msmt17.pt --include onnx
Python facade:
from boxmot import BoxMOT, ReIDModel
api = BoxMOT()
train_result = api.train(model="mobilenetv4", dataset="market1501", data_dir="/data/reid", epochs=5)
metrics = api.eval_reid(weights=train_result.weights_path, dataset="market1501", data_dir="/data/reid")
features = ReIDModel("osnet_x0_25_msmt17.pt", device="cpu").embed("crop.jpg")
Use scripts/reid_registry_summary.py when the user needs to know registered backbones, recipes, datasets, or export formats before launching a heavy job.
1---2name: reid-lifecycle3description: "Use BoxMOT for ReID training, evaluation, comparison, export,4 embedding extraction, and registry inspection."5metadata:6 source: https://skillmd.com/skills/vectorspacelab/reid-lifecycle7 disco-role: operating8disable-model-invocation: true9license: AGPL 3.010---1112# ReID Lifecycle1314Use this sub-skill when the task involves ReID models: training a backbone, evaluating a checkpoint, comparing checkpoints across datasets, exporting deployment formats, generating embeddings, or inspecting registries.1516## Covers1718- `boxmot train`19- `boxmot eval-reid`20- `boxmot compare-reid`21- `boxmot export`22- `BoxMOT.train(...)`, `BoxMOT.eval_reid(...)`, `BoxMOT.export(...)`, and `BoxMOT.embed(...)`23- `boxmot.ReIDModel`24- training recipes, ReID dataset names, export formats, and checkpoint metadata2526## Does not cover2728- live tracking or tracker output schemas unless the question is about ReID features used by a tracker29- benchmark `generate` / `eval` / `tune` / `research` cache workflows30- native C++ build tooling except native ReID notes relevant to C++ trackers3132## Read first3334- [ReID lifecycle workflows](references/reid-lifecycle.md)35- [Model and export overview](references/model-and-export-overview.md)36- [Troubleshooting](references/troubleshooting.md)37- [Registry summary script](scripts/reid_registry_summary.py)3839## Good prompts for this route4041- "Train a ReID model on Market1501."42- "Evaluate this checkpoint and save mAP/rank metrics."43- "Compare these two checkpoints across Duke and Market1501."44- "Export an OSNet checkpoint to ONNX or TensorRT."45- "Generate embeddings for image crops and pass them to a tracker."4647## Typical workflow48491. Determine whether the user needs training, single-checkpoint evaluation, multi-checkpoint comparison, export, or embedding inference.502. Verify the dataset root and expected split layout before suggesting heavy runs.513. Check checkpoint metadata when model architecture is ambiguous.524. Match `preprocess`, image size, and inference feature overrides between train/eval/export as needed.535. Use the registry summary script for a safe inventory before recommending a model or format.5455## Entry points5657```bash58boxmot train --model osnet_x0_25 --dataset market1501 --data-dir /data/reid --device cpu59boxmot eval-reid --weights runs/reid_train/exp/best.pt --dataset market1501 --data-dir /data/reid --device cpu60boxmot compare-reid --weights runs/reid_train/exp/best.pt --target market1501=/data/reid/Market-1501-v15.09.1561boxmot export --weights osnet_x0_25_msmt17.pt --include onnx62```6364Python facade:6566```python67from boxmot import BoxMOT, ReIDModel6869api = BoxMOT()70train_result = api.train(model="mobilenetv4", dataset="market1501", data_dir="/data/reid", epochs=5)71metrics = api.eval_reid(weights=train_result.weights_path, dataset="market1501", data_dir="/data/reid")72features = ReIDModel("osnet_x0_25_msmt17.pt", device="cpu").embed("crop.jpg")73```7475Use `scripts/reid_registry_summary.py` when the user needs to know registered backbones, recipes, datasets, or export formats before launching a heavy job.