Paper commentary
Person Transfer GAN to Bridge Domain Gap for Person Re-Identification
PTGAN transfers labeled persons across datasets to narrow the domain gap
- Problem Person re-identification models drop sharply when trained on one dataset and tested on another. Labeling new data for every domain is expensive, so existing labeled data helps little.
- Method PTGAN moves labeled persons into the style of a target dataset. It uses a Cycle-GAN style loss plus an identity loss on person foreground masks, so labels stay valid.
- Results Training GoogLeNet on PTGAN-transferred CUHK03 images raised PRID Rank-1 from 2.0 to 37.5 in the cam1/cam2 setting.
Why labeled ReID data stops transferring
Person ReID trains a model to match the same person across camera views, and what it learns depends on the dataset it sees during training. When a model trained on one dataset is tested on another, performance can fall sharply. A model trained on CUHK03 reached Rank-1 accuracy of 2.0% when tested on PRID. The gap comes from differences in lighting, resolution, the race of the people shown, season and background between the two datasets.
Annotating identities is expensive, so labeling more data for every new domain is a costly remedy. The goal is therefore to narrow or remove the gap, so that labeled persons from one dataset can serve another. The proposed route moves labeled persons from a source dataset A into the style of a target dataset B while their identities are kept.
What MSMT17 adds and how it was built
The largest earlier dataset discussed, DukeMTMC-reID, has fewer than 2,000 identities and simple lighting conditions. The largest dataset in the authors' comparison has only 8 cameras, and most earlier datasets cover a single indoor or outdoor scene. Their boxes were drawn by hand or produced by the older DPM detector, and their videos are short with little lighting change.
MSMT17 was recorded by a 15-camera campus network with 12 outdoor cameras and 3 indoor cameras. Footage was selected from 4 days with different weather in a month, with 3 hours per day from morning, noon and afternoon, giving 12 time slots from 180 hours of raw video. Faster RCNN proposes the pedestrian boxes, and three labelers assigned identity labels over two months, producing 126,441 bounding boxes of 4,101 identities.
Instead of the equal split used in earlier datasets, the authors set the training-to-testing ratio to 1:3, because annotation is expensive in real scenarios and they want to encourage more efficient training. The training set holds 32,621 boxes of 1,041 identities, and the testing set holds 93,820 boxes of 3,060 identities. From the testing set, 11,659 boxes serve as queries and 82,161 as gallery images.
Because a query can have several true positives, evaluation uses CMC together with mAP, which treats ReID as retrieval.
How the style and identity terms combine
PTGAN has two jobs: make transferred persons look like the target domain, and keep each person's identity so that the transferred images can carry the source label. ReID datasets contain no paired images of the same person across datasets, so the style part is treated as an unpaired image-to-image translation problem.
The total objective adds a style term and an identity term, with the identity term weighted by \(\lambda_1\) to set the trade-off between them. \[ L_{\text{PTGAN}} = L_{\text{Style}} + \lambda_1 L_{\text{ID}} \]
The style term follows Cycle-GAN, with a generator G that maps A to B, a mapping from B back to A, and discriminators D_A and D_B for the two datasets. It sums an adversarial loss for each direction and a cycle consistency term weighted by \(\lambda_2\), which is the Cycle-GAN recipe for training on unpaired data.
The identity term looks only at the person foreground, so changes to the background do not count against it. For each image, the difference between the input and its transferred version is multiplied elementwise by the foreground mask and its L2 norm is taken, and this is averaged over both datasets. \[ L_{\text{ID}} = \mathbb{E}_{a\sim p_{\text{data}}(a)}\left[\lVert (G(a)-a)\odot M(a)\rVert_2\right] + \mathbb{E}_{b\sim p_{\text{data}}(b)}\left[\lVert (G(b)-b)\odot M(b)\rVert_2\right] \]
Without this term, a style objective alone may leave the label of a transferred image ambiguous, so the identity term is added to keep the label reliable. The identity term does not need identity labels on dataset B, because the style discriminator for B can be trained on unlabeled person images.
Training settings for the transfer model
The generator follows the Cycle-GAN design, with two stride-2 convolutions, 9 residual blocks and two fractionally-strided convolutions. The discriminator has two parts: a PatchGAN that classifies each 70×70 patch of an image as real or fake, and a second part that computes the L2 distance between the transferred image and the input on the foreground person.
The foreground masks are computed with PSPNet, which the authors chose for its performance on segmentation. The authors note that video surveillance with moving people and fixed backgrounds would allow more accurate and efficient foreground extraction. Transferred samples still look reasonable when the PSPNet masks are noisy, which the authors read as robustness to segmentation errors.
Transfer to the two PRID cameras
Transfers are made separately to PRID-cam1 and PRID-cam2, because the two cameras show different styles. Testing uses the bounding boxes of 200 persons shared by both cameras.
GoogLeNet trained on the original CUHK03 set reached Rank-1 2.0 in the cam1/cam2 setting and 1.5 in the cam2/cam1 setting. Training on the combined PTGAN-transferred CUHK03 sets for cam1 and cam2 reached Rank-1 37.5 in both settings, with Rank-10 at 72.5 and 69.5.
Single-camera transfers gave smaller gains, with Rank-1 of 18.0 for CUHK03 transferred to cam1 and 17.5 for cam2 in the cam1/cam2 setting. On the Market side, the original training set reached Rank-1 5.0 in the cam1/cam2 setting, and the combined transferred Market sets reached 33.5.
The authors give two reasons the combined set helps: it has more training samples, and each identity appears with two camera styles, which teaches robustness to style differences. This comparison does not separate the two reasons. The authors also argue that reasonable PRID performance is reached without any labeled PRID data.
Transfer among large datasets
For large targets, one PTGAN transfers source persons to the target without distinguishing cameras, which the authors acknowledge is not an optimal solution. Among Duke, Market and CUHK03, GoogLeNet trained on the transferred sets is reported to do better than on the original sets, as the Rank-1 and Rank-10 curves in Fig. 8 show.
On MSMT17, Rank-1 for GoogLeNet trained on the Duke training set is 7.1, and it is 11.8 with Duke images transferred to the MSMT17 style. The corresponding Rank-1 values are 3.4 and 10.2 for Market, and 2.8 and 6.5 for CUHK03. The authors report Rank-1 gains of 4.7%, 6.8%, and 3.7% for Duke, Market and CUHK03 respectively.
The mAP values follow the same direction, moving from 1.9 to 3.3 for Duke, from 1.0 to 2.9 for Market, and from 0.7 to 1.7 for CUHK03. The absolute values stay low, and each comparison is a single value per setting with no spread shown.
How much annotation transferred data can replace
Training on 1%, 2.5%, 5% and 10% of the MSMT17 training set gives Rank-1 of 0.9, 2.0, 6.3 and 11.5 respectively. The 10% setting is the reference point for the transfer comparisons on MSMT17.
The authors observe that 10% of the MSMT17 training set reaches Rank-1 of about 11.5 to 11.8, close to the Duke-transferred result. From this they roughly estimate that 16,522 transferred Duke images perform like 2,602 annotated MSMT17 images, which is about 6.3 transferred images per annotated image.
Adding Duke-transferred images to the 10% MSMT17 set raised Rank-1 from 16.1 to 18.0 and mAP from 5.5 to 6.2. With the same 10% budget, Rank-1 rose by 1.9%, 5.1%, and 2.4% for Duke, Market and CUHK03 transferred data respectively.
The combined-training comparison appears only at the 10% budget, while the 1%, 2.5% and 5% rows use MSMT17 data alone.
How hard MSMT17 is for existing methods
The authors evaluated PDC and GLAD on MSMT17 with the code and models provided by their authors, using GoogLeNet as the common baseline. GoogLeNet reached mAP 23.0 and Rank-1 47.6 on MSMT17. PDC reached mAP 29.7 and Rank-1 58.0, and GLAD reached mAP 34.0 and Rank-1 61.4.
The baseline's mAP on Market is 51.7%, and GLAD's reported performance on Market is 73.9%, so the same methods score much lower on MSMT17. The authors use this gap to argue that MSMT17 is a harder task.
A work the authors cite as [23] reports higher MSMT17 numbers, but it is trained on augmented data that includes training sets from three datasets. In the retrieval examples for GLAD, the false positives look similar to the query, and the true positives differ in lighting, poses and backgrounds.
Limits of the current evidence
The authors state that one transfer model for all cameras of a large dataset is not optimal, because cameras can present different styles. On PRID, a PTGAN learned for each individual target camera performs better, which the authors use to explain this. Mapping that accounts for style differences among cameras is left to future work.
The comparison with Cycle-GAN is visual, shown on CUHK03 to PRID-cam1 transfers in Fig. 4, and the paper reports no ReID score for Cycle-GAN-transferred data. No experiment removes the identity term, so its separate effect on ReID scores is not measured.
All reported transfer experiments train GoogLeNet as the ReID model. The PRID evaluation uses 200 shared persons, and the MSMT17 combined-training result is shown at one 10% budget. The figure of 6.3 transferred images per annotation is a rough estimate from one comparison.
Paper info
- Authors
- Longhui Wei, Shiliang Zhang, Wen Gao, Qi Tian
- Venue
- arXiv · Preprint
- First published
- 2017-11-23
- Added
- 2026-11-12
- Updated
- 2018-6-25
- Version
- v2
- arXiv
- 1711.08565
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Longhui Wei, Shiliang Zhang, Wen Gao, Qi Tian (2017). Person Transfer GAN to Bridge Domain Gap for Person Re-Identification. arXiv:1711.08565v2. https://arxiv.org/abs/1711.08565v2
BibTeX
@misc{wei2017person,
title = {{Person Transfer GAN to Bridge Domain Gap for Person Re-Identification}},
author = {Longhui Wei and Shiliang Zhang and Wen Gao and Qi Tian},
year = {2017},
eprint = {1711.08565},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1711.08565v2}
}