Deep Cosine Metric Learning for Person Re-Identification

Nicolai Wojke, Alex Bewley
12/2/2018
cs.CVcs.LG

Official code: nwojke/cosine_metric_learning (602 stars, GPL-3.0, last commit 2022-06-15).

Abstract

Metric learning aims to construct an embedding where two extracted features corresponding to the same identity are likely to be closer than features from different identities. This paper presents a method for learning such a feature space where the cosine similarity is effectively optimized through a simple re-parametrization of the conventional softmax classification regime. At test time, the final classification layer can be stripped from the network to facilitate nearest neighbor queries on unseen individuals using the cosine similarity metric. This approach presents a simple alternative to direct metric learning objectives such as siamese networks that have required sophisticated pair or triplet sampling strategies in the past. The method is evaluated on two large-scale pedestrian re-identification datasets where competitive results are achieved overall. In particular, we achieve better generalization on the test set compared to a network trained with triplet loss.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Deep Cosine Metric Learning for Person Re-identification

602197PythonJan 26, 20184 years agoGPL-3.0

Similar Papers

Cite this paper

@article{wojke2018deep,
  title  = {Deep Cosine Metric Learning for Person Re-Identification},
  author = {Nicolai Wojke and Alex Bewley},
  year   = {2018},
  eprint = {1812.00442},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1812.00442}
}

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/1812.00442.svg)](https://codeofpaper.com/paper/1812.00442)

Discussion