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

EMO-DB数据集训练问题 #32

Open
Yzing0617 opened this issue May 2, 2022 · 1 comment
Open

EMO-DB数据集训练问题 #32

Yzing0617 opened this issue May 2, 2022 · 1 comment

Comments

@Yzing0617
Copy link

请问在训练EMO-DB数据集时,除了在config里面的路径修改,特征集位置修改,在lstm.py里面的class_lables修改为7之外,请问还要修改其他地方吗,我这里显示这样的报错ValueError: Shapes (32, 6) and (32, 7) are incompatible,感觉是哪里的代码还需要修改,求指正,非常非常感谢!

@Renovamen
Copy link
Owner

在 lstm.py 里面的 class_lables 修改为 7 之外

我不确定你具体是怎么修改的这一点,但原本代码里 LSTM 分类层宽度等于 lstm.yaml 里 class_labels 标签的数量:

n_classes = len(config.class_labels),

所以你有把 lstm.yaml 里的 class_labels:

class_labels: ["angry", "fear", "happy", "neutral", "sad", "surprise"] # 情感标签

改为 EMO-DB 的 7 个标签吗:

# class_labels: ["angry", "boredom", "disgust", "fear", "happy", "neutral", "sad"]

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