Lightly is a computer vision framework for self-supervised learning.


  • Dataset: A collection of raw images.
  • Embedding: Representation of an image in a vector space.
  • Embedding Model: Function (typically a convolutional neural network) to create embeddings from images.
  • Self-supervised Learning: A form of unsupervised learning where the data provides the supervision.

Quick Start

Lightly requires Python 3.5+. We recommend installing Lightly in a Linux or OSX environment.


You can install Lightly and its dependencies from PyPI with:

pip install lightly

We strongly recommend that you install Lightly in a dedicated virtualenv, to avoid conflicting with your system packages.

Next Steps

Head to the documentation and see the things you can achieve with Lightly!