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

the differences between checkpoint and pretrained model #5

Open
EricKani opened this issue Mar 21, 2018 · 1 comment
Open

the differences between checkpoint and pretrained model #5

EricKani opened this issue Mar 21, 2018 · 1 comment

Comments

@EricKani
Copy link

Hi,

I just want to know the differences between checkpoint and pretrained model in pytorch. Does pytorch have checkpoint files like tensorflow? I just know the .pth file created by function of torch.save.( I am a new user in pytorch, please don't mind if my qusetion is easy...)

Thank you very much!

@twtygqyy
Copy link
Owner

Hi @EricKani basically a pretrained model can be also considered as one checkpoint, the only difference is the way how you would like to use it. For fine-tuning, you could initialize all the weight in the network with a pretrained model, while you could also resume the training from a pretrained model, just treat it as a checkpoint.

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