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.py出现问题 #22

Open
amazing00adam opened this issue May 11, 2022 · 7 comments
Open

测试的时候test.py出现问题 #22

amazing00adam opened this issue May 11, 2022 · 7 comments

Comments

@amazing00adam
Copy link

学长好,我训练完模型之后,测试的时候运行指令报出这样的错误,您能帮我看看问题出在哪里吗?谢谢!test.py的代码没有做改动
image
代码是这样的:
image
image
还有就是我用的是华为云pytorch1.80运行这个代码会有问题吗?

@15049114601
Copy link

哇,我之前也遇到了相同问题,于是我把test.yml的那个train都注释了,但是又出来训练参数权重不匹配之类的报错,求问该怎么解决?

@15049114601
Copy link

由于不太熟悉深度学习的内容就一直搁浅着,求楼主帮帮忙

@JusperLee
Copy link
Owner

应该是需要使用train.yml吧

@JusperLee
Copy link
Owner

@amazing00adam 你可以贴出你的yml文件么?你的config文件用你训练的时候使用yml即可。train.yml

@amazing00adam
Copy link
Author

这个是train.yml文件
image
下面是test.yml文件
image
image
所以最后一步运行的是train.yml文件吗

@JusperLee
Copy link
Owner

是的,你运行train.yml就好

@amazing00adam
Copy link
Author

好的,谢谢您!

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