diff --git a/tests/test_coco_to_labelImg.py b/tests/test_coco_to_labelImg.py index 92f522d..a4c23e1 100644 --- a/tests/test_coco_to_labelImg.py +++ b/tests/test_coco_to_labelImg.py @@ -16,11 +16,11 @@ def test_normal(): - data_dir = test_file_dir / "YOLOV5_COCO_format" + data_dir = test_file_dir / "COCO_format" converter = COCO2labelImg(data_dir) converter() - save_dir: Path = test_file_dir / "YOLOV5_COCO_format_labelImg_format" + save_dir: Path = test_file_dir / "labelImg_format" assert save_dir.exists() train_dir: Path = save_dir / "train" diff --git a/tests/test_files/YOLOV5_COCO_format/annotations/instances_train2017.json b/tests/test_files/YOLOV5_COCO_format/annotations/instances_train2017.json deleted file mode 100644 index d64ce17..0000000 --- a/tests/test_files/YOLOV5_COCO_format/annotations/instances_train2017.json +++ /dev/null @@ -1,175 +0,0 @@ -{ - "info": { - "year": 2022, - "version": "1.0", - "description": "For object detection", - "date_created": "2022" - }, - "images": [ - { - "date_captured": "2022", - "file_name": "000000000001.jpg", - "id": 1, - "height": 224, - "width": 224 - }, - { - "date_captured": "2022", - "file_name": "000000000002.jpg", - "id": 2, - "height": 424, - "width": 550 - } - ], - "licenses": [ - { - "id": 1, - "name": "Apache License v2.0", - "url": "https://github.com/RapidAI/LabelConvert/LICENSE" - } - ], - "type": "instances", - "annotations": [ - { - "segmentation": [ - [ - 18.000080000000004, - 2.999920000000003, - 105.000112, - 2.999920000000003, - 105.000112, - 89.000016, - 18.000080000000004, - 89.000016 - ] - ], - "area": 7482.011104003072, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 18.000080000000004, - 2.999920000000003, - 87.000032, - 86.000096 - ], - "category_id": 1, - "id": 1 - }, - { - "segmentation": [ - [ - 126.99993599999999, - 3.9999679999999955, - 210.999936, - 3.9999679999999955, - 210.999936, - 88.999904, - 126.99993599999999, - 88.999904 - ] - ], - "area": 7139.994624000001, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 126.99993599999999, - 3.9999679999999955, - 84.0, - 84.999936 - ], - "category_id": 1, - "id": 2 - }, - { - "segmentation": [ - [ - 74.99990400000002, - 76.000064, - 150.99996800000002, - 76.000064, - 150.99996800000002, - 153.000064, - 74.99990400000002, - 153.000064 - ] - ], - "area": 5852.004927999999, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 74.99990400000002, - 76.000064, - 76.000064, - 77.0 - ], - "category_id": 1, - "id": 3 - }, - { - "segmentation": [ - [ - 12.000127999999997, - 135.000096, - 97.00006400000001, - 135.000096, - 97.00006400000001, - 220.00003200000003, - 12.000127999999997, - 220.00003200000003 - ] - ], - "area": 7224.989120004097, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 12.000127999999997, - 135.000096, - 84.999936, - 84.999936 - ], - "category_id": 1, - "id": 4 - }, - { - "segmentation": [ - [ - 132.00006399999998, - 136.999968, - 215.00012799999996, - 136.999968, - 215.00012799999996, - 220.00003199999998, - 132.00006399999998, - 220.00003199999998 - ] - ], - "area": 6889.010624004095, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 132.00006399999998, - 136.999968, - 83.000064, - 83.000064 - ], - "category_id": 1, - "id": 5 - }, - { - "segmentation": [], - "area": 0, - "iscrowd": 0, - "image_id": 2, - "bbox": [], - "category_id": -1, - "id": 6 - } - ], - "categories": [ - { - "supercategory": "stamp", - "id": 1, - "name": "stamp" - } - ] -} \ No newline at end of file diff --git a/tests/test_files/YOLOV5_COCO_format/annotations/instances_val2017.json b/tests/test_files/YOLOV5_COCO_format/annotations/instances_val2017.json deleted file mode 100644 index 05ab046..0000000 --- a/tests/test_files/YOLOV5_COCO_format/annotations/instances_val2017.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "info": { - "year": 2022, - "version": "1.0", - "description": "For object detection", - "date_created": "2022" - }, - "images": [ - { - "date_captured": "2022", - "file_name": "000000000001.jpg", - "id": 1, - "height": 248, - "width": 203 - } - ], - "licenses": [ - { - "id": 1, - "name": "Apache License v2.0", - "url": "https://github.com/RapidAI/LabelConvert/LICENSE" - } - ], - "type": "instances", - "annotations": [ - { - "segmentation": [ - [ - 18.999988000000002, - 16.999904, - 183.000034, - 16.999904, - 183.000034, - 178.999952, - 18.999988000000002, - 178.999952 - ] - ], - "area": 26568.015324002205, - "iscrowd": 0, - "image_id": 1, - "bbox": [ - 18.999988000000002, - 16.999904, - 164.000046, - 162.000048 - ], - "category_id": 1, - "id": 7 - } - ], - "categories": [ - { - "supercategory": "stamp", - "id": 1, - "name": "stamp" - } - ] -} \ No newline at end of file diff --git a/tests/test_files/YOLOV5_COCO_format/train2017/000000000001.jpg b/tests/test_files/YOLOV5_COCO_format/train2017/000000000001.jpg deleted file mode 100644 index 51f5360..0000000 Binary files a/tests/test_files/YOLOV5_COCO_format/train2017/000000000001.jpg and /dev/null differ diff --git a/tests/test_files/YOLOV5_COCO_format/train2017/000000000002.jpg b/tests/test_files/YOLOV5_COCO_format/train2017/000000000002.jpg deleted file mode 100644 index 4e9823c..0000000 Binary files a/tests/test_files/YOLOV5_COCO_format/train2017/000000000002.jpg and /dev/null differ diff --git a/tests/test_files/YOLOV5_COCO_format/val2017/000000000001.jpg b/tests/test_files/YOLOV5_COCO_format/val2017/000000000001.jpg deleted file mode 100644 index 776ddc7..0000000 Binary files a/tests/test_files/YOLOV5_COCO_format/val2017/000000000001.jpg and /dev/null differ