Skip to content

[FEAT] Add DINOV3 pre-training #692

Description

@Alighieri1231

Hello! I am playing with the library and while is pretty great I realized there is no Dinov3 pre-training added from scratch. The reason for this feature is while we can use distillation if the dataset is very different to the pre-trained dataset basically the distillation fails.

Example of how distillation of DINOV3 (using the pre-trained checkpoint) worked in lightly for my ultrasound dataset (the model collapses to only see brighness instead of global features):

Image

Using the pre-training recipe for Dinov2 in lightly documentation gave me better results, but as reported in DINOV3 paper once we start training for many steps dense representation fails:

Image

So adding gram anchoring and RoPE (DINOv3) would be amazing for overcoming this. Is this something planned in your milestones? Or maybe distillation is enough for your user base. Could you guide me on how could I pretrain dinov3 with your library? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions