fast-reid
Operate FastReID setup, configuration, datasets, model/inference APIs, training/evaluation workflows, deployment/export paths, and extension projects for person and vehicle re-identification.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- fast-reid
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate FastReID setup, configuration, datasets, model/inference APIs, training/evaluation workflows, deployment/export paths, and extension projects for person and vehicle re-identification.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/package-map.md5.5 KB
- 参考文档references/repo-provenance.md1.8 KB
- 参考文档references/repo-routing-metadata.json514 B
- 参考文档references/troubleshooting.md6.0 KB
- 脚本scripts/check_fastreid_environment.py6.4 KB
03 SKILL.md 正文
FastReID repo skill
Use this skill when a task involves FastReID (fastreid), person or vehicle
re-identification, Market1501/DukeMTMC/MSMT17/VeRi/VehicleID style datasets,
FastReID YAML configs, ReID feature extraction, rank/mAP/mINP evaluation,
training/eval command construction, ONNX/Caffe/TensorRT export, or FastReID
extension projects.
First checks
- Confirm FastReID is importable. This inspected commit is source-only, so use
a local checkout import path or a bundled script's
--repo-rootoption when no installed distribution exists. - Confirm the intended backend.
MODEL.DEVICEdefaults tocuda; CPU smoke checks must override it explicitly. - Confirm required data/checkpoints. Real train/eval/inference requires local datasets and often local checkpoints or pretrain weights.
- Run the safe root helper when setup or optional dependencies are unclear:
python scripts/check_fastreid_environment.py \
--repo-root <FASTREID_REPO> \
--config-file <CONFIG_YAML> \
--device cpu
The helper imports modules and merges config only; it does not train, evaluate, download, or write checkpoints.
Route by task
| Task signal | Read |
|---|---|
Source-only import, dependencies, Python version, get_cfg, _BASE_, YAML merge, opts, model-zoo recipe/config selection |
sub-skills/setup-and-configuration/ |
FASTREID_DATASETS, built-in dataset layouts, custom dataset registration, dataloaders, transforms, samplers, data preflight |
sub-skills/data-and-datasets/ |
build_model, backbones/heads/losses/meta-architectures, DefaultPredictor, feature tensors, CPU model smoke, rank import quirks |
sub-skills/modeling-and-inference/ |
Training/eval command building, DefaultTrainer, distributed flags, checkpoints/resume, solvers, metrics, logs, custom loops |
sub-skills/training-and-evaluation/ |
| ONNX/Caffe/TensorRT export/inference, optional deployment deps, FastRT, project-extension imports/config hooks | sub-skills/deployment-and-projects/ |
Shared references
references/package-map.md— compact module, registry, signature, dependency, and route map for this FastReID version.references/troubleshooting.md— cross-cutting install/import, config, backend, dataset, checkpoint, inference, deployment, and project-extension failures.references/repo-provenance.md— source commit, package version, evidence paths, and refresh baseline.references/repo-routing-metadata.json— structured metadata for managed repo-skills-router import.
Shared script
scripts/check_fastreid_environment.py— safe import/config/optional-backend probe. Use it before deeper workflow debugging or before deciding whether CUDA/ONNX/Caffe/TensorRT dependencies are available.
Operating boundaries
- This skill teaches FastReID operation; it does not reproduce model-zoo benchmarks by itself.
- Do not run long training/evaluation, network downloads, dataset acquisition, Caffe/TensorRT builds, or multi-node jobs without explicit user data, hardware, runtime, and budget approval.
- CPU checks can validate imports/config/model plumbing, but they do not prove CUDA training performance or TensorRT/Caffe runtime equivalence.
- Extension projects add registry entries after importing their packages or
config hooks. If a project config fails with unknown keys or missing registry
entries, route to
deployment-and-projectsbefore editing configs.
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).