#3535th of 53 in Training and fine-tuning

lightly-train

Python library for pretraining, distilling and fine-tuning computer vision models

Stars
1.7k
License
AGPL-3.0
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+339
21 Apr 2026: 1,395 stars28 Apr 2026: 1,408 stars5 May 2026: 1,420 stars12 May 2026: 1,428 stars19 May 2026: 1,439 stars26 May 2026: 1,445 stars2 Jun 2026: 1,457 stars9 Jun 2026: 1,543 stars16 Jun 2026: 1,554 stars23 Jun 2026: 1,566 stars30 Jun 2026: 1,580 stars7 Jul 2026: 1,586 stars14 Jul 2026: 1,595 stars21 Jul 2026: 1,605 stars28 Jul 2026: 1,613 stars4 Aug 2026: 1,623 stars11 Aug 2026: 1,628 stars18 Aug 2026: 1,637 stars25 Aug 2026: 1,642 stars1 Sept 2026: 1,644 stars8 Sept 2026: 1,650 stars15 Sept 2026: 1,657 stars22 Sept 2026: 1,678 stars29 Sept 2026: 1,684 stars6 Oct 2026: 1,690 stars13 Oct 2026: 1,704 stars20 Oct 2026: 1,710 stars27 Oct 2026: 1,722 stars3 Nov 2026: 1,725 stars10 Nov 2026: 1,734 stars

1,395 on 21 Apr 20261,734 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

LightlyTrain is a Python package for training computer vision models: self-supervised pretraining and distillation (DINOv2/v3) on unlabeled data, plus fine-tuning for object detection, instance, semantic and panoptic segmentation, and depth estimation. Detection uses LTDETR/LTDETRv2 and segmentation uses EoMT, with ONNX and TensorRT export and C++ inference recipes. It is AGPL-3.0; commercial use needs a separate license.

Who it is for: ML engineers training detection and segmentation models for edge deployment

Strengths

  • Covers pretraining, distillation and fine-tuning for detection and several segmentation tasks in one package
  • Pretrained COCO checkpoints with published mAP and TensorRT T4 latency tables
  • ONNX and TensorRT export, plus C++ inference recipes for ONNX Runtime and TensorRT
  • Single pip install; runs on Windows, Linux and macOS with Python 3.8+

Weaknesses

  • AGPL-3.0; production or proprietary use requires a commercial license from Lightly
  • Vision only; no language model training or fine-tuning
  • Benchmarks are on COCO, Cityscapes and NYUv2; custom-data results are not documented in the README
  • Pretraining results depend on data; the README points struggling users to paid expert contact

What it needs

  • GPU optional
  • Needs PyTorch, TensorRT (optional, for export), ONNX Runtime (optional)
  • Models: DINOv2, DINOv3, LTDETR, LTDETRv2, EoMT

Quick answers

Is lightly-train open source?

Yes. Its code is on GitHub under the AGPL-3.0 license.

Does lightly-train need a GPU?

No. It runs on a CPU and can use a GPU when you have one.

Also in Training and fine-tuning

See all 53
Also in Training and fine-tuning
RankProjectScore
1unslothDesktop and web app to run and fine-tune local models Live demo ↗ (opens in a new tab)79.3k stars+1,694 (+2.2%) in 30 daysApache-2.088 out of 100
2peftPython library for LoRA and other parameter-efficient fine-tuning of Transformers models Live demo ↗ (opens in a new tab)21.9k stars+133 (+0.6%) in 30 daysApache-2.088 out of 100
3deepspeedPyTorch library for distributed training of very large models with ZeRO43.3k stars+166 (+0.4%) in 30 daysApache-2.086 out of 100
#4verlReinforcement learning training library for LLM post-training with PPO and GRPO24.2k stars+391 (+1.6%) in 30 daysApache-2.086 out of 100
#5trlPost-training library with SFT, DPO, GRPO and KTO trainers19.7k stars+247 (+1.3%) in 30 daysApache-2.086 out of 100