We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems 'glob.glob()' will not fetch the sorted list , this following code cannot load the latest training model . At least it occurred in my laptop.
checkpoint = torch.load(glob.glob(os.path.join(ckpt_folder, '*.pt'))[-1])
I have to sort the list explicitly, so I changed it to this
checkpoint = torch.load(sorted(glob.glob(os.path.join(ckpt_folder, '*.pt')))[-1])
FYI
The text was updated successfully, but these errors were encountered:
@alalan, thank you for your feedback. In this link you may have the solution. I will fix it in my next update. Thank you!
Sorry, something went wrong.
No branches or pull requests
It seems 'glob.glob()' will not fetch the sorted list ,
this following code cannot load the latest training model . At least it occurred in my laptop.
I have to sort the list explicitly, so I changed it to this
FYI
The text was updated successfully, but these errors were encountered: