소스 검색

Remove csv files

sfmig 1 년 전
부모
커밋
d4436d4839

+ 0 - 3
test_data/DATA_DESCRIPTION.md

@@ -29,7 +29,6 @@ A small size bounding boxess dataset in VIA, COCO and VIA-CSV formats.
 | --- | --- | --- | --- | --- | --- |
 | `small_bboxes_VIA.json` | bboxes | VIA | 3 | 3 | One bounding box per frame. |
 | `small_bboxes_COCO.json` | bboxes | COCO | 3 | 3 | One bounding box per frame. |
-| `small_bboxes_CSV.json` | bboxes | VIA-CSV | 3 | 3 |  One bounding box per frame. |
 
 
 #### `small_bboxes_dataset_duplicates`
@@ -39,7 +38,6 @@ A small size bounding boxess dataset in VIA, COCO and VIA-CSV formats with dupli
 | --- | --- | --- | --- | --- | --- |
 | `small_bboxes_duplicates_VIA.json` | bboxes | VIA | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames. |
 | `small_bboxes_duplicates_COCO.json` | bboxes | COCO | 4 | 3 |  Duplicate annotation in frame 0, one annotation per frame in the rest of frames.|
-| `small_bboxes_duplicates_CSV.json` | bboxes | VIA-CSV | 4 | 3 | Duplicate annotation in frame 0, one annotation per frame in the rest of frames. |
 
 
 #### `small_bboxes_dataset_no_categories`
@@ -49,5 +47,4 @@ A small size bounding boxess dataset in VIA, COCO and VIA-CSV formats without ca
 | --- | --- | --- | --- | --- | --- |
 | `small_bboxes_no_cat_VIA.json` | bboxes | VIA | 3 | 3 | No categories or supercategories are specified. This data is still supported |
 | `small_bboxes_no_cat_COCO.json` | bboxes | COCO | 3 | 3 |  No categories are specified, so no annotations are exported in COCO format. This data will throw an error. |
-| `small_bboxes_no_cat_CSV.json` | bboxes | VIA-CSV | 3 | 3 | No categories are specified. |
 

+ 127 - 1
test_data/test_annotations/small_bboxes_dataset/small_bboxes_COCO.json

@@ -1 +1,127 @@
-{"info":{"year":2025,"version":"1.0","description":"VIA project exported to COCO format using VGG Image Annotator (http://www.robots.ox.ac.uk/~vgg/software/via/)","contributor":"","url":"http://www.robots.ox.ac.uk/~vgg/software/via/","date_created":"Thu Jan 30 2025 15:16:24 GMT+0000 (Greenwich Mean Time)"},"images":[{"id":0,"width":1280,"height":720,"file_name":"00000.jpg","license":0,"date_captured":""},{"id":83,"width":1280,"height":720,"file_name":"00083.jpg","license":0,"date_captured":""},{"id":166,"width":1280,"height":720,"file_name":"00166.jpg","license":0,"date_captured":""}],"annotations":[{"segmentation":[[963,283,1265,283,1265,455,963,455]],"area":51944,"bbox":[963,283,302,172],"iscrowd":0,"id":1,"image_id":0,"category_id":1},{"segmentation":[[376,314,677,314,677,437,376,437]],"area":37023,"bbox":[376,314,301,123],"iscrowd":0,"id":2,"image_id":83,"category_id":1},{"segmentation":[[458,329,759,329,759,460,458,460]],"area":39431,"bbox":[458,329,301,131],"iscrowd":0,"id":3,"image_id":166,"category_id":1}],"licenses":[{"id":0,"name":"Unknown License","url":""}],"categories":[{"supercategory":"animal","id":1,"name":"crab"}]}
+{
+    "annotations": [
+        {
+            "area": 51944,
+            "bbox": [
+                963,
+                283,
+                302,
+                172
+            ],
+            "category_id": 1,
+            "id": 1,
+            "image_id": 0,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    963,
+                    283,
+                    1265,
+                    283,
+                    1265,
+                    455,
+                    963,
+                    455
+                ]
+            ]
+        },
+        {
+            "area": 37023,
+            "bbox": [
+                376,
+                314,
+                301,
+                123
+            ],
+            "category_id": 1,
+            "id": 2,
+            "image_id": 83,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    376,
+                    314,
+                    677,
+                    314,
+                    677,
+                    437,
+                    376,
+                    437
+                ]
+            ]
+        },
+        {
+            "area": 39431,
+            "bbox": [
+                458,
+                329,
+                301,
+                131
+            ],
+            "category_id": 1,
+            "id": 3,
+            "image_id": 166,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    458,
+                    329,
+                    759,
+                    329,
+                    759,
+                    460,
+                    458,
+                    460
+                ]
+            ]
+        }
+    ],
+    "categories": [
+        {
+            "id": 1,
+            "name": "crab",
+            "supercategory": "animal"
+        }
+    ],
+    "images": [
+        {
+            "date_captured": "",
+            "file_name": "00000.jpg",
+            "height": 720,
+            "id": 0,
+            "license": 0,
+            "width": 1280
+        },
+        {
+            "date_captured": "",
+            "file_name": "00083.jpg",
+            "height": 720,
+            "id": 83,
+            "license": 0,
+            "width": 1280
+        },
+        {
+            "date_captured": "",
+            "file_name": "00166.jpg",
+            "height": 720,
+            "id": 166,
+            "license": 0,
+            "width": 1280
+        }
+    ],
+    "info": {
+        "contributor": "",
+        "date_created": "Thu Jan 30 2025 15:16:24 GMT+0000 (Greenwich Mean Time)",
+        "description": "VIA project exported to COCO format using VGG Image Annotator (http://www.robots.ox.ac.uk/~vgg/software/via/)",
+        "url": "http://www.robots.ox.ac.uk/~vgg/software/via/",
+        "version": "1.0",
+        "year": 2025
+    },
+    "licenses": [
+        {
+            "id": 0,
+            "name": "Unknown License",
+            "url": ""
+        }
+    ]
+}

