Skip to content

Commit

Permalink
chore: optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Dec 11, 2024
1 parent 10ef3b3 commit 40a2be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion label_convert/labelme_to_coco.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def generate_json(self, img_list, save_dir):
shape_type = shape.get("shape_type")
if shape_type not in [RECTANGLE, POLYGON, CIRCLE]:
print(
f"Current shape type is {shape_type}, not between {RECTANGLE}, {CIRCLE} and {POLYGON}, skip"
f"Current shape type is {shape_type}, not in [{RECTANGLE},{CIRCLE},{POLYGON}], skip"
)
continue

Expand Down

0 comments on commit 40a2be2

Please sign in to comment.