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 can I load a trained model in python with torch? #236

Open
sun-peach opened this issue Jul 14, 2020 · 2 comments
Open

How can I load a trained model in python with torch? #236

sun-peach opened this issue Jul 14, 2020 · 2 comments

Comments

@sun-peach
Copy link

Hi, I have followed the librispeech cfg to train a model. Now I would like to load it in python code with torch. I will use it as a pretrained module within a complex system. Do you have any tutorial to do that? Thank you.

@TParcollet
Copy link
Collaborator

The .pkl that is saved is pretty standard ! You can load it with torch.load()

@sun-peach
Copy link
Author

sun-peach commented Jul 26, 2020

Thank you. Will it save the intermediate model somewhere? I make it run 15 epochs, while I don't see any .pkl files in the corresponding model directory (I set the out_folder in the config file) during training (currently, it has run 9 epochs). Should I just wait until it finish all the epochs?

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