Update README.md
Browse files
README.md
CHANGED
@@ -78,8 +78,11 @@ emotion_label_list = [
|
|
78 |
'Other'
|
79 |
]
|
80 |
|
81 |
-
# Load data, here just zeros as the example
|
82 |
-
data
|
|
|
|
|
|
|
83 |
logits, embedding, _, _, _, _ = model(
|
84 |
data, return_feature=True
|
85 |
)
|
|
|
78 |
'Other'
|
79 |
]
|
80 |
|
81 |
+
# Load data, here just zeros as the example
|
82 |
+
# Our training data filters output audio shorter than 3 seconds (unreliable predictions) and longer than 15 seconds (computation limitation)
|
83 |
+
# So you need to prepare your audio to a maximum of 15 seconds, 16kHz and mono channel
|
84 |
+
max_audio_length = 15 * 16000
|
85 |
+
data = torch.zeros([1, 16000]).float().to(device)[:, :max_audio_length]
|
86 |
logits, embedding, _, _, _, _ = model(
|
87 |
data, return_feature=True
|
88 |
)
|