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

How to save the model ? Since the training code has not been released yet , So I want to train the model myself. I am wondering how should I save the model correctly. Looking forward to your reply! #16

Open
sulizhi opened this issue Jul 5, 2023 · 2 comments

Comments

@sulizhi
Copy link

sulizhi commented Jul 5, 2023

No description provided.

@sulizhi
Copy link
Author

sulizhi commented Jul 5, 2023

I used the 'hiera_base_16x224.pth' model to train the other datasets, but the results of r2 are always 0.05x. I think it maight be wrong when I load and save the model. Here are my code of loading and saving the model. Can you point out where I was wrong? Thanks very much!
image
image

@dbolya
Copy link
Contributor

dbolya commented Jul 5, 2023

Hi, why are you setting model.head.bias.data[0] = 55.6?

Also it probably doesn't matter in this case, but you should probably be setting head.projection to be that linear, not head itself.

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

2 participants