This is a fork from DinoV2 original repository (https://github.com/facebookresearch/dinov2). It has been adapted to perform extended pre-training of pathology foundation models using ExPLoRA (https://arxiv.org/abs/2406.10973) or fully retraining the model.