---
title: "pytorch-metric-learning"
type: "tool"
slug: "kevinmusgrave-pytorch-metric-learning"
canonical_url: "https://www.graphcanon.com/tools/kevinmusgrave-pytorch-metric-learning"
github_url: "https://github.com/KevinMusgrave/pytorch-metric-learning"
homepage_url: "https://kevinmusgrave.github.io/pytorch-metric-learning/"
stars: 6333
forks: 659
primary_language: "Python"
license: "MIT"
archived: false
categories: ["vector-databases", "model-training", "computer-vision"]
tags: ["embeddings", "deep-learning", "deep-metric-learning", "machine-learning", "image-retrieval", "contrastive-learning", "metric-learning", "computer-vision"]
updated_at: "2026-07-11T11:28:35.855349+00:00"
---

# pytorch-metric-learning

> The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch.

The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch.

## Facts

- Repository: https://github.com/KevinMusgrave/pytorch-metric-learning
- Homepage: https://kevinmusgrave.github.io/pytorch-metric-learning/
- Stars: 6,333 · Forks: 659 · Open issues: 77 · Watchers: 59
- Primary language: Python
- License: MIT
- Last pushed: 2025-08-17T17:08:48+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Slowing (computed 2026-07-11T11:28:34.396Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T11:28:34.901Z
- Full report: [trust report](/tools/kevinmusgrave-pytorch-metric-learning/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/kevinmusgrave-pytorch-metric-learning/trust)

## Categories

- [Vector Databases](/categories/vector-databases.md)
- [Model Training](/categories/model-training.md)
- [Computer Vision](/categories/computer-vision.md)

## Tags

embeddings, deep-learning, deep-metric-learning, machine-learning, image-retrieval, contrastive-learning, metric-learning, computer-vision

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [tensorflow](/tools/tensorflow-tensorflow.md) - An Open Source Machine Learning Framework for Everyone (★ 196,300) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]
- [generative-ai-for-beginners](/tools/microsoft-generative-ai-for-beginners.md) - 21 Lessons, Get Started Building with Generative AI (★ 112,866) [Very active]
- [pytorch](/tools/pytorch-pytorch.md) - Tensors and Dynamic neural networks in Python with strong GPU acceleration (★ 101,752) [Very active]
- [LLMs-from-scratch](/tools/rasbt-llms-from-scratch.md) - Implement a ChatGPT-like LLM in PyTorch from scratch, step by step (★ 98,899) [Steady]
- [DeepSeek-R1](/tools/deepseek-ai-deepseek-r1.md) - Repository contains distilled LLM models derived from Qwen and LLaMA series for various commercial uses. (★ 91,991) [Dormant]

_+ 2 more not listed._

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/kevinmusgrave-pytorch-metric-learning`](/api/graphcanon/tools/kevinmusgrave-pytorch-metric-learning)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
