Closed lucy11111111 closed 11 months ago
Did you load the pre-trained checkpoint?
Isn't this a pre-trained weight in the original code? parser.add_argument('--teacher-path', type=str, default='https://dl.fbaipublicfiles.com/deit/regnety_160-a5fe301d.pth')
No, this is the pre-trained weight of the teacher model. I mean the pre-trained weight of the student model on ImageNet.
I see, is it easy to give a download link for the pre-trained weights? Can you tell me exactly how this weight is put into the code?
The download links for the pre-trained weights are here: https://github.com/THU-MIG/RepViT#models
May I ask where this weight is loaded in the code? Where do I need to change the code?
You could refer to https://pytorch.org/tutorials/beginner/saving_loading_models.html.
I used the flower classification dataset from this URL for training:https://www.robots.ox.ac.uk/~vgg/data/flowers/102/, but I got low accuracy without modifying any parameter of the original network, may I ask why this? I used some other dataset for training and also got the same low accuracy.