forked from Renovamen/Speech-Emotion-Recognition
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfig.py
41 lines (35 loc) · 1.34 KB
/
Config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 参数配置
class Config:
# 数据集路径
DATA_PATH = 'Datasets/CASIA/6'
# 情感标签
CLASS_LABELS = ("angry", "fear", "happy", "neutral", "sad", "surprise")
# CLASS_LABELS = ("positive", "negative", "neutral")
# CLASS_LABELS = ("angry", "boredom", "disgust", "fear", "happy", "neutral", "sad")
# LSTM 的训练 epoch 数
epochs = 20
# Opensmile 标准特征集
CONFIG = 'IS10_paraling'
# Opensmile 安装路径
OPENSMILE_PATH = '/Users/zou/opensmile-2.3.0'
# 每个特征集的特征数量
FEATURE_NUM = {
'IS09_emotion': 384,
'IS10_paraling': 1582,
'IS11_speaker_state': 4368,
'IS12_speaker_trait': 6125,
'IS13_ComParE': 6373,
'ComParE_2016': 6373
}
# 特征存储路径
FEATURE_PATH = 'Features/6-category/'
# 训练特征存储路径(Opensmile)
TRAIN_FEATURE_PATH_OPENSMILE = FEATURE_PATH + 'train_opensmile_casia.csv'
# 预测特征存储路径(Opensmile)
PREDICT_FEATURE_PATH_OPENSMILE = FEATURE_PATH + 'test_opensmile_casia.csv'
# 训练特征存储路径(librosa)
TRAIN_FEATURE_PATH_LIBROSA = FEATURE_PATH + 'train_librosa_casia.p'
# 预测特征存储路径(librosa)
PREDICT_FEATURE_PATH_LIBROSA = FEATURE_PATH + 'test_librosa_casia.p'
# 模型存储路径
MODEL_PATH = 'Models/'