提交 f28504f6 编写于 作者: S sunyanfang01

./paddlex/tools/x2coco.py

上级 79bf200c
...@@ -100,7 +100,7 @@ class LabelMe2COCO(X2COCO): ...@@ -100,7 +100,7 @@ class LabelMe2COCO(X2COCO):
image["height"] = json_info["imageHeight"] image["height"] = json_info["imageHeight"]
image["width"] = json_info["imageWidth"] image["width"] = json_info["imageWidth"]
image["id"] = image_id + 1 image["id"] = image_id + 1
image["file_name"] = json_info["imagePath"].split("/")[-1] image["file_name"] = osp.split(json_info["imagePath"])[-1]
return image return image
def generate_polygon_anns_field(self, height, width, def generate_polygon_anns_field(self, height, width,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册