← all repositories
lightly-ai/lightly-train

Vision model training from raw pixels to edge deployment

A single Python framework that pretrains DINOv2/v3 on unlabeled data, then fine-tunes and distills for detection and segmentation tasks.

1.6k stars Python Computer VisionML Frameworks
lightly-train
Not currently ranked — collecting fresh signals.
star history

What it does

LightlyTrain wraps the full vision model lifecycle: self-supervised pretraining of DINOv2 and DINOv3 foundation models on your unlabeled images, then fine-tuning for object detection, instance segmentation, panoptic segmentation, and semantic segmentation. It also handles distillation to shrink models for edge deployment, with ONNX and TensorRT FP16 export built in. The API is a handful of lightly_train.train_* calls rather than a pile of YAML configs.

The interesting bit

The framework ships its own detection head (LTDETR) and integrates EoMT from CVPR 2025 for segmentation, claiming to edge out the original paper’s numbers on COCO—by 0.1 PQ on panoptic and 0.3 mask mAP on instance segmentation with the same DINOv3/ViT-L backbone. It also goes the other direction: PicoDet variants with 1.17M parameters run at 2.2ms on a T4 for embedded use.

Key highlights

  • Pretraining and distillation for DINOv2/v3; custom teacher support added in v0.15.0
  • Object detection with DINOv3 backbones (ConvNeXt and ViT variants), plus tiny PicoDet models for low-power devices
  • Panoptic, instance, and semantic segmentation via EoMT; benchmarks provided on COCO 2017
  • ONNX/TensorRT FP16 export for all tasks; latency numbers measured on NVIDIA T4
  • Python 3.8–3.13, Windows/Linux/macOS

Caveats

  • Commercial use requires contacting the company for a license; the repo does not state an open-source license in the README
  • PicoDet results are marked “preliminary” and “in preview”
  • The README is heavy on benchmark tables and light on architecture or training methodology details

Verdict

Worth a look if you need to go from unlabeled pretraining to deployed detection or segmentation without stitching together three separate frameworks. Skip it if you need fully open licensing clarity or want to roll your own training loops from scratch.

Frequently asked

What is lightly-ai/lightly-train?
A single Python framework that pretrains DINOv2/v3 on unlabeled data, then fine-tunes and distills for detection and segmentation tasks.
Is lightly-train open source?
Yes — lightly-ai/lightly-train is open source, released under the AGPL-3.0 license.
What language is lightly-train written in?
lightly-ai/lightly-train is primarily written in Python.
How popular is lightly-train?
lightly-ai/lightly-train has 1.6k stars on GitHub.
Where can I find lightly-train?
lightly-ai/lightly-train is on GitHub at https://github.com/lightly-ai/lightly-train.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.