Hi,
I am trying to finetune a pretrained face model. I have used VGG face model in the below link.
http://www.robots.ox.ac.uk/~albanie/pytorch-models.html 30
But when i load the pretrained weights, it throws the below mentioned error.
RuntimeError: Error(s) in loading state_dict for Vgg_m_face_bn_dag:
size mismatch for fc7.weight: copying a param of torch.Size([4096, 4096, 1, 1]) from checkpoint, where the shape is torch.Size([4096, 4096]) in current model.
Can you please help me to fix the error.
Any suggestion to finetune a pretrained face model will be greatly appreciated