# 行人重识别

行人重识别（person re-identification，re-ID）的任务是：对在一系列图像或视频中捕获的某个特定个体的所有实例分配同一标识符，即使这些实例在时间或空间上存在显著间隔。<sup>[1](https://psycnet.apa.org/doi/10.1145/2543581.2543596)</sup> 给定来自一个摄像头的某个人的图像或视频，系统会在来自不同摄像头的图像或视频中识别出这个人，从而支持跨摄像头网络的一致标注，并重新建立断开或丢失的轨迹。<sup>[2](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)</sup> 一个实用的监控系统可分解为行人检测、行人跟踪和行人检索，而大多数重识别研究处理的是检索模块。<sup>[3](https://ar5iv.labs.arxiv.org/html/1610.02984)</sup> 除监控外，重识别在机器人、多媒体和取证领域也有应用。<sup>[2](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)</sup>

| 关键事实 | 细节 |
|---|---|
| 输出 | 跨摄像头和时间的一致身份标签。<sup>[1](https://psycnet.apa.org/doi/10.1145/2543581.2543596)</sup> |
| 匹配规则 | 寻找图库图像 \( g^{*} \)，使特征表示之间的距离 \( d(f(q), f(g_{i})) \) 最小，距离可采用欧氏距离或余弦距离（1 减余弦相似度）。<sup>[4](https://arxiv.org/pdf/2506.13039v1.pdf)</sup> |
| 标准训练 | 身份交叉熵损失与三元组损失结合，\( L = L_{\mathrm{ID}} + \lambda \cdot L_{\mathrm{triplet}} \)。<sup>[5](https://ar5iv.labs.arxiv.org/html/2001.04193)</sup><sup> • </sup><sup>[6](https://doi.org/10.48550/arxiv.1703.07737)</sup><sup> • </sup><sup>[7](https://arxiv.org/pdf/2601.20598)</sup> |
| 参考准确率 | 强 ResNet-50 基线仅使用全局特征，在 Market1501 上达到 94.5% Rank-1 和 85.9% mAP。<sup>[8](https://openaccess.thecvf.com/content_CVPRW_2019/papers/TRMTMCT/Luo_Bag_of_Tricks_and_a_Strong_Baseline_for_Deep_Person_CVPRW_2019_paper.pdf)</sup> |
| 轻量模型 | OSNet 是一种轻量架构，<sup>[7](https://arxiv.org/pdf/2601.20598)</sup> 在同域设置下于 Market1501 达到 94.2% Rank-1，于 DukeMTMC-reID 达到 87.0%，于 MSMT17 达到 74.9%。<sup>[9](https://github.com/kaiyangzhou/deep-person-reid/blob/master/docs/MODEL_ZOO.md)</sup> |
| 主要基准 | MSMT17（126,441 张图像，4,101 个 ID，15 个摄像头）、Market-1501（32,668 / 1,501 / 6）、DukeMTMC-reID（36,411 / 1,404 / 8）。<sup>[10](https://ojs.aaai.org/index.php/AAAI/article/download/25225/24997)</sup> |
| 基础模型差距 | 未经微调的原始 CLIP 在重识别基准上仅达到 0.1%–2.7% mAP。<sup>[7](https://arxiv.org/pdf/2601.20598)</sup> |

## 工作原理

重识别被表述为检索问题：将查询图像 \( q \) 与图库集合 \( G \) 比较，最佳匹配 \( g^{*} \) 是使特征表示之间的距离 \( d(f(q), f(g_{i})) \) 最小的图库图像，其中 \( d \) 是诸如欧氏距离或余弦距离（1 减余弦相似度）的距离；等价地说，就是最大化余弦相似度。<sup>[4](https://arxiv.org/pdf/2506.13039v1.pdf)</sup> 因此，训练学习到的嵌入应使同一个人的图像彼此靠近，不同人的图像彼此远离。

两类损失占主导。身份分类损失将每个训练身份视为一个不同类别，并用 softmax 交叉熵训练网络，这是广泛使用的身份判别嵌入（ID-discriminative Embedding，IDE）模型的设置。<sup>[5](https://ar5iv.labs.arxiv.org/html/2001.04193)</sup> 三元组损失将训练视为排序问题：正样本对之间的距离应比负样本对之间的距离小一个预定义间隔。<sup>[5](https://ar5iv.labs.arxiv.org/html/2001.04193)</sup><sup> • </sup><sup>[6](https://doi.org/10.48550/arxiv.1703.07737)</sup> 有监督系统通常将它们组合为 \( L = L_{\mathrm{ID}} + \lambda \cdot L_{\mathrm{triplet}} \)，其中 \( \lambda \) 控制度量项的相对权重。<sup>[7](https://arxiv.org/pdf/2601.20598)</sup>

采样和架构技巧与损失同样重要。批次由 \( P \) 个身份构成，每个身份有 \( K \) 张图像；随后 Batch Hard 采样会为每个锚点在批次内选择最难正样本和最难的负样本。<sup>[6](https://doi.org/10.48550/arxiv.1703.07737)</sup> Bag of Tricks 基线使用 \( P = 16 \)、\( K = 4 \)、在 ImageNet 上初始化的 ResNet-50 骨干、标签平滑、随机擦除、预热、0.3 的三元组间隔、中心损失，以及 BNNeck——一种插入特征与分类器之间的批归一化层，使余弦优化的 ID 损失与欧氏优化的三元组损失不冲突。<sup>[8](https://openaccess.thecvf.com/content_CVPRW_2019/papers/TRMTMCT/Luo_Bag_of_Tricks_and_a_Strong_Baseline_for_Deep_Person_CVPRW_2019_paper.pdf)</sup>

## 实现方式

实践中的流水线如下运行。行人检测假定由先前的目标检测模型完成。<sup>[7](https://arxiv.org/pdf/2601.20598)</sup> 裁剪后的行人图像被送入网络，网络输出一个嵌入向量；一种部署的 ResNet-50 配置产生 256 维嵌入，训练时使用三元组损失（间隔 0.3）、标签平滑、可选的中心损失，以及 Adam，基础学习率为 0.00035，训练 120 轮。<sup>[11](https://docs.nvidia.com/tao/tao-toolkit-archive/5.2.0/text/re_identification/re_identification.html)</sup> 查询嵌入按距离与图库匹配，可选的再排序阶段应用 k-reciprocal 编码，该编码利用 k-reciprocal 最近邻来细化初始排序；一种部署配置使用 \( k_{1} = 20 \)、\( k_{2} = 6 \) 和 \( \lambda = 0.3 \)。<sup>[12](https://doi.org/10.48550/arxiv.1701.08398)</sup><sup> • </sup><sup>[11](https://docs.nvidia.com/tao/tao-toolkit-archive/5.2.0/text/re_identification/re_identification.html)</sup>

评估使用累积匹配特性（Cumulative Matching Characteristics，CMC）曲线和平均精度均值（mean Average Precision，mAP），这是两种广泛使用的度量。<sup>[5](https://ar5iv.labs.arxiv.org/html/2001.04193)</sup> 协议选择取决于设置：闭集识别优先考虑 CMC 和 Rank-k；开集验证需要带 AUC-ROC 的 ROC 分析；多查询检索应强调 mAP，而当代基准建议同时报告 mAP 以及 [Rank 1](https://www.edgepedia.org/zh/rank-1)、5 和 10 处的 CMC。<sup>[13](https://www.mdpi.com/2079-9292/14/22/4398)</sup>

## 起源

概念基础涉及贝叶斯框架，这些框架对跨不重叠摄像头视图的外观变化建模。<sup>[4](https://arxiv.org/pdf/2506.13039v1.pdf)</sup> 重识别最初作为多摄像头跟踪的一个子任务被研究，多摄像头跟踪确定行人或车辆的跨摄像头轨迹。<sup>[14](https://link.springer.com/article/10.1007/s42979-024-03271-9)</sup> 根据郑（Zheng）、杨（Yang）和豪普特曼（Hauptmann）的综述，早期使用“person re-identification”这一术语的多摄像头跟踪工作由[阿姆斯特丹大学](https://www.edgepedia.org/zh/university-of-amsterdam)（University of Amsterdam）的沃伊切赫·扎伊德尔（Wojciech Zajdel）、佐兰·日夫科维奇（Zoran Zivkovic）和本·J. A. 克勒瑟（Ben J. A. Kröse）完成；他们的方法假设每个人有一个潜在标签，并使用动态[贝叶斯网络](https://www.edgepedia.org/zh/bayesian-network)编码这些标签与颜色及时空轨迹片段特征之间的概率关系。<sup>[3](https://ar5iv.labs.arxiv.org/html/1610.02984)</sup> 行人重识别旨在利用视觉外观从非重叠摄像头中检测并匹配行人，并在 3 个视图中的 44 个人上进行评估。<sup>[14](https://link.springer.com/article/10.1007/s42979-024-03271-9)</sup>

深度学习之前，该领域依赖手工设计的描述子和诸如 KISSME 的度量学习方法。<sup>[10](https://ojs.aaai.org/index.php/AAAI/article/download/25225/24997)</sup> 2014 年，深度学习扩展到重识别，当时两个研究组独立使用[孪生神经网络](https://www.edgepedia.org/zh/siamese-neural-network)判断一对输入图像是否属于同一身份。<sup>[3](https://ar5iv.labs.arxiv.org/html/1610.02984)</sup>

## 变体

架构差异主要在于如何处理错位和尺度。基于部件的方法，如 PCB+RPP 和 Horizontal Pyramid Matching，通过细化空间划分来处理错位，而 OSNet 引入全尺度特征学习以应对尺度变化。<sup>[4](https://arxiv.org/pdf/2506.13039v1.pdf)</sup> AlignedReID 通过从上到下的最短路径对齐来匹配局部部件，无需额外监督，并在推理时仅使用全局特征和 L2 距离。<sup>[15](https://ar5iv.labs.arxiv.org/html/1711.08184)</sup> OSNet 是 ResNet-50 骨干的轻量替代方案，后者在大多数重识别数据集中很常见；其 osnet_x1_0 模型在 256×128 输入下有 220 万参数和 0.98 GFLOPs，Torchreid PyTorch 库是为 OSNet 项目开发的。<sup>[10](https://ojs.aaai.org/index.php/AAAI/article/download/25225/24997)</sup><sup> • </sup><sup>[9](https://github.com/kaiyangzhou/deep-person-reid/blob/master/docs/MODEL_ZOO.md)</sup><sup> • </sup><sup>[16](https://doi.org/10.48550/arxiv.1905.00953)</sup>

随后出现了 Transformer 和视觉-语言模型。TransReID 将 Transformer 应用于目标重识别。<sup>[17](https://doi.org/10.48550/arxiv.2102.04378)</sup> 一种部署的基于 SWIN-Transformer 的变体在非重叠窗口中处理图像，对局部和全局特征进行自注意力，并在约 300 万张裁剪图像上以自监督方式预训练，再使用三元组损失、中心损失和交叉熵损失训练。<sup>[18](https://catalog.ngc.nvidia.com/orgs/nvidia/tao/models/reidentificationnet_transformer/deployable_v1.0)</sup> CLIP-ReID 将 CLIP 视觉-语言模型适配到图像重识别，无需具体文本标签，初始化 CLIP 的 ViT-B/16（8750 万参数），并用身份分类损失和三元组损失微调。<sup>[19](https://doi.org/10.48550/arxiv.2211.13977)</sup><sup> • </sup><sup>[7](https://arxiv.org/pdf/2601.20598)</sup> Instruct-ReID 将该领域的变体表述为对单一模型的指令，列出标准 ReID、换衣重识别（clothes-changing ReID，CC-ReID）、可见光-红外重识别（visible-infrared ReID，VI-ReID）和文本到图像重识别（text-to-image ReID，T2I-ReID）。<sup>[20](https://openaccess.thecvf.com/content/CVPR2024/papers/He_Instruct-ReID_A_Multi-purpose_Person_Re-identification_Task_with_Instructions_CVPR_2024_paper.pdf)</sup><sup> • </sup><sup>[21](https://doi.org/10.48550/arxiv.2306.07520)</sup>

设置也因监督方式而异。封闭世界系统假设单模态数据具有充足的标注训练数据；开放世界设置涉及来自不受控环境的异构多模态数据，并要求泛化到未见类别。<sup>[22](https://pmc.ncbi.nlm.nih.gov/articles/PMC11902521/)</sup> 无监督和自监督方法，如 PASS，使用无需身份标签的部件感知预训练。<sup>[23](https://github.com/casia-iva-lab/pass-reid)</sup>

## 应用

主要应用是多摄像头监控，其中重识别支持跨摄像头网络的一致标注，并重新建立断开或丢失的轨迹。<sup>[2](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)</sup> 除监控外，重识别在机器人、多媒体和取证领域也有应用。<sup>[2](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)</sup> 由于重识别直接支持多摄像头监控和行人跟踪，建议部署它的研究人员和实践者考虑适用的隐私法规和同意框架。<sup>[24](https://arxiv.org/abs/2604.22190)</sup>

## 局限与替代方案

核心失效模式源于任务难度：一个人跨摄像头外观的视觉歧义和时空不确定性，往往因低分辨率或低质量视频而加剧，<sup>[2](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)</sup> 再加上杂乱背景、光照变化、剧烈姿态变化和遮挡。<sup>[10](https://ojs.aaai.org/index.php/AAAI/article/download/25225/24997)</sup> 换衣是最尖锐的限制：传统方法主要依赖纹理和颜色等服装外观，当受试者换衣时性能显著下降；经典设置假设服装不变，尽管这一假设对于历史犯罪检索等长周期应用并不合理。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009696)</sup><sup> • </sup><sup>[26](https://ar5iv.labs.arxiv.org/html/2211.11165)</sup> 换衣研究分为两类：抑制服装变化语义（例如通过对抗学习的 CAL 和通过因果建模的 AIM），以及利用步态引导等辅助线索增强身份稳定语义；基于 CLIP 的换衣方法可能遭受语义泄漏，即残余服装线索污染身份嵌入。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009696)</sup> 换衣基准，如 LTCC、PRCC 和 VC-Clothes，现已成为标准评估目标，与 Market1501 和 MSMT17 上的固定服装测试并列。<sup>[25](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009696)</sup>

报告的准确率也仅在域内成立。在 Market-1501 上，单查询 Rank-1 准确率在该领域发展历程中从 43.8% 升至 96.1%，而人类在 Market-1501 上的表现为 93.5% Rank-1，大多数基于图像的方法现已超过这一水平。<sup>[27](https://www.mdpi.com/2504-446X/8/7/279)</sup><sup> • </sup><sup>[5](https://ar5iv.labs.arxiv.org/html/2001.04193)</sup> 跨数据集迁移会急剧下降：使用 osnet_ain_x1_0 从 Market1501→DukeMTMC-reID 得到 52.4% Rank-1 和 30.5 mAP，在 LSMS 数据集上测试 MSMT17 训练的模型达到 70.3% Rank-1 / 41.9% mAP，而反方向达到 45.2% Rank-1 / 19.9% mAP。<sup>[9](https://github.com/kaiyangzhou/deep-person-reid/blob/master/docs/MODEL_ZOO.md)</sup><sup> • </sup><sup>[27](https://www.mdpi.com/2504-446X/8/7/279)</sup> 基础模型的零样本迁移完全失败：未经任务特定微调的原始 CLIP 仅达到 0.1%–2.7% mAP。<sup>[7](https://arxiv.org/pdf/2601.20598)</sup>

作为替代方案，人脸识别是一个相关流水线（采集、预处理、检测、对齐、特征提取、比较），其主要挑战是姿态、光照和表情。<sup>[22](https://pmc.ncbi.nlm.nih.gov/articles/PMC11902521/)</sup> 步态和体型线索被用于提高重识别系统对换衣的鲁棒性。<sup>[7](https://arxiv.org/pdf/2601.20598)</sup>

## References

1. [People reidentification in surveillance and forensics: A survey (ACM Computing Surveys 46(2))](https://psycnet.apa.org/doi/10.1145/2543581.2543596)
2. [A survey of approaches and trends in person re-identification (Bedagkar-Gala & Shah, Image and Vision Computing 32(4))](https://dl.acm.org/doi/10.1016/j.imavis.2014.02.001)
3. [Person Re-identification: Past, Present and Future (Zheng, Yang, Hauptmann)](https://ar5iv.labs.arxiv.org/html/1610.02984)
4. [Evolution of ReID: From Early Methods to LLM Integration](https://arxiv.org/pdf/2506.13039v1.pdf)
5. [Deep Learning for Person Re-identification: A Survey and Outlook (Ye et al., IEEE TPAMI / arXiv)](https://ar5iv.labs.arxiv.org/html/2001.04193)
6. [Hermans, Alexander, Beyer, Lucas, Leibe, Bastian (2017). In Defense of the Triplet Loss for Person Re-Identification. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1703.07737)
7. [Survey of supervised and foundation-model-based person ReID (arXiv, 2026)](https://arxiv.org/pdf/2601.20598)
8. [Bag of Tricks and a Strong Baseline for Deep Person Re-Identification (CVPRW 2019)](https://openaccess.thecvf.com/content_CVPRW_2019/papers/TRMTMCT/Luo_Bag_of_Tricks_and_a_Strong_Baseline_for_Deep_Person_CVPRW_2019_paper.pdf)
9. [deep-person-reid Model Zoo (Torchreid)](https://github.com/kaiyangzhou/deep-person-reid/blob/master/docs/MODEL_ZOO.md)
10. [CLIP-ReID: Exploiting Vision-Language Model for Image Re-identification without Concrete Text Labels (AAAI 2023)](https://ojs.aaai.org/index.php/AAAI/article/download/25225/24997)
11. [ReIdentificationNet - NVIDIA TAO Toolkit Documentation](https://docs.nvidia.com/tao/tao-toolkit-archive/5.2.0/text/re_identification/re_identification.html)
12. [Zhong, Zhun and colleagues (2017). Re-ranking Person Re-identification with k-reciprocal Encoding. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1701.08398)
13. [Advancements and Challenges in Deep Learning-Based Person Re-Identification: A Review (Electronics, MDPI)](https://www.mdpi.com/2079-9292/14/22/4398)
14. [Identifying Re-identification Challenges: Past, Current and Future Trends (SN Computer Science, 2024)](https://link.springer.com/article/10.1007/s42979-024-03271-9)
15. [AlignedReID: Surpassing Human-Level Performance in Person Re-Identification](https://ar5iv.labs.arxiv.org/html/1711.08184)
16. [Zhou, Kaiyang and colleagues (2019). Omni-Scale Feature Learning for Person Re-Identification. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1905.00953)
17. [He, Shuting and colleagues (2021). TransReID: Transformer-based Object Re-Identification. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2102.04378)
18. [Re-Identification Transformer (NVIDIA NGC model card)](https://catalog.ngc.nvidia.com/orgs/nvidia/tao/models/reidentificationnet_transformer/deployable_v1.0)
19. [Li, Siyuan, Sun, Li, Li, Qingli (2022). CLIP-ReID: Exploiting Vision-Language Model for Image Re-Identification without Concrete Text Labels. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2211.13977)
20. [Instruct-ReID: A Multi-purpose Person Re-identification Task with Instructions (CVPR 2024)](https://openaccess.thecvf.com/content/CVPR2024/papers/He_Instruct-ReID_A_Multi-purpose_Person_Re-identification_Task_with_Instructions_CVPR_2024_paper.pdf)
21. [He, Weizhen and colleagues (2023). Instruct-ReID: A Multi-purpose Person Re-identification Task with Instructions. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2306.07520)
22. [A Review of Machine Learning and Deep Learning Methods for Person Detection, Tracking and Identification, and Face Recognition with Applications](https://pmc.ncbi.nlm.nih.gov/articles/PMC11902521/)
23. [PASS: Part-Aware Self-Supervised Pre-Training for Person Re-Identification (ECCV 2022) official repository](https://github.com/casia-iva-lab/pass-reid)
24. [From Global to Local: Rethinking CLIP Feature Aggregation for Person Re-Identification](https://arxiv.org/abs/2604.22190)
25. [See what you seek: Semantic contextual integration for cloth-changing person re-identification (Pattern Recognition, 2026)](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009696)
26. [A Benchmark of Video-Based Clothes-Changing Person Re-Identification](https://ar5iv.labs.arxiv.org/html/2211.11165)
27. [A Large Scale Benchmark of Person Re-Identification (Drones, 2024; LSMS)](https://www.mdpi.com/2504-446X/8/7/279)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision datasets, software, and community

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/person-re-identification

English original: https://www.edgepedia.org/person-re-identification
