lightly-ai / lightly-ai/lightly-train

[FEAT] FFCV implementation for dataset

Open
#771 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1.7k
Forks
116
Avg merge
2d 21h
Merged PRs (30d)
6

Description

Hello,

thanks for the library! I am using

if __name__ == "__main__":
# Distill the knowledge from a DINOv3 teacher into a YOLOv8 model
lightly_train.pretrain(
out="out/my_experiment",
data="my_data_dir",
model="ultralytics/yolov8s",
method="distillation",
method_args={
"teacher": "dinov3/vitb16",
},
)

However, using a data directory with the images for SSL can be inefficient. Is there a way to implement this using a .beton (from FFCV library) in order to improve training speed?

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the lightly_train.pretrain entry point shown in the issue and trace how its data argument is consumed for self-supervised training. Investigate how an FFCV .beton dataset could fit that path; done should mean the feature's scope and supported input behavior are defined, with training-speed improvement assessed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.