Skip to content

Commit 40a2be2

Browse files
committed
chore: optimize code
1 parent 10ef3b3 commit 40a2be2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

label_convert/labelme_to_coco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def generate_json(self, img_list, save_dir):
198198
shape_type = shape.get("shape_type")
199199
if shape_type not in [RECTANGLE, POLYGON, CIRCLE]:
200200
print(
201-
f"Current shape type is {shape_type}, not between {RECTANGLE}, {CIRCLE} and {POLYGON}, skip"
201+
f"Current shape type is {shape_type}, not in [{RECTANGLE},{CIRCLE},{POLYGON}], skip"
202202
)
203203
continue
204204

0 commit comments

Comments
 (0)