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

Train the final layer #334

Open
monjurulkarim opened this issue Feb 13, 2020 · 2 comments
Open

Train the final layer #334

monjurulkarim opened this issue Feb 13, 2020 · 2 comments

Comments

@monjurulkarim
Copy link

Hi, Thanks for this amazing repository.
I am trying to train only the final layer ( network head) with my own very small dataset. How can I do that? Can you please help?

@dbolya
Copy link
Owner

dbolya commented Feb 19, 2020

You can do this by following the fine tuning procedure (#36) and then here:

p = pred_layer(pred_x)
replace that with

p = pred_layer(pred_x.detach())

@edrica-caruana
Copy link

Hi, I am trying to train on a very small dataset consisting of only 10 train images and 5 val images. When calculating mAP it is remaining everything 0. Is it because the dataset is relatively small? Thanks

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