bug fixed
This commit is contained in:
parent
7b0087be3c
commit
2794fbe31c
|
@ -13,7 +13,6 @@ If you've already marked your segmentation dataset by LabelMe, it's easy to use
|
|||
---------
|
||||
|
||||
## New
|
||||
|
||||
- export data as yolo polygon annotation (for YOLOv5 v7.0 segmentation)
|
||||
|
||||
## Installation
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
__version__ = '0.0.5'
|
||||
__version__ = '0.0.6'
|
||||
|
|
|
@ -119,7 +119,6 @@ def save_yolo_image(json_data, json_name, image_dir_path, target_dir):
|
|||
return img_path
|
||||
|
||||
|
||||
|
||||
class Labelme2YOLO(object):
|
||||
|
||||
def __init__(self, json_dir):
|
||||
|
@ -326,7 +325,7 @@ class Labelme2YOLO(object):
|
|||
yaml_file.write('nc: %i\n' % len(self._label_id_map))
|
||||
|
||||
names_str = ''
|
||||
|
||||
|
||||
for label, _ in self._label_id_map.items():
|
||||
names_str += "'%s', " % label
|
||||
names_str = names_str.rstrip(", ")
|
||||
|
|
Loading…
Reference in New Issue