Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
v-dvorak authored Sep 6, 2024
1 parent ff46218 commit 6aac9dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MeasureDetector/create_tf_record_from_joint_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def main(dataset_directory: str, annotations_filename: str, output_path: str, la
current_engraving, number_of_staves = sampling_categories[index % len(sampling_categories)]
all_items_in_category = dataset[current_engraving][number_of_staves]

if len(all_items_in_category) == 0:
index += 1
continue

encoding_succeeded = False
tf_example = None
while not encoding_succeeded:
Expand Down

0 comments on commit 6aac9dc

Please sign in to comment.