Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is pretrained-model? #11

Open
buimanhlinh96 opened this issue Jan 25, 2021 · 5 comments
Open

What is pretrained-model? #11

buimanhlinh96 opened this issue Jan 25, 2021 · 5 comments

Comments

@buimanhlinh96
Copy link

Hi @wang21jun ,
Thanks for your contributor!
In your submit at https://github.com/JDAI-CV/FaceX-Zoo/tree/main/training_mode, i see you had two kind models: SOTA backbones model and SOTA heads model. What is the difference between them?
Thank you!!

@wang21jun
Copy link
Collaborator

SOTA backbones model : models which are trained by the SOTA backbones with the same head, i.e. MV-Softmax.
SOTA heads model : models which are trained by the SOTA heads with the same backbone, i.e. MobileFaceNet.

@buimanhlinh96
Copy link
Author

buimanhlinh96 commented Jan 25, 2021

@wang21jun I got it!
Thank you for your clear answer.

@buimanhlinh96
Copy link
Author

If I just want to train head, not re-train the backbone in my custom dataset. How can i solve it?

@vietth-bka
Copy link

If I just want to train head, not re-train the backbone in my custom dataset. How can i solve it?

You can search keyword freezing backbone pytorch.
Specifically, you can set requires_grad = False for the whole learnable parameters of the backbone. But the easiest way is just putting the parameters of head into the optimizer but not the params of backbone.

@buimanhlinh96
Copy link
Author

@vietth-bka thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants