Skip to content

Commit 41b1b3c

Browse files
author
Vincent Lostanlen
committed
discard last hop (half-silent by definition)
1 parent 05b1768 commit 41b1b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeepInstruments/singlelabel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def chunk(self, test_stems):
229229
for file_id in range(len(X[instrument_id])):
230230
Y_id = Y_hop - 1
231231
last_index = indices[instrument_id][file_id][-1]
232-
while Y_id < last_index:
232+
while Y_id < (last_index-Y_hop):
233233
Y_chunk = Y[instrument_id][file_id][:, Y_id]
234234
if np.max(Y_chunk) > 0.5:
235235
X_id = int(Y_id * 2048.0 / self.hop_length)

0 commit comments

Comments
 (0)