-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
67 lines (67 loc) · 2.28 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
class Config:
def __init__(self):
self.audio_ratio = 0.3
self.emotion_labels = {
0: 'AN',
1: 'DI',
2: 'FE',
3: 'HA',
4: 'NE',
5: 'SA',
6: 'SU'
}
self.emotion_indices = {
'AN': 0,
'DI': 1,
'FE': 2,
'HA': 3,
'NE': 4,
'SA': 5,
'SU': 6
}
self.logs_path = "logs"
self.audio_classifier_path = "classifiers_output/audio"
self.video_classifier_path = "classifiers_output/video"
self.stages_log_file_name = "eventsModule.log"
self.survey_file_name = "survey_results.csv"
self.audio_header = ['filename', 'max_emotion', 'emotion_label', 'AN', \
'DI', 'FE', 'HA', 'NE', 'SA']
self.video_header = ['filename', 'max_emotion', 'emotion_label', 'AN', \
'FE', 'HA', 'SA', 'SU']
self.audio_labels = ['AN', 'DI', 'FE', 'HA', 'NE', 'SA']
self.video_labels = ['AN', 'FE', 'HA', 'SA', 'SU']
self.survey_header = ["timestamp","1","1a","2","2a","3","3a","4","4a",\
"5","5a","6","6a","7","v","name","blank","Equal","SoftEqual"]
self.survey_labels_dict = {
"R": "HA",
"ZD": "SU",
"Z": "AN",
"ST": "FE",
"S": "SA",
"N": "DI",
'NE': "NE"
}
# [
# beforeGame
# afterFirstRobotSentence
# after1stRound
# after2ndRound
# after3rdRound
# after4thRound
# ]
self.game_stages = [
'askIfWantsToPlay', \
'onStartRound1', \
'onStartRound2', \
'askIfToContinue', \
'onStartRound4', \
'gameEnd' \
]
self.reanalysis_path = './logs_re_analysis'
self.mer_labels = ['AN', 'DI', 'FE', 'HA', 'SA', 'SU', 'NE']
self.vokaturi_labels = ['AN', 'FE', 'HA', 'NE', 'SA']
self.video_reanalysis_header = ['filename', 'max_emotion', \
'emotion_label', 'AN', 'DI', 'FE', 'HA', 'SA', 'SU', 'NE']
self.audio_reanalysis_header = ['filename', 'max_emotion', \
'emotion_label', 'AN', 'FE', 'HA', 'NE', 'SA']
self.plot_results_path = "./plots"