In Defense of the Triplet Loss for Person Re-Identification

Alexander Hermans, Lucas Beyer, Bastian Leibe
3/22/2017
3,771 citations
cs.CVcs.NE

No official code found. Best implementation: RWTHVision/triplet-reid (761 stars). 3 more below.

Abstract

In the past few years, the field of computer vision has gone through a revolution fueled mainly by the advent of large datasets and the adoption of deep convolutional neural networks for end-to-end learning. The person re-identification subfield is no exception to this.

Show full abstract

Unfortunately, a prevailing belief in the community seems to be that the triplet loss is inferior to using surrogate losses (classification, verification) followed by a separate metric learning step. We show that, for models trained from scratch as well as pretrained ones, using a variant of the triplet loss to perform end-to-end deep metric learning outperforms most other published methods by a large margin.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
RWTHVision/triplet-reidCommunity761–––
huanghoujing/person-reid-triplet-loss-baselineCommunity485–––
CoinCheung/triplet-reid-pytorchCommunity103–––
kilianyp/triplet-reid-pytorchCommunity42–––

Code for reproducing the results of our "In Defense of the Triplet Loss for Person Re-Identification" paper.

761214

Rank-1 89% (Single Query) on Market1501 with raw triplet loss, In Defense of the Triplet Loss for Person Re-Identification, using Pytorch

485127

My implementation of the paper [In Defense of the Triplet Loss for Person Re-Identification]

10324

A pytorch implementation of the "In Defense of the Triplet Loss for Person Re-Identification" paper (https://arxiv.org/abs/1703.07737). It also contains a implementation of the MGN network from the paper "Learning Discriminative Features with Multiple Granularities for Person Re-Identification". Reaches 83.17% mAP with MGN.

429

Similar Papers

Cite this paper

@article{hermans2017defense,
  title  = {In Defense of the Triplet Loss for Person Re-Identification},
  author = {Alexander Hermans and Lucas Beyer and Bastian Leibe},
  year   = {2017},
  eprint = {1703.07737},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1703.07737}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1703.07737.svg)](https://codeofpaper.com/paper/1703.07737)

Discussion