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

No latest.pth! #11

Closed
initbin opened this issue Aug 30, 2019 · 4 comments
Closed

No latest.pth! #11

initbin opened this issue Aug 30, 2019 · 4 comments

Comments

@initbin
Copy link

initbin commented Aug 30, 2019

HI, Thanks for the great repo. I can not get latest.pth in training. What should I do? 
error:
ERROR - No checkpoint ./models/latest.pth!
Thank you.

@XiaLiPKU
Copy link
Owner

XiaLiPKU commented Aug 31, 2019

I set the 'latest.pth' here for restore from previous checkpoints.
Just imagine a situation your training is broken. Then the program autonomously loads the most recent checkpoint names 'latest.pth'. So at the beginning, there's no 'latest.pth', but it wouldn't influence your training

@initbin
Copy link
Author

initbin commented Aug 31, 2019

thanks your reply. The problem has been solved.

@fdujay
Copy link

fdujay commented Aug 31, 2019

thanks your reply. The problem has been solved.

Could you share your solution? I have met the same problem.

@initbin
Copy link
Author

initbin commented Aug 31, 2019

thanks your reply. The problem has been solved.

Could you share your solution? I have met the same problem.

as the author mentioned, it wouldn't influence your training. I found my real error as:
RuntimeError: Expected object of type torch.FloatTensor but found type torch.cuda.FloatTensor for argument #2 'weight'
I change the code in train.py/main:
device = torch.device("cuda:0") loss = sess.train_batch(image.to(device), label.to(device))
another mistake is :"EMANet has no attribute module"
my solution is : delete .module in code.
hope to help you.

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