admin管理员组

文章数量:1550651

模型调试过程中遇到的小错误

由于早先急着把模型跑出来,所以就没有细细看每个代码,现在要仔细看代码了,遇到了一些错误,进行一些简单的记录。第一个错误是自己搜到的解决方法,第二和第三个是通过向Y老师求助得到的解决的。
论文题目:A proposal for Multimodal Emotion Recognition using aural transformers and Action Units on RAVDESS dataset

错误1:早先没有 apex 这个库,后面使用了 pip 对其进行安装了,可是还是不可以使用,于是就放弃了。
解决方案:不能直接使用 pip 对其直接进行安装,详细的解决办法请看链接内容。
在 CSDN 上的某篇博客上解决了这个问题,很感谢这位博客大佬,在此附上这篇博客的连接,
解决python中的apex库安装方法

错误2描述
AssertionError: Attempted unscale_ but _scale is None. This may indicate your script did not use scaler.scale(loss or outputs) earlier in the iteration.(如下图所示)

本文标签: 过程中模型错误