本文へ移動
cccskills
無料GitHub で公開

deep-person-reid

Route Torchreid deep-person-reid workflows for person re-identification training, evaluation, feature extraction, metrics, visualization, and model export.

インストール方法を見る

含まれるファイル(28)

  • SKILL.md5.4 KB
  • references/package-overview.md3.9 KB
  • references/repo-provenance.md2.3 KB
  • references/repo-routing-metadata.json344 B
  • references/troubleshooting.md4.0 KB
  • scripts/check_torchreid_env.py5.1 KB
  • sub-skills/feature-extraction/references/api-reference.md5.5 KB
  • sub-skills/feature-extraction/references/metrics-and-reranking.md4.1 KB
  • sub-skills/feature-extraction/references/troubleshooting.md3.1 KB
  • sub-skills/feature-extraction/references/workflows.md4.2 KB
  • sub-skills/feature-extraction/scripts/compare_embeddings.py8.2 KB
  • sub-skills/feature-extraction/scripts/feature_extraction_smoke.py5.1 KB
  • sub-skills/feature-extraction/scripts/visualize_actmap.py7.8 KB
  • sub-skills/feature-extraction/SKILL.md2.3 KB
  • sub-skills/model-export/references/export-workflows.md4.3 KB
  • sub-skills/model-export/references/optional-dependencies.md2.2 KB
  • sub-skills/model-export/references/troubleshooting.md3.1 KB
  • sub-skills/model-export/scripts/export_torchreid_model.py18.9 KB
  • sub-skills/model-export/SKILL.md2.4 KB
  • sub-skills/training-evaluation/references/api-reference.md8.9 KB
  • sub-skills/training-evaluation/references/configuration.md11.1 KB
  • sub-skills/training-evaluation/references/data-formats.md8.6 KB
  • sub-skills/training-evaluation/references/troubleshooting.md8.2 KB
  • sub-skills/training-evaluation/references/workflows.md10.8 KB
  • sub-skills/training-evaluation/scripts/compute_mean_std.py9.3 KB
  • sub-skills/training-evaluation/scripts/parse_test_results.py6.0 KB
  • sub-skills/training-evaluation/scripts/torchreid_train_eval.py29.2 KB
  • sub-skills/training-evaluation/SKILL.md4.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

deep-person-reid / Torchreid

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.

Use this skill for

  • Training or evaluating image/video ReID models such as OSNet, OSNet-AIN, ResNet, MLFN, HACNN, PCB, or MobileNet variants.
  • Building Torchreid data managers, custom datasets, samplers, losses, optimizers, schedulers, and Engine.run(...) plans.
  • Extracting embeddings with FeatureExtractor, computing query/gallery distances, CMC/mAP, re-ranking, model complexity, ranked-result visualization, or activation maps.
  • Exporting core Torchreid checkpoints toward ONNX, OpenVINO, or TFLite-style artifacts with explicit optional-dependency checks.
  • Diagnosing install/import, dataset-layout, config, optional-backend, checkpoint, or export failures.

Do not use this skill for

  • General person ReID literature surveys with no Torchreid/deep-person-reid implementation need.
  • DML, OSNet-AIN NAS, or PA-100K attribute-recognition project-local scripts unless a future extension bundles those projects; they are recorded as long-tail gaps rather than runtime routes here.
  • Claims that CUDA, OpenVINO, TensorFlow, TFLite, or large-dataset training was verified unless the current task runs those checks.

Install

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

First checks

  1. Confirm the package is installed in the task environment:

    import torchreid
    print(torchreid.__version__)
    
  2. 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.

  3. Read references/repo-provenance.md before deciding whether this skill is current for a particular checkout.

  4. For package/module coverage and backend status, read references/package-overview.md.

  5. For cross-cutting failures, start with references/troubleshooting.md.

  6. To run a quick non-training package check, use scripts/check_torchreid_env.py.

Route map

Training, evaluation, data, and configs

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.

Feature extraction, models, metrics, and visualization

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.

Model export and deployment artifacts

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.

Root operating rules

  • Prefer local checkpoint paths and explicit model names. Avoid automatic pretrained downloads unless the user approves network access.
  • Treat datasets as user-provided unless a specific dataset class has an automated download path and the user approves network access.
  • Use bundled helper scripts for command planning and smoke checks; do not tell future agents to run source-repo scripts from an unavailable checkout.
  • Keep CPU verification separate from CUDA claims. CPU import/model/feature checks do not prove multi-GPU training throughput.
  • Use export extras only for requested export formats; the core skill does not install ONNX/OpenVINO/TensorFlow by default.
  • If a task requires the excluded projects/ workflows, either report the long-tail gap or extend the repo skill by bundling those project sources and verification cases first.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa

無料

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

3ddfa-v2

無料

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

ab3dmot

無料

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

acme

無料

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

日本語の概要は準備中です。原文の説明を表示しています。

VectorSpaceLab/AREX-Skill3322026年9月3日 更新

VectorSpaceLab のスキルをすべて見る

このスキルの問題を報告する