+ 0 - 4
test_data/test_annotations/small_bboxes_dataset/small_bboxes_CSV.csv

@@ -1,4 +0,0 @@
-filename,file_size,file_attributes,region_count,region_id,region_shape_attributes,region_attributes
-00000.jpg,322877,"{}",1,0,"{""name"":""rect"",""x"":963,""y"":283,""width"":302,""height"":172}","{""animal"":""1""}"
-00083.jpg,311221,"{}",1,0,"{""name"":""rect"",""x"":376,""y"":314,""width"":301,""height"":123}","{""animal"":""1""}"
-00166.jpg,324555,"{}",1,0,"{""name"":""rect"",""x"":458,""y"":329,""width"":301,""height"":131}","{""animal"":""1""}"

+ 112 - 1
test_data/test_annotations/small_bboxes_dataset/small_bboxes_VIA.json

@@ -1 +1,112 @@
-{"_via_settings":{"ui":{"annotation_editor_height":25,"annotation_editor_fontsize":0.8,"leftsidebar_width":18,"image_grid":{"img_height":80,"rshape_fill":"none","rshape_fill_opacity":0.3,"rshape_stroke":"yellow","rshape_stroke_width":2,"show_region_shape":true,"show_image_policy":"all"},"image":{"region_label":"__via_region_id__","region_color":"__via_default_region_color__","region_label_font":"10px Sans","on_image_annotation_editor_placement":"NEAR_REGION"}},"core":{"buffer_size":18,"filepath":{},"default_filepath":""},"project":{"name":"via_project_30Jan2025_15h15m"}},"_via_img_metadata":{"00000.jpg322877":{"filename":"00000.jpg","size":322877,"regions":[{"shape_attributes":{"name":"rect","x":963,"y":283,"width":302,"height":172},"region_attributes":{"animal":"1"}}],"file_attributes":{}},"00083.jpg311221":{"filename":"00083.jpg","size":311221,"regions":[{"shape_attributes":{"name":"rect","x":376,"y":314,"width":301,"height":123},"region_attributes":{"animal":"1"}}],"file_attributes":{}},"00166.jpg324555":{"filename":"00166.jpg","size":324555,"regions":[{"shape_attributes":{"name":"rect","x":458,"y":329,"width":301,"height":131},"region_attributes":{"animal":"1"}}],"file_attributes":{}}},"_via_attributes":{"region":{"animal":{"type":"dropdown","description":"","options":{"1":"crab"},"default_options":{"1":true}}},"file":{}},"_via_data_format_version":"2.0.10","_via_image_id_list":["00000.jpg322877","00083.jpg311221","00166.jpg324555"]}
+{
+    "_via_attributes": {
+        "file": {},
+        "region": {
+            "animal": {
+                "default_options": {
+                    "1": true
+                },
+                "description": "",
+                "options": {
+                    "1": "crab"
+                },
+                "type": "dropdown"
+            }
+        }
+    },
+    "_via_data_format_version": "2.0.10",
+    "_via_image_id_list": [
+        "00000.jpg322877",
+        "00083.jpg311221",
+        "00166.jpg324555"
+    ],
+    "_via_img_metadata": {
+        "00000.jpg322877": {
+            "file_attributes": {},
+            "filename": "00000.jpg",
+            "regions": [
+                {
+                    "region_attributes": {
+                        "animal": "1"
+                    },
+                    "shape_attributes": {
+                        "height": 172,
+                        "name": "rect",
+                        "width": 302,
+                        "x": 963,
+                        "y": 283
+                    }
+                }
+            ],
+            "size": 322877
+        },
+        "00083.jpg311221": {
+            "file_attributes": {},
+            "filename": "00083.jpg",
+            "regions": [
+                {
+                    "region_attributes": {
+                        "animal": "1"
+                    },
+                    "shape_attributes": {
+                        "height": 123,
+                        "name": "rect",
+                        "width": 301,
+                        "x": 376,
+                        "y": 314
+                    }
+                }
+            ],
+            "size": 311221
+        },
+        "00166.jpg324555": {
+            "file_attributes": {},
+            "filename": "00166.jpg",
+            "regions": [
+                {
+                    "region_attributes": {
+                        "animal": "1"
+                    },
+                    "shape_attributes": {
+                        "height": 131,
+                        "name": "rect",
+                        "width": 301,
+                        "x": 458,
+                        "y": 329
+                    }
+                }
+            ],
+            "size": 324555
+        }
+    },
+    "_via_settings": {
+        "core": {
+            "buffer_size": 18,
+            "default_filepath": "",
+            "filepath": {}
+        },
+        "project": {
+            "name": "via_project_30Jan2025_15h15m"
+        },
+        "ui": {
+            "annotation_editor_fontsize": 0.8,
+            "annotation_editor_height": 25,
+            "image": {
+                "on_image_annotation_editor_placement": "NEAR_REGION",
+                "region_color": "__via_default_region_color__",
+                "region_label": "__via_region_id__",
+                "region_label_font": "10px Sans"
+            },
+            "image_grid": {
+                "img_height": 80,
+                "rshape_fill": "none",
+                "rshape_fill_opacity": 0.3,
+                "rshape_stroke": "yellow",
+                "rshape_stroke_width": 2,
+                "show_image_policy": "all",
+                "show_region_shape": true
+            },
+            "leftsidebar_width": 18
+        }
+    }
+}

