We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b1768 commit 41b1b3cCopy full SHA for 41b1b3c
DeepInstruments/singlelabel.py
@@ -229,7 +229,7 @@ def chunk(self, test_stems):
229
for file_id in range(len(X[instrument_id])):
230
Y_id = Y_hop - 1
231
last_index = indices[instrument_id][file_id][-1]
232
- while Y_id < last_index:
+ while Y_id < (last_index-Y_hop):
233
Y_chunk = Y[instrument_id][file_id][:, Y_id]
234
if np.max(Y_chunk) > 0.5:
235
X_id = int(Y_id * 2048.0 / self.hop_length)
0 commit comments