Person Transfer GAN to Bridge Domain Gap for Person Re-Identification

Longhui Wei, Shiliang Zhang, Wen Gao, Qi Tian

TL;DR

This paper introduces MSMT17, a massive new dataset that brings person re-identification (ReID) closer to real-world complexity with 126,441 bounding boxes across 15 cameras. To tackle the "domain gap" that causes models to fail when moving between different camera networks, the authors propose PTGAN, a generative adversarial network that transfers labeled images to new environments while strictly preserving the person's identity.

What Problem Does This Paper Address?

Person Re-Identification (ReID)—the task of matching a specific person across different non-overlapping cameras—has seen huge accuracy gains on standard benchmarks. However, these models often fall apart in the real world. The authors identify two main culprits:

  1. Dataset Limitations: Existing benchmarks like Market-1501 or CUHK03 are often too small, cover only a single scene (e.g., just outdoors), or lack significant lighting variations.
  2. The Domain Gap: Every camera network has a unique "style" dictated by lighting, resolution, background, and even the local human population. A model trained on one dataset often performs miserably on another because it hasn't learned to generalize across these stylistic shifts. For example, a model trained on CUHK03 achieves a measly 2.0% Rank-1 accuracy when tested on the PRID dataset.
Figure 1: Illustration of the domain gap between CUHK03 and PRID. It is obvious that, CUHK03 and PRID present different styles, e.g., distinct lightings, resolutions, human race, seasons, backgrounds, etc., resulting in low accuracy when training on CUHK03 and testing on PRID.

Methods

The authors propose a two-pronged solution: a better dataset and a novel transfer algorithm.

The MSMT17 Dataset

They collected a "Multi-Scene Multi-Time" dataset using 15 cameras (12 outdoor, 3 indoor) over four days. It captures morning, noon, and afternoon lighting, resulting in a dataset that is significantly more challenging and realistic than its predecessors.

Person Transfer GAN (PTGAN)

To bridge the domain gap without requiring expensive new manual annotations, the authors developed PTGAN. While inspired by Cycle-GAN (which performs unpaired image-to-image translation), standard Cycle-GAN often alters the person's appearance so much that their identity is lost.

PTGAN introduces a specific Identity Preservation Loss ($L_{ID}$). By using a foreground mask (generated via PSPNet) to isolate the person from the background, the network is forced to keep the person's pixels similar to the original while allowing the background and overall lighting style to transform to match the target domain.

Comparison of transferred images by PTGAN and Cycle-GAN. PTGAN maintains identity much better.

Datasets

The paper utilizes several key ReID benchmarks:

  • MSMT17 (New): 4,101 identities, 126,441 bounding boxes, 15 cameras.
  • Market-1501: 1,501 identities, 32,668 boxes, 6 cameras.
  • CUHK03: 1,467 identities, 28,192 boxes.
  • DukeMTMC-reID: 1,812 identities, 36,411 boxes, 8 cameras.
  • PRID: A smaller dataset used here to test transfer performance.
Figure 2: Comparison of person images in CUHK03, Mar- ket1501, DukeMTMC-reID, and MSMT17. Each column shows two sample images of the same identity. It is obvi- ous that, MSMT17 presents a more challenging and realistic person ReID task.

Key Insights and Ideas

  • Identity is the Constraint: In ReID, the background is noise, but the person is the signal. Standard style transfer treats the whole image as signal; PTGAN treats the person as a constraint that must remain stable.
  • MSMT17 as a Reality Check: Performance on MSMT17 is significantly lower than on older datasets (e.g., 34% mAP vs ~74% on Market-1501 for the same algorithm), proving that ReID is far from "solved."
  • Camera-Specific Transfer: The authors found that transferring images to specific cameras (e.g., CUHK03 $\rightarrow$ PRID-cam1) yields better results than a generic dataset-to-dataset transfer. This suggests that the "domain" is often defined at the individual camera level.
  • Data Efficiency: The authors estimate that roughly 6.3 GAN-transferred images are equivalent to 1 manually annotated image, providing a significant boost to "weakly supervised" learning where target labels are unavailable.

Key Results

  • Bridging the Gap: When transferring from CUHK03 to PRID, Rank-1 accuracy jumped from 2.0% to 37.5% using PTGAN-augmented data.
  • Market to PRID: Similarly, transferring from Market-1501 to PRID saw Rank-1 accuracy rise from 5.0% to 33.5%.
  • MSMT17 Performance: State-of-the-art models like GLAD and PDC were tested on MSMT17, showing that while they outperform baselines, there is still a massive headroom for improvement in complex, multi-time scenarios.

Limitations and Future Work

  • Scalability to Large Networks: While PTGAN works well for small target sets like PRID (2 cameras), transferring to a large network like MSMT17 (15 cameras) using a single mapping function is not yet optimal. The authors note that a single GAN struggles to capture the diverse styles of 15 different cameras simultaneously.
  • Segmentation Noise: PTGAN relies on foreground masks. While it showed robustness to noisy masks from PSPNet, highly accurate segmentation remains a dependency.
  • Future Direction: The authors aim to study more efficient transfer strategies that account for style differences between cameras within the same large-scale dataset.

Summary updated

Abstract

Although the performance of person Re-Identification (ReID) has been significantly boosted, many challenging issues in real scenarios have not been fully investigated, e.g., the complex scenes and lighting variations, viewpoint and pose changes, and the large number of identities in a camera network. To facilitate the research towards conquering those issues, this paper contributes a new dataset called MSMT17 with many important features, e.g., 1) the raw videos are taken by an 15-camera network deployed in both indoor and outdoor scenes, 2) the videos cover a long period of time and present complex lighting variations, and 3) it contains currently the largest number of annotated identities, i.e., 4,101 identities and 126,441 bounding boxes. We also observe that, domain gap commonly exists between datasets, which essentially causes severe performance drop when training and testing on different datasets. This results in that available training data cannot be effectively leveraged for new testing domains. To relieve the expensive costs of annotating new training samples, we propose a Person Transfer Generative Adversarial Network (PTGAN) to bridge the domain gap. Comprehensive experiments show that the domain gap could be substantially narrowed-down by the PTGAN.
BibTeX
@inproceedings{wei2018person,
  author = {Longhui Wei and Shiliang Zhang and Wen Gao and Qi Tian},
  title = {{Person Transfer GAN to Bridge Domain Gap for Person Re-Identification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=B1V2keGuWH},
}
Figure