+ 152 - 1
test_data/test_annotations/small_bboxes_dataset_duplicates/small_bboxes_duplicates_COCO.json

@@ -1 +1,152 @@
-{"info":{"year":2025,"version":"1.0","description":"VIA project exported to COCO format using VGG Image Annotator (http://www.robots.ox.ac.uk/~vgg/software/via/)","contributor":"","url":"http://www.robots.ox.ac.uk/~vgg/software/via/","date_created":"Thu Jan 30 2025 15:23:46 GMT+0000 (Greenwich Mean Time)"},"images":[{"id":0,"width":1280,"height":720,"file_name":"00000.jpg","license":0,"date_captured":""},{"id":83,"width":1280,"height":720,"file_name":"00083.jpg","license":0,"date_captured":""},{"id":166,"width":1280,"height":720,"file_name":"00166.jpg","license":0,"date_captured":""}],"annotations":[{"segmentation":[[963,283,1265,283,1265,455,963,455]],"area":51944,"bbox":[963,283,302,172],"iscrowd":0,"id":1,"image_id":0,"category_id":1},{"segmentation":[[963,283,1265,283,1265,455,963,455]],"area":51944,"bbox":[963,283,302,172],"iscrowd":0,"id":2,"image_id":0,"category_id":1},{"segmentation":[[376,314,677,314,677,437,376,437]],"area":37023,"bbox":[376,314,301,123],"iscrowd":0,"id":3,"image_id":83,"category_id":1},{"segmentation":[[458,329,759,329,759,460,458,460]],"area":39431,"bbox":[458,329,301,131],"iscrowd":0,"id":4,"image_id":166,"category_id":1}],"licenses":[{"id":0,"name":"Unknown License","url":""}],"categories":[{"supercategory":"animal","id":1,"name":"crab"}]}
+{
+    "annotations": [
+        {
+            "area": 51944,
+            "bbox": [
+                963,
+                283,
+                302,
+                172
+            ],
+            "category_id": 1,
+            "id": 1,
+            "image_id": 0,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    963,
+                    283,
+                    1265,
+                    283,
+                    1265,
+                    455,
+                    963,
+                    455
+                ]
+            ]
+        },
+        {
+            "area": 51944,
+            "bbox": [
+                963,
+                283,
+                302,
+                172
+            ],
+            "category_id": 1,
+            "id": 2,
+            "image_id": 0,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    963,
+                    283,
+                    1265,
+                    283,
+                    1265,
+                    455,
+                    963,
+                    455
+                ]
+            ]
+        },
+        {
+            "area": 37023,
+            "bbox": [
+                376,
+                314,
+                301,
+                123
+            ],
+            "category_id": 1,
+            "id": 3,
+            "image_id": 83,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    376,
+                    314,
+                    677,
+                    314,
+                    677,
+                    437,
+                    376,
+                    437
+                ]
+            ]
+        },
+        {
+            "area": 39431,
+            "bbox": [
+                458,
+                329,
+                301,
+                131
+            ],
+            "category_id": 1,
+            "id": 4,
+            "image_id": 166,
+            "iscrowd": 0,
+            "segmentation": [
+                [
+                    458,
+                    329,
+                    759,
+                    329,
+                    759,
+                    460,
+                    458,
+                    460
+                ]
+            ]
+        }
+    ],
+    "categories": [
+        {
+            "id": 1,
+            "name": "crab",
+            "supercategory": "animal"
+        }
+    ],
+    "images": [
+        {
+            "date_captured": "",
+            "file_name": "00000.jpg",
+            "height": 720,
+            "id": 0,
+            "license": 0,
+            "width": 1280
+        },
+        {
+            "date_captured": "",
+            "file_name": "00083.jpg",
+            "height": 720,
+            "id": 83,
+            "license": 0,
+            "width": 1280
+        },
+        {
+            "date_captured": "",
+            "file_name": "00166.jpg",
+            "height": 720,
+            "id": 166,
+            "license": 0,
+            "width": 1280
+        }
+    ],
+    "info": {
+        "contributor": "",
+        "date_created": "Thu Jan 30 2025 15:23:46 GMT+0000 (Greenwich Mean Time)",
+        "description": "VIA project exported to COCO format using VGG Image Annotator (http://www.robots.ox.ac.uk/~vgg/software/via/)",
+        "url": "http://www.robots.ox.ac.uk/~vgg/software/via/",
+        "version": "1.0",
+        "year": 2025
+    },
+    "licenses": [
+        {
+            "id": 0,
+            "name": "Unknown License",
+            "url": ""
+        }
+    ]
+}

