PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Contrastive Learning Python Packages

Python packages with the GitHub topic contrastive-learning. Sorted by monthly downloads, with stars and forks.
KevinMusgrave
pytorch-metric-learning

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

2M 6K 659
lightly-ai
lightly

A python library for self-supervised learning on images.

105K 4K 374
lightly-ai
lightly-utils

A python library for self-supervised learning on images.

101K 4K 374
lucidrains
x-clip

A concise but complete implementation of CLIP with various experimental improvements from recent papers

18K 725 48
RElbers
info-nce-pytorch

PyTorch implementation of the InfoNCE loss for self-supervised learning.

3K 616 43
lucidrains
contrastive-rl-pytorch

Contrastive Reinforcement Learning

3K 73 5
tensorflow
tfsim-nightly

TensorFlow Similarity is a python package focused on making similarity learning quick and easy.

2K 1K 104
tensorflow
tensorflow-similarity

TensorFlow Similarity is a python package focused on making similarity learning quick and easy.

2K 1K 104
lucidrains
coca-pytorch

Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch

2K 1K 90
Optimization-AI
libauc

LibAUC: A Deep Learning Library for X-Risk Optimization

1K 324 44
AdaptiveMotorControlLab
cebra

Learnable latent embeddings for joint behavioral and neural analysis - Official implementation of CEBRA

1K 1K 102
unum-cloud
uform

Pocket-Sized Multimodal AI for content understanding and generation across multilingual texts, images, and 🔜 video, up to 5x faster than OpenAI CLIP and LLaVA 🖼️ & 🖋️

1K 1K 78
audrina-ebrahimi
ak-ssl

A python library for self-supervised learning

912 12 2
yizhak-lab-ccg
clonetrast

CloneTrast reveals pan-cancer clonal niches of T-cells from single-cell RNA sequencing using contrastive learning

737 2 0
qdrant
quaterion

Blazing fast framework for fine-tuning similarity learning models

635 664 47
teilomillet
kayak

Classify, route, and rank text in Python with self-hosted models. Typed decisions and evaluation.

635 0 0
spijkervet
simclr

PyTorch implementation of SimCLR: A Simple Framework for Contrastive Learning of Visual Representations by T. Chen et al.

629 824 167
DAMO-NLP-SG
inf-cl

[CVPR 2025 Highlight] The official CLIP training codebase of Inf-CL: "Breaking the Memory Barrier: Near Infinite Batch Size Scaling for Contrastive Loss". A super memory-efficiency CLIP training scheme.

542 288 13
StatBiomed
finest

Fine-grained Spatial Transcriptomics by integrating paired histology image

434 35 2
omarkamali
contrastive-ft

CRAFT: Contrastive Representation Aware Fine-Tuning toolkit

381 0 0
yutanagano
sceptr

Highly informative TCR representation model

380 19 3
gao-lab
cell-decipher

DECIPHER for learning high-fidelity disentangled embeddings from spatial omics data

364 25 1
MaximilianWeiland
group-appeal-detector

Python package to automatically detect presence and location of a social group mention in political text as well as the author's stance toward the referenced group and the qualitative group category.

323 0 0
lucidrains
mammut-pytorch

Implementation of MaMMUT, a simple vision-encoder text-decoder architecture for multimodal tasks from Google, in Pytorch

322 103 4
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology