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

关于ViG验证的问题 #280

Open
Zsl0320 opened this issue Nov 11, 2024 · 2 comments
Open

关于ViG验证的问题 #280

Zsl0320 opened this issue Nov 11, 2024 · 2 comments

Comments

@Zsl0320
Copy link

Zsl0320 commented Nov 11, 2024

大佬,您好。目前我这里是改了一点网络去训练,但是目前遇到了问题,就是在验证预训练模型时,我使用--pretrain_path指定好路径之后,他的loss是不正常的。但是我如果--rusume这个预训练模型去评估时,他的结果就是正常的。请问这个原因是什么呢。感谢
image
image

@Zsl0320
Copy link
Author

Zsl0320 commented Nov 11, 2024

我找到问题所在了,
image
我需要额外加上state_dict = state_dict['state_dict']才可以,我没有更改train.py。为什么会这样呢

@iamhankai
Copy link
Member

ok,那就是train.py代码写错了

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