SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python contrastive-learning Projects
-
pytorch-metric-learning
The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch.
-
Sevalla
Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
-
-
-
solo-learn
solo-learn: a library of self-supervised methods for visual representation learning powered by Pytorch Lightning
-
Unsupervised-Classification
SCAN: Learning to Classify Images without Labels, incl. SimCLR. [ECCV 2020]
-
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 🖼️ & 🖋️
-
CoCa-pytorch
Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
CEBRA
Learnable latent embeddings for joint behavioral and neural analysis - Official implementation of CEBRA
-
lightly-train
LightlyTrain is the first PyTorch framework to pretrain computer vision models on unlabeled data for industrial applications
-
-
x-clip
A concise but complete implementation of CLIP with various experimental improvements from recent papers
-
-
-
-
Unsupervised-Semantic-Segmentation
Unsupervised Semantic Segmentation by Contrasting Object Mask Proposals. [ICCV 2021]
-
-
DiffCSE
Code for the NAACL 2022 long paper "DiffCSE: Difference-based Contrastive Learning for Sentence Embeddings"
-
CSI
CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances (NeurIPS 2020)
-
sapbert
[NAACL'21 & ACL'21] SapBERT: Self-alignment pretraining for BERT & XL-BEL: Cross-Lingual Biomedical Entity Linking.
-
ContraD
Code for the paper "Training GANs with Stronger Augmentations via Contrastive Discriminator" (ICLR 2021)
-
AdCo
AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversaries
-
PromCSE
[EMNLP 2022] Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learning
-
clamp
Code for the paper Enhancing Activity Prediction Models in Drug Discovery with the Ability to Understand Human Language (by ml-jku)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Python contrastive-learning discussion
Python contrastive-learning related posts
-
Show HN: Distill DINOv3 into your own model
-
LightlyTrain: Better Vision Models, Faster – No Labels Needed
-
GPT-4 Week 7. Government oversight, Strikes, Education, Layoffs & Big tech are moving - Nofil's Weekly Breakdown
-
Similarity Learning lacks a framework. So we built one
-
Show HN: Quaterion – x100 faster fine-tuning of similarity learning models
-
[D] Problems with proprietary datasets
-
[N] MIT/Meta AI released their new SOTA unsupervised sentence embedding model "DiffCSE"
-
A note from our sponsor - SaaSHub
www.saashub.com | 1 Sep 2025
Index
What are some of the best open-source contrastive-learning projects in Python? This list will help you:
# | Project | Stars |
---|---|---|
1 | pytorch-metric-learning | 6,216 |
2 | lightly | 3,522 |
3 | InternVideo | 2,022 |
4 | solo-learn | 1,507 |
5 | Unsupervised-Classification | 1,438 |
6 | uform | 1,164 |
7 | CoCa-pytorch | 1,144 |
8 | CEBRA | 1,021 |
9 | lightly-train | 816 |
10 | contrastors | 741 |
11 | x-clip | 711 |
12 | quaterion | 657 |
13 | efficient-gnns | 532 |
14 | TS-TCC | 440 |
15 | Unsupervised-Semantic-Segmentation | 412 |
16 | GradCache | 395 |
17 | DiffCSE | 294 |
18 | CSI | 282 |
19 | sapbert | 195 |
20 | ContraD | 189 |
21 | AdCo | 162 |
22 | PromCSE | 136 |
23 | clamp | 102 |