THU-MIG / RepViT

RepViT: Revisiting Mobile CNN From ViT Perspective [CVPR 2024] and RepViT-SAM: Towards Real-Time Segmenting Anything
https://arxiv.org/abs/2307.09283
Apache License 2.0
730 stars 55 forks source link

The classification accuracy of the flower dataset is low #18

Closed lucy11111111 closed 11 months ago

lucy11111111 commented 11 months ago

QQ图片20231007101512 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.

jameslahm commented 11 months ago

Did you load the pre-trained checkpoint?

lucy11111111 commented 11 months ago

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')

jameslahm commented 11 months ago

No, this is the pre-trained weight of the teacher model. I mean the pre-trained weight of the student model on ImageNet.

lucy11111111 commented 11 months ago

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?

jameslahm commented 11 months ago

The download links for the pre-trained weights are here: https://github.com/THU-MIG/RepViT#models

lucy11111111 commented 11 months ago

May I ask where this weight is loaded in the code? Where do I need to change the code?

jameslahm commented 11 months ago

You could refer to https://pytorch.org/tutorials/beginner/saving_loading_models.html.