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关于train.py模版 #201

Open
Jasookii opened this issue Apr 24, 2023 · 5 comments
Open

vig关于train.py模版 #201

Jasookii opened this issue Apr 24, 2023 · 5 comments

Comments

@Jasookii
Copy link

截屏2023-04-24 19 51 26

中间这条的测试结果的Loss为什么这么大呀
@Jasookii
Copy link
Author

截屏2023-04-24 19 54 47

并且有时偶尔会出现nan的情况,我应该怎么办呢

@iamhankai
Copy link
Member

这是哪个模型

@Jasookii
Copy link
Author

我将VIG进行了一定的修改,想问下上述情况是哪里出了问题?

@iamhankai iamhankai changed the title 关于train.py模版 vig关于train.py模版 Apr 25, 2023
@iamhankai
Copy link
Member

出现nan就代表模型已经出现问题了,检查一下模型weight是不是过大或者过小了

@Jasookii
Copy link
Author

hankai大神你好呀,我设置batch_size=128,我发现测试时,最后一个batch的数据量远小于128,并且loss非常大,这正常吗

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