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

Test error #44

Open
ajie220209 opened this issue May 28, 2024 · 2 comments
Open

Test error #44

ajie220209 opened this issue May 28, 2024 · 2 comments

Comments

@ajie220209
Copy link

Hello, author, I found that you resume_model = os.path.join(") in test.py, the path is blank, may I ask if this is correct? resume_model = os.path.join(checkpoint_dir, 'latest. pth'), I changed it to this, found that the test phase can not always load the latest. pth generated in the train phase, what should I do?

@wurenkai
Copy link
Owner

Hi, in our source code, it was tested by taking the best performing weights in the validation set. If you need to load the latest weights for testing at the end of each epoch in training, we suggest you to modify the code of train.py as needed.

@ajie220209
Copy link
Author

嗨,在我们的源代码中,它是通过在验证集中获取性能最佳的权重来测试的。如果你需要在训练的每个周期结束时加载最新的权重进行测试,我们建议你根据需要修改 train.py 代码。

The main problem I'm facing is that in the training phase, a new result is obtained, which contains the best latest.pth weight file. However, in the test phase, the weight file generated in the training phase cannot be loaded. Instead, a new result is generated by itself and loaded. Because this latest result is not obtained through the training phase, no .pth weight file is generated, and finally a FileNotFoundError: [Errno 2] No such file or directory: error is reported. Consulting the information did not solve this problem.

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