算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
deep-person-reid【设计与创意】Route Torchreid deep-person-reid workflows for person re-identification training, evaluation, feature extraction, metrics, visualization, and model export.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task involves Torchreid (torchreid) or Kaiyang Zhou's deep-person-reid package for person re-identification (ReID). It is an operating graph for package use, not a maintainer-development guide.
Engine.run(...) plans.FeatureExtractor, computing query/gallery distances, CMC/mAP, re-ranking, model complexity, ranked-result visualization, or activation maps.From a fresh clone of the package, install the runtime dependencies and the local package itself:
python -m pip install -U pip
python -m pip install -r requirements.txt
python -m pip install -e .
If editable installation fails because build-time NumPy/Cython visibility is missing, install the needed build prerequisites first and retry with --no-build-isolation, then use references/troubleshooting.md for the exact recovery steps.
Run the quick verification check after install:
python scripts/check_torchreid_env.py --model-name osnet_x0_25
Confirm the package is installed in the task environment:
import torchreid
print(torchreid.__version__)
Confirm PyTorch/torchvision match the intended backend. CPU is enough for API inspection and small smoke tests; CUDA is optional but practical for real training/evaluation.
Read references/repo-provenance.md before deciding whether this skill is current for a particular checkout.
For package/module coverage and backend status, read references/package-overview.md.
For cross-cutting failures, start with references/troubleshooting.md.
To run a quick non-training package check, use scripts/check_torchreid_env.py.
Use sub-skills/training-evaluation/SKILL.md when the request names training, testing, data managers, datasets, config files, CLI-style command generation, split-log parsing, or dataset mean/std.
Typical triggers: ImageDataManager, VideoDataManager, Engine.run, scripts/main.py-style workflow, test.evaluate True, visrank, Market1501/DukeMTMC/MSMT/CUHK03/MARS layouts, RandomIdentitySampler, train.lr_scheduler, checkpoint resume/fine-tune.
Use sub-skills/feature-extraction/SKILL.md when the request names embeddings, FeatureExtractor, model keys, checkpoint loading, distance matrices, CMC/mAP, re-ranking, model complexity, ranked-result visualizations, or activation maps.
Typical triggers: compare query/gallery images, compute cosine/euclidean distances, load local weights without downloads, evaluate_rank, re_ranking, compute_model_complexity, return_featuremaps=True.
Use sub-skills/model-export/SKILL.md when the request asks to export a trained core Torchreid checkpoint to ONNX, OpenVINO, or TFLite-style outputs.
Typical triggers: --include onnx, OpenVINO Model Optimizer, openvino2tensorflow, dynamic axes, opset choice, model-name inference, optional export dependency failures.
projects/ workflows, either report the long-tail gap or extend the repo skill by bundling those project sources and verification cases first.