Skip to content

Commit

Permalink
Update shapes_to_coco.py
Browse files Browse the repository at this point in the history
  • Loading branch information
waspinator authored Apr 13, 2018
1 parent 90df8ec commit 6197428
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/shapes/shapes_to_coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ def main():
# go through each associated annotation
for annotation_filename in annotation_files:

if 'square' in image_filename:
print(annotation_filename)
if 'square' in annotation_filename:
class_id = 1
elif 'circle' in image_filename:
elif 'circle' in annotation_filename:
class_id = 2
else:
class_id = 3
Expand Down

0 comments on commit 6197428

Please sign in to comment.