Pre-training on ImageNet-1K
Installation
Please follow the installation instructions in DINOv2 and install timm==0.9.16 as well.
Dataset
We prepare ImageNet-1K following the instructions in DeiT.
Training
Specify the directory of datasets with
data-pathin the training scriptrun_pretrain.sh.Use the
teacher-modelandtarget_modelparameters to select the appropriate teacher and student models.Specify the model choices with
modelto choose from DINOv2, SynCLR, CLIP.For SynCLR and CLIP training, use the
teacher-pathparameter to indicate the path to the pre-trained teacher model.Simply run the training script as follows:
bash run_pretrain.sh
Acknowledgment
This part is heavily build upon DeiT, DINOv2, SynCLR. We gratefully thank the authors for their wonderful works.