Skip to content
Snippets Groups Projects
Commit f8444c55 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

Update file get_train_annot.py

parent 1e52db4d
Branches
No related tags found
No related merge requests found
......@@ -34,13 +34,12 @@ def main(entry, arguments, species_list):
# Create the list of all possible offset to compute spectrogram
offset_list = np.arange(
0, file_duration, arguments.duration - arguments.overlap)
grp = utils.split_annotations(
grp, arguments.duration)
grp = utils.split_annotations(grp, arguments.duration)
grp = grp.reset_index(drop=True)
while len(grp) != 0:
# collect all the data between the offset and duration-overlap
if len(offset_list) >= 1:
table = grp[grp.start <= offset_list[0] + arguments.duration]
table = grp[grp.start < offset_list[0] + arguments.duration]
else:
continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment