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

Contrastive Learning Python Packages

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

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

3.4M 6K 659
lightly-ai
lightly

A python library for self-supervised learning on images.

171K 4K 334
lightly-ai
lightly-utils

A python library for self-supervised learning on images.

160K 4K 334
lucidrains
x-clip

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

35K 724 49
RElbers
info-nce-pytorch

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

6K 615 43
lucidrains
coca-pytorch

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

4K 1K 89
tensorflow
tensorflow-similarity

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

3K 1K 105
lucidrains
contrastive-rl-pytorch

Contrastive Reinforcement Learning

3K 65 4
Optimization-AI
libauc

LibAUC: A Deep Learning Library for X-Risk Optimization

3K 321 43
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 🖼️ & 🖋️

2K 1K 78
AdaptiveMotorControlLab
cebra

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

2K 1K 98
tensorflow
tfsim-nightly

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

2K 1K 105
theislab
sc-concept

Contrastive pre-training for technology-agnostic single-cell representations beyond reconstruction

1K 36 7
DaoyuanLi2816
labelbank

Retrieve + rerank over a closed label bank: LLM bi-encoders with self-mined hard negatives and a generative listwise reranker

914 20 2
audrina-ebrahimi
ak-ssl

A Self-Supervised Learning Library

904 12 2
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.

894 0 0
filipbasara0
simple-clip

A minimal, but effective implementation of CLIP (Contrastive Language-Image Pretraining) in PyTorch

851 45 8
Quantumx-fn
qx-quark

Vector embeddings for quantum circuits, so equivalent ones land close

748 4 0
lucidrains
mammut-pytorch

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

725 104 4
DAMO-NLP-SG
inf-cl

A highly memory-efficient contrastive loss.

694 287 12
omarkamali
contrastive-ft

CRAFT: Contrastive Representation Aware Fine-Tuning toolkit

688 0 0
linjing-lab
ctdecon

Reference-based cell type deconvolution in spatial transcriptomics.

640 0 0
LongxingTan
open-retrievals

Text Embeddings for Retrieval and RAG based on transformers

615 72 13
filipbasara0
relic-pytorch

A simple PyTorch implementation of the Representation Learning via Invariant Causal Mechanisms self-supervised contrastive learning paper

603 12 5
    • Data from PyPI, GitHub, ClickHouse, and BigQuery