Annotations E:\PyCode\JSON2YOLO-master\datasets\coco\annotations\coco.json: 0%| | 0/4 [00:00<?, ?it/s]
Traceback (most recent call last):
File "E:\PyCode\JSON2YOLO-master\123.py", line 543, in
convert_coco_json('datasets/coco/annotations', # directory with *.json
File "E:\PyCode\JSON2YOLO-master\123.py", line 325, in convert_coco_json
with open((fn / f).with_suffix('.txt'), 'a') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'new_dir\labels\coco\JPEGImages\0.txt'
I only have coco.json and some images, but no txt. Json file was transferd by labelme's json.
coco.json
Here is my json. Thank you~
In my environment, the coco file is converted to YOLO segmentation format correctly.
Currently If you need our support to fix this problem, please let us know.
Annotations E:\PyCode\JSON2YOLO-master\datasets\coco\annotations\coco.json: 0%| | 0/4 [00:00<?, ?it/s] Traceback (most recent call last): File "E:\PyCode\JSON2YOLO-master\123.py", line 543, in
convert_coco_json('datasets/coco/annotations', # directory with *.json
File "E:\PyCode\JSON2YOLO-master\123.py", line 325, in convert_coco_json
with open((fn / f).with_suffix('.txt'), 'a') as file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'new_dir\labels\coco\JPEGImages\0.txt'
I only have coco.json and some images, but no txt. Json file was transferd by labelme's json. coco.json Here is my json. Thank you~