Python contrastive-learning

Open-source Python projects categorized as contrastive-learning

Top 23 Python contrastive-learning Projects

contrastive-learning
  1. pytorch-metric-learning

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

  2. 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!

    Sevalla logo
  3. lightly

    A python library for self-supervised learning on images.

  4. InternVideo

    [ECCV2024] Video Foundation Models & Data for Multimodal Understanding

  5. solo-learn

    solo-learn: a library of self-supervised methods for visual representation learning powered by Pytorch Lightning

  6. Unsupervised-Classification

    SCAN: Learning to Classify Images without Labels, incl. SimCLR. [ECCV 2020]

  7. 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 🖼️ & 🖋️

  8. CoCa-pytorch

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

  9. 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.

    InfluxDB logo
  10. CEBRA

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

  11. lightly-train

    LightlyTrain is the first PyTorch framework to pretrain computer vision models on unlabeled data for industrial applications

    Project mention: Show HN: Distill DINOv3 into your own model | news.ycombinator.com | 2025-08-15
  12. contrastors

    Train Models Contrastively in Pytorch

  13. x-clip

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

  14. quaterion

    Blazing fast framework for fine-tuning similarity learning models

  15. efficient-gnns

    Code and resources on scalable and efficient Graph Neural Networks (TNNLS 2023)

  16. TS-TCC

    [IJCAI-21] "Time-Series Representation Learning via Temporal and Contextual Contrasting"

  17. Unsupervised-Semantic-Segmentation

    Unsupervised Semantic Segmentation by Contrasting Object Mask Proposals. [ICCV 2021]

  18. GradCache

    Run Effective Large Batch Contrastive Learning Beyond GPU/TPU Memory Constraint

  19. DiffCSE

    Code for the NAACL 2022 long paper "DiffCSE: Difference-based Contrastive Learning for Sentence Embeddings"

  20. CSI

    CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instances (NeurIPS 2020)

  21. sapbert

    [NAACL'21 & ACL'21] SapBERT: Self-alignment pretraining for BERT & XL-BEL: Cross-Lingual Biomedical Entity Linking.

  22. ContraD

    Code for the paper "Training GANs with Stronger Augmentations via Contrastive Discriminator" (ICLR 2021)

  23. AdCo

    AdCo: Adversarial Contrast for Efficient Learning of Unsupervised Representations from Self-Trained Negative Adversaries

  24. PromCSE

    [EMNLP 2022] Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learning

  25. clamp

    Code for the paper Enhancing Activity Prediction Models in Drug Discovery with the Ability to Understand Human Language (by ml-jku)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python contrastive-learning discussion

Log in or Post with

Python contrastive-learning related posts

  • Show HN: Distill DINOv3 into your own model

    1 project | news.ycombinator.com | 15 Aug 2025
  • LightlyTrain: Better Vision Models, Faster – No Labels Needed

    3 projects | news.ycombinator.com | 15 Apr 2025
  • GPT-4 Week 7. Government oversight, Strikes, Education, Layoffs & Big tech are moving - Nofil's Weekly Breakdown

    3 projects | /r/ChatGPT | 7 May 2023
  • Similarity Learning lacks a framework. So we built one

    6 projects | news.ycombinator.com | 13 Jul 2022
  • Show HN: Quaterion – x100 faster fine-tuning of similarity learning models

    1 project | news.ycombinator.com | 28 Jun 2022
  • [D] Problems with proprietary datasets

    4 projects | /r/MachineLearning | 19 May 2022
  • [N] MIT/Meta AI released their new SOTA unsupervised sentence embedding model "DiffCSE"

    3 projects | /r/MachineLearning | 26 Apr 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 Sep 2025
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
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!
sevalla.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?