dinov2 icon indicating copy to clipboard operation
dinov2 copied to clipboard

How to do image feature extractions?

Open linkhochon opened this issue 2 years ago • 3 comments

Hi there!

Is there any documentation or guide on how to use this model as a feature extractor? I'd like to feed it some images and receive features of those images.

Thanks.

linkhochon avatar Apr 18 '23 22:04 linkhochon

No, but that's something we will definitely consider documenting better. Meanwhile I would point you the evaluation code available under dinov2/eval/ which does extract (and combine) features to feed them into simple classifiers.

patricklabatut avatar Apr 18 '23 22:04 patricklabatut

Related:

  • #2

woctezuma avatar Apr 18 '23 23:04 woctezuma

I'll check them out. Thank you both @woctezuma and @patricklabatut! And looking forward to read the documentation once it's available. It'd be very informative! Thanks again :)

linkhochon avatar Apr 19 '23 06:04 linkhochon

Closing this specific issue and keeping #2 open until the documentation is improved.

patricklabatut avatar Apr 19 '23 21:04 patricklabatut