lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
2.83k stars 246 forks source link

Support for Python 3.12 #1473

Open IgorSusmelj opened 5 months ago

IgorSusmelj commented 5 months ago

This is just for people curious about why they can't use lightly with Python 3.12

The issue is that lightly uses PyTorch and there is not yet a stable release for Python 3.12. There is experimental support when you manually install the nightly build. You can read up more on that in the corresponding PyTorch issue.

We expect support to be there sometime in Q1 2024.

guarin commented 2 months ago

Python 3.12 is now supported with PyTorch 2.2: https://github.com/pytorch/pytorch/issues/110436 although only as a preview. Most likely everything except torch compile already works.

Before supporting 3.12 officially we should also check if PyTorch Lightning has support: https://github.com/Lightning-AI/litgpt/issues/1210