You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi I'm struggle when I want to fine tune pretrained model with my custom dataset. Is there any method to do it? especially to train with pretrained weights and using a custom dataset. Thank you
The text was updated successfully, but these errors were encountered:
Hey Kristian, you will have to load your pretrained model similarly as in the backbones/build.py and make sure that the output dimension is your embedding size and flat. You might have to add a 'classifier' header (sorry for the misleading variable name in the code) in order to get the embedding size that you want or reduce a convolutional tensor to a flat embedding. If you want to use a pretrained model (on ImageNet) that I already implemented, such as AlexNet, VGG16, or MobileNetV2, then you can just provide the corresponding backbone-identifier, an embedding size, and pretrained=True to the build_backbone method.
You should be able to use any custom face image dataset as long as it shares the necessary method from the data/face_dataset.py. Have a look at the main.py, and you will see that as long as you can somehow provide the number of identities present in your training data, you can use any PyTorch dataset.
hi I'm struggle when I want to fine tune pretrained model with my custom dataset. Is there any method to do it? especially to train with pretrained weights and using a custom dataset. Thank you
The text was updated successfully, but these errors were encountered: