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

每次测试时结果不同 #65

Open
MrWan001 opened this issue Dec 4, 2023 · 2 comments
Open

每次测试时结果不同 #65

MrWan001 opened this issue Dec 4, 2023 · 2 comments

Comments

@MrWan001
Copy link

MrWan001 commented Dec 4, 2023

作者您好,我用训练出的同一个模型权重,在每一次运行test.py测试时得到的结果不同,请问这是什么原因,我应该如何得到一个固定的结果
期待您的回复。

@Algolzw
Copy link
Owner

Algolzw commented Dec 4, 2023

因为我们方法每一步都加了随机噪声所以结果会有不同,你可以尝试设置numpy和pytorch的random seed来固定一下。

@MrWan001
Copy link
Author

MrWan001 commented Dec 9, 2023

好的,感谢您对每一条问题的耐心回复。

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