ryouchinsa / Rectlabel-support

RectLabel is an offline image annotation tool for object detection and segmentation.
https://rectlabel.com
504 stars 73 forks source link

coco2yolo error #246

Closed QYY66666 closed 8 months ago

QYY66666 commented 8 months ago

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~

ryouchinsa commented 7 months ago

Thanks for writing the issue.

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.

スクリーンショット 2024-01-23 23 07 07