Skip to content

Add DINOv2 to Transformers #23739

@EduardoPach

Description

@EduardoPach

Feature request

Add DINOv2 to the transformers library.

Weights are available in DINOv2 repo

Motivation

Currently, DINOv2 can be used through torch.hub.load, but having it ported to transformers directly would be nice to have, and since DINOv1 is already in the library it might not be that difficult to do

Your contribution

I would love to do a PR to make this addition in the case that it's actually not something hard to do and someone could point me the way that I should look at.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions