Merge pull request #554 from sorgfresser/fix-binarize-unbound

fix unboundlocalerror
This commit is contained in:
Max Bain
2023-11-07 10:54:24 +00:00
committed by GitHub

View File

@ -142,6 +142,7 @@ class Binarize:
is_active = k_scores[0] > self.onset is_active = k_scores[0] > self.onset
curr_scores = [k_scores[0]] curr_scores = [k_scores[0]]
curr_timestamps = [start] curr_timestamps = [start]
t = start
for t, y in zip(timestamps[1:], k_scores[1:]): for t, y in zip(timestamps[1:], k_scores[1:]):
# currently active # currently active
if is_active: if is_active: