提交 0b965c92 编写于 作者: S SunAhong1993 提交者: qingqing01

Fix the x2coco (#104)

* Update x2coco.py
上级 b5b4dc8f
......@@ -132,7 +132,7 @@ def deal_json(ds_type, img_path, json_path):
image_num = -1
object_num = -1
for img_file in os.listdir(img_path):
img_label = img_file.split('.')[0]
img_label = os.path.splitext(img_file)[0]
if img_file.split('.')[
-1] not in ['bmp', 'jpg', 'jpeg', 'png', 'JPEG', 'JPG', 'PNG']:
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册