From 40a2be29c821554df482b8db3de7022701216b1f Mon Sep 17 00:00:00 2001 From: SWHL Date: Wed, 11 Dec 2024 08:09:46 +0800 Subject: [PATCH] chore: optimize code --- label_convert/labelme_to_coco.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_convert/labelme_to_coco.py b/label_convert/labelme_to_coco.py index c3e877e..70a6420 100644 --- a/label_convert/labelme_to_coco.py +++ b/label_convert/labelme_to_coco.py @@ -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