Skip to content
The Daily Repo

KevinMusgrave / pytorch-metric-learning

Train and evaluate embeddings for similarity search with PyTorch. Includes contrastive losses, hard example mining, samplers, and retrieval metrics.

Why this job: works in the areas we cover, but does not say which job it does

What it does

Train embedding models with composable PyTorch losses, hard-example miners, distances, reducers, and regularizers. Use them in your own training loop for retrieval, clustering, recognition, or learning from pairs and triplets.

Get started

uv pip install pytorch-metric-learning
pip install pytorch-metric-learning
Maintenance
Active
Last commit 4 days ago
Stars
6,343
+1 this week
Licence
MIT
Allows business use
Downloads for
None listed
No release files
Latest version
v3.0.2
Released 4 days ago
Built with
Python
99% of the code

Is it looked after?

Contributors
2
Last 90 days
Issues
100% closed
0 still open
Pull requests
153 merged
0 waiting
Releases
62
8 in the last year

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
KaiyangZhou / deep-person-reid4,94410 months agoMITNo downloads
scikit-learn-contrib / metric-learn1,4307 months agoMITNo downloads
qdrant / quaterion6662 months agoApache-2.0No downloads
More: languages, topics, project record and preview image

Languages

  • Python 99%
  • PowerShell 1%
  • Shell <1%
  • HTML <1%

Topics

  • metric-learning
  • deep-learning
  • computer-vision
  • machine-learning
  • pytorch
  • deep-metric-learning
  • image-retrieval
  • self-supervised-learning
  • contrastive-learning
  • embeddings

Project record

  • JobOther AI tools
  • StatusListed
  • Commits1,534
  • Forks663
  • Watching59
  • Stars in 28 days+8
  • CreatedOct 23, 2019
  • First seen by usNov 7, 2026
  • CheckedNov 9, 2026

Project preview image

Preview image from KevinMusgrave/pytorch-metric-learning

Type to search.

Try