-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
32 lines (24 loc) · 1.31 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
"""
Configuration file: using this one to keep all the paths in one place for various imports.
TRAINING_FILES_PATH = Path of the training files. Here there are
- the RAVDESS dataset files (Folders Actor_01 to Actor_24
- the TESS dataset renamed files (Folders Actor_25 and Actor_26)
SAVE_DIR_PATH = Path of the joblib features created with create_features.py
MODEL_DIR_PATH = Path for the keras model created with neural_network.py
TESS_ORIGINAL_FOLDER_PATH = Path for the TESS dataset original folder (used by tess_pipeline.py)
"""
import sys
import pathlib
working_dir_path = pathlib.Path().absolute()
if sys.platform.startswith('win32'):
TRAINING_FILES_PATH = str(working_dir_path) + '\\features\\'
SAVE_DIR_PATH = str(working_dir_path) + '\\joblib_features\\'
MODEL_DIR_PATH = str(working_dir_path) + '\\model\\'
TESS_ORIGINAL_FOLDER_PATH = str(working_dir_path) + '\\TESS_Toronto_emotional_speech_set_data\\'
EXAMPLES_PATH = str(working_dir_path) + '\\examples\\'
else:
TRAINING_FILES_PATH = str(working_dir_path) + '/features/'
SAVE_DIR_PATH = str(working_dir_path) + '/joblib_features/'
MODEL_DIR_PATH = str(working_dir_path) + '/model/'
TESS_ORIGINAL_FOLDER_PATH = str(working_dir_path) + '/TESS_Toronto_emotional_speech_set_data/'
EXAMPLES_PATH = str(working_dir_path) + '/examples/'