-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.py
executable file
·72 lines (61 loc) · 1.9 KB
/
parameters.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
68
69
70
71
72
# SENSOR DATA
sensor_id_path = "../sensor_id.txt"
sensor_location_path = "../location.txt"
# CONNECTION DATA
ip = "10.42.0.48"
port = 65432
# SOUND SOURCES AND PREDICTION MODELS
sources = [
"birds",
"construction",
"dogs",
"human",
"music",
"nature",
"siren",
"vehicles",
]
""" models_predictions_path = {
"birds": "data/models/sources/birds.joblib",
"construction": "data/models/sources/construction.joblib",
"dogs": "data/models/sources/dogs.joblib",
"human": "data/models/sources/human.joblib",
"music": "data/models/sources/music.joblib",
"nature": "data/models/sources/nature.joblib",
"siren": "data/models/sources/siren.joblib",
"vehicles": "data/models/sources/vehicles.joblib",
"P": "data/models/model_pleasantness.joblib",
"E": "data/models/model_eventfulness.joblib",
} """
models_predictions_path = {
"birds": "data/models/sources/birds.joblib",
"construction": "data/models/sources/construction.joblib",
"dogs": "data/models/sources/dogs.joblib",
"human": "data/models/sources/human.joblib",
"music": "data/models/sources/music.joblib",
"nature": "data/models/sources/nature.joblib",
"siren": "data/models/sources/siren.joblib",
"vehicles": "data/models/sources/vehicles.joblib",
"P": "data/models/model_pleasantness.joblib",
"E": "data/models/model_eventfulness.joblib",
}
# CLAP MODEL
model_CLAP_path = "data/models/630k-fusion-best_audio_only.pt"
# PCA
pca_path = "data/models/pca_model.pkl"
# TEMPORARY AUDIOS FOLDER
audios_folder_path = "../temporary_audios"
# PREDICTIONS FOLDER
predictions_folder_path = "../predictions"
not_sent_predictions_folder_path = "../predictions_not_sent"
# MIC CALIBRATION
mic_calib_path = "../noisedata_admin/calib.txt"
# CONFIGURATIONS
segment_length = 3
n_segments_intg = 10
# PINS ASSIGNMENT
yellow = 20
red = 21
green = 16
# LIBRARY EXPERIMENT THRESHOLD
human_th = 0.25