+ 0 - 5
test_data/test_annotations/small_bboxes_dataset_duplicates/small_bboxes_duplicates_CSV.csv

@@ -1,5 +0,0 @@
-filename,file_size,file_attributes,region_count,region_id,region_shape_attributes,region_attributes
-00000.jpg,322877,"{}",2,0,"{""name"":""rect"",""x"":963,""y"":283,""width"":302,""height"":172}","{""animal"":""1""}"
-00000.jpg,322877,"{}",2,1,"{""name"":""rect"",""x"":963,""y"":283,""width"":302,""height"":172}","{""animal"":""1""}"
-00083.jpg,311221,"{}",1,0,"{""name"":""rect"",""x"":376,""y"":314,""width"":301,""height"":123}","{""animal"":""1""}"
-00166.jpg,324555,"{}",1,0,"{""name"":""rect"",""x"":458,""y"":329,""width"":301,""height"":131}","{""animal"":""1""}"

+ 0 - 4
test_data/test_annotations/small_bboxes_dataset_no_categories/small_bboxes_no_cat_CSV.csv

@@ -1,4 +0,0 @@
-filename,file_size,file_attributes,region_count,region_id,region_shape_attributes,region_attributes
-00000.jpg,322877,"{}",1,0,"{""name"":""rect"",""x"":947,""y"":280,""width"":294,""height"":178}","{}"
-00083.jpg,311221,"{}",1,0,"{""name"":""rect"",""x"":384,""y"":304,""width"":309,""height"":119}","{}"
-00166.jpg,324555,"{}",1,0,"{""name"":""rect"",""x"":479,""y"":320,""width"":256,""height"":142}","{}"