-
Notifications
You must be signed in to change notification settings - Fork 103
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
混精度训练模式下SIMS数据集中部分video数据在前向传播中会出现NaN #76
Comments
可以提供具体的信息?如如何实现混合精度,与出错误的数据id等信息。 |
实现方法如上,修改自源代码,另外2个数据集都能正常运行 |
SIMS v2数据集中部分样本的vision特征值存在很大的值,我觉得这可能是导致运算出现Nan的原因。你可以试着在forward之前,对vision特征做一次归一化,看看是否还会出现Nan。 |
谢谢你的回复~ |
混精度训练模式下SIMS数据集中部分video数据在前向传播中会出现NaN(audio和text正常),但是关掉混精度模式就没有任何问题,不知道是不是因为特征提取的时候某些值的大小特别小
The text was updated successfully, but these errors were encountered: