Label Export Result Format
Example File and Structure of each Label Export Formats
When you export labels, a compressed zip file will be created for you to download. This page explains the details of how the export result file created from a single export job is structured and formatted.
Below are file structures and examples of each format:
-
Superb AI(Default) : This format produces JSON files. It supports all annotation types and includes the files below when downloaded.
folder structure ├── labels/ │ ├── {label-id}.json │ └── ... │ └── meta/ │ ├── {dataset-name}/{data-key}.json │ └── ... │ └── project.json- Labels (folder) : This folder contains JSON files, each of which has a filename that corresponds to the unique key value (label id) of an individual label.
- meta (folder) : This folder contains JSON files with metadata of each label.
- project.json : This is a JSON file that contains the overall information of a project.
-
COCO Style : This format produces JSON files. It supports all annotation types and includes the files below when downloaded.
The original COCO data format offers separate JSON files for each purpose, such as Detection, Captioning, Keypoints, DensePose, Stuff, Panoptic, etc.
folder structure ├── segmentation.json └── keypoint.json- segmentation.json : This file contains detailed segmentation information of annotations for Object Detection training, including the specific coordinates.
- keypoint.json : This file contains detailed keypoint information of annotations for Keypoint Detection or Pose Estimation training, including the specific coordinates for machine learning tasks that use keypoints.
-
YOLO Style : This format produces TXT files. It supports bounding boxes and polygons (converted into bounding boxes) and includes below files when downloaded.
YOLO is the name of an object detection model, and it takes inputs in a single data format called the YOLO format. It provides less information than COCO, and supports bounding box only.
folder structure ├── {project-name}/{dataset}/ │ ├── {data-key}.txt │ └── ... │ └── classes.txt- dataset folder : Folders are created based on labels’ datasets, so the number of folders equals the number of datasets that the labels belong to. The folders contain annotation TXT files of individual labels.
- classes.txt : Folders are created based on labels’ datasets, so the number of folders equals the number of datasets that the labels belong to. The folders contain annotation TXT files of individual labels.
1. Default Format
An example of a file according to the Export Format provided by default in Suite is as follows.
- Superb AI(Default)
-
Labels (JSON file of each label)
{ "objects": [ { "id": "f19a7560-d7e8-45c5-838e-edb668fcaab5", "class_id": "4e68d533-35f3-4ec0-9e90-bebf67b0227b", "tracking_id": 1, "class_name": "cereal", "annotation_type": "polygon", "annotation": { "multiple": true, "coord": { "points": [ [ [ { "x": 507.0283687943259, "y": 417.2146323254947 }, { "x": 509.68047779021987, "y": 865.8129899216124 }, { "x": 927.3157894736839, "y": 854.0287420679356 }, { "x": 911.2724897349754, "y": 414.6147816349385 }, { "x": 507.0283687943259, "y": 417.2146323254947 } ] ] ] }, "meta": { "z_index": 1, "visible": true, "alpha": 1, "color": "#FF625A" } }, "properties": [] } ], "categories": { "properties": [] } } -
meta (JSON file of metadata of each label)
{ "data_key": "apples.jpg", "dataset": "0104-test", "image_info": { "width": 6016, "height": 4016 }, "label_id": "3498d02e-828f-4eea-ad1d-118e2b54fc9b", "label_path": [ "labels/3498d02e-828f-4eea-ad1d-118e2b54fc9b.json" ], "last_updated_date": "2023-01-18T09:44:08.233166Z", "tags": [], "work_assignee": "[email protected]", "status": "SUBMITTED" } -
project.json (JSON file of the overall project information)
{ "type": "image-siesta", "version": "0.6.4", "data_type": "image", "categorization": { "properties": [] }, "object_detection": { "keypoints": [], "object_groups": [], "object_classes": [ { "id": "4b078eba-c10b-45fc-b38f-c497e38d0c76", "name": "donut", "color": "#72BBFF", "properties": [], "constraints": {}, "ai_class_map": [], "annotation_type": "polygon" }, { "id": "80244296-265c-42dd-82f4-57a2f0c16542", "name": "apple", "color": "#AF48FF", "properties": [], "constraints": {}, "ai_class_map": [], "annotation_type": "polygon" }, { "id": "4e68d533-35f3-4ec0-9e90-bebf67b0227b", "name": "cereal", "color": "#FF625A", "properties": [], "constraints": {}, "ai_class_map": [], "annotation_type": "polygon" }, { "id": "75b9ea60-6c51-440e-9682-7bd9b884c184", "name": "taxi", "color": "#FFF73E", "properties": [], "constraints": {}, "ai_class_map": [], "annotation_type": "polygon" } ], "annotation_types": [ "polygon" ] } }
-
2. COCO Format
In Suite, labels for Detection and Keypoint tasks can be exported in the COCO style. The COCO style offered by Suite includes all data provided by the original COCO format, as well as some additional fields that may be useful for data labeling. Additional fields include: image_properties (for image categorization), rotated_box, polyline, 2d_cuboid, and object_properties.
1. segmentation.json
- Composition of an annotation:
{
"info": {...},
"licenses": [...],
"images": [...],
"annotations": [...],
"categories": [...], <-- Not in Captions annotations
"segment_info": [...] <-- Only in Panoptic annotations
}
Segmentation of the Original COCO format and other fields are displayed in the form of field as shown below.
| annotation | Suite COCO format |
|---|---|
|
|
| id, url, name -> Removed as it is unnecessary. |
|
|
|
|
|
|
|
|
| segment_info | Valid information for Panoptic only |
- segmentation.json - example file
{
"info":{
"description":"Exported from Superb AI Suite",
"contributor":"Superb AI",
"url":"https://www.superb-ai.com/",
"date_created":"2023-01-13T05:09:58.237939"
},
"licenses":[
],
"categories":[
{
"id":1,
"name":"box",
"supercategory":null
},
{
"id":2,
"name":"rbox",
"supercategory":null
},
{
"id":3,
"name":"poly",
"supercategory":null
},
{
"id":4,
"name":"poly_seg",
"supercategory":null
},
{
"id":5,
"name":"2d_cuboid",
"supercategory":null
},
{
"id":6,
"name":"\ubc15\uc2a4",
"supercategory":null
}
],
"image_properties":[
{
"id":1,
"image_id":0,
"name":"ms_cate",
"type":"checkbox",
"value":[
]
},
{
"id":2,
"image_id":0,
"name":"fr_cate",
"type":"free response",
"value":""
},
{
"id":3,
"image_id":1,
"name":"fr_cate",
"type":"free response",
"value":";;lkjlkjlkjlkj"
},
{
"id":4,
"image_id":2,
"name":"ms_cate",
"type":"checkbox",
"value":[
"ms_1"
]
},
{
"id":5,
"image_id":2,
"name":"fr_cate",
"type":"free response",
"value":"dasd"
},
{
"id":6,
"image_id":3,
"name":"ms_cate",
"type":"checkbox",
"value":[
"ms_1"
]
},
{
"id":7,
"image_id":3,
"name":"fr_cate",
"type":"free response",
"value":""
}
],
"images":[
{
"id":0,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"219-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":1,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"650-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":2,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"50-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":3,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"242-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
}
],
"annotations":[
{
"id":1,
"image_id":0,
"iscrowd":0,
"category_id":1,
"bbox":[
83.32, //The x-coordinate (horizontal position) of the top-left corner of the bounding box.
111.57,//The y-coordinate (vertical position) of the top-left corner of the bounding box.
80.65, //The width of the bounding box.
84.07 //The height of the bounding box.
],
"area":6781.41,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"box Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"box Property (2)",
"type":"free response",
"value":"\u3141\u3134\u3147\u3139"
},
{
"name":"box Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":2,
"image_id":1,
"iscrowd":0,
"category_id":1,
"bbox":[
26.33,
24.18,
36.22,
25.27
],
"area":915.54,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"box Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"box Property (2)",
"type":"free response",
"value":"\u3134\u3141\u3147\u3139\u3134\u3139"
},
{
"name":"box Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":3,
"image_id":1,
"iscrowd":0,
"category_id":1,
"bbox":[
95.23,
29.45,
41.04,
22.77
],
"area":934.61,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"box Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"box Property (2)",
"type":"free response",
"value":"\u3134\u3147\u3139\u3141"
},
{
"name":"box Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":4,
"image_id":1,
"iscrowd":0,
"category_id":2,
"bbox":null,
"area":null,
"segmentation":null,
"rbox":[
55.66, //The x-coordinate of the center of the rotated bounding box.
84.02, //The y-coordinate of the center of the rotated bounding box.
27.83, //The width of the rotated bounding box.
22.43, //The height of the rotated bounding box.
24.28 //The angle of rotation for the bounding box, typically measured in degrees.
],
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"rbox Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"rbox Property (2)",
"type":"free response",
"value":"\ubc15\uc900\uaddc"
},
{
"name":"rbox Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":5,
"image_id":1,
"iscrowd":0,
"category_id":2,
"bbox":null,
"area":null,
"segmentation":null,
"rbox":[
103.66,
80.11,
26.08,
18.32,
79.50
],
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"rbox Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"rbox Property (2)",
"type":"free response",
"value":"asdasd"
},
{
"name":"rbox Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":6,
"image_id":1,
"iscrowd":0,
"category_id":3,
"bbox":null,
"area":null,
"segmentation":null,
"rbox":null,
"polyline":[
[
20.558478447602653,
144.78210897235672,
40.8645117523036,
117.29255329533031,
40.97066316570357,
145.8216607449633,
51.84203205528655,
122.22127323129781,
54.04741917851004,
147.00396786662503,
66.28594506481335,
119.90058371076057,
70.15315086678117,
150.43741703107918,
82.02197700296733,
118.93057941589879
]
],
"cuboid2d":null,
"object_properties":[
{
"name":"poly Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"poly Property (2)",
"type":"free response",
"value":"\u3141\u3134\u3147\u3139\u3141\u3134\u3139"
},
{
"name":"poly Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":7,
"image_id":1,
"iscrowd":0,
"category_id":4,
"bbox":[
20.00,
159.00,
78.00,
36.00
],
"area":1406.00,
"segmentation":{
"size":[
300,
200
],
"counts":"_Q61X93H7I8K5N2O1N2N2O11O0_OdG2\\8LfG4Z8JiG5W8JjG6V8JhG7Z8=00000000001@bG0^8NfG0[8MgG3Y8NgG1Z8NeG3[8NbG4_8K_G7a883M2M4M2N]j3EnUL4L3M4L3M4L3M4M2N00100O001O11N1000001N10000N3M3M2N3L4M3M2N3MPgm0"
},
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
{
"name":"poly_seg Property (1)",
"type":"checkbox",
"value":[
"Untitled Option (1)",
"Untitled Option"
]
},
{
"name":"poly_seg Property (2)",
"type":"free response",
"value":"\u3141\u3134\u3147\u3139\u3134"
},
{
"name":"poly_seg Property",
"type":"radio",
"value":"Untitled Option (1)"
}
]
},
{
"id":8,
"image_id":1,
"iscrowd":0,
"category_id":5,
"bbox":null,
"area":null,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":{
"near":[
15.15,
225.76,
44.94,
37.59
],
"far":[
83.15,
239.28,
5.39,
16.50
]
},
"object_properties":[
{
"name":"2d_cuboid Property (1)",
"type":"checkbox",
"value":[
"Untitled Option",
"Untitled Option (1)"
]
},
{
"name":"2d_cuboid Property (2)",
"type":"free response",
"value":"\u3134\u3147\u3139\u3134\u3147\u3139"
},
{
"name":"2d_cuboid Property",
"type":"radio",
"value":"Untitled Option"
}
]
},
{
"id":9,
"image_id":1,
"iscrowd":0,
"category_id":6,
"bbox":[
118.55,
234.90,
26.53,
24.72
],
"area":656.11,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
]
},
{
"id":10,
"image_id":2,
"iscrowd":0,
"category_id":6,
"bbox":[
77.13,
79.63,
83.57,
76.79
],
"area":6418.40,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
]
},
{
"id":11,
"image_id":3,
"iscrowd":0,
"category_id":6,
"bbox":[
32.33,
76.53,
43.52,
56.01
],
"area":2437.80,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
]
},
{
"id":12,
"image_id":3,
"iscrowd":0,
"category_id":6,
"bbox":[
72.08,
142.09,
43.52,
56.01
],
"area":2437.80,
"segmentation":null,
"rbox":null,
"polyline":null,
"cuboid2d":null,
"object_properties":[
]
}
]
}2. keypoints.json
- Composition of an annotation
{
"info": {...},
"licenses": [...],
"images": [...],
"annotations": [...],
"categories": [...],
}
| annotation | Suite COCO format |
|---|---|
|
|
| id, url, name -> Removed as it is unnecessary. |
|
|
|
|
|
|
|
|
- keypoints.json - example file
{
"info":{
"description":"Exported from Superb AI Suite",
"contributor":"Superb AI",
"url":"https://www.superb-ai.com/",
"date_created":"2023-01-13T05:09:58.237953"
},
"licenses":[
],
"categories":[
{
"id":1,
"name":"face_kp",
"supercategory":null,
"keypoints":[
"left eye center",
"left eye inner corner",
"left eye outer corner",
"right eye center",
"right eye inner corner",
"right eye outer corner",
"left eyebrow inner end",
"left eyebrow outer end",
"right eyebrow inner end",
"right eyebrow outer end",
"nose tip",
"mouth left corner",
"mouth right corner",
"mouth center top lip",
"mouth center bottom lip"
],
"skeleton":[
[
1,
0
],
[
2,
0
],
[
4,
3
],
[
5,
3
],
[
7,
6
],
[
9,
8
],
[
13,
11
],
[
14,
11
],
[
13,
12
],
[
14,
12
]
]
}
],
"image_properties":[
{
"id":1,
"image_id":0,
"name":"ms_cate",
"type":"checkbox",
"value":[
]
},
{
"id":2,
"image_id":0,
"name":"fr_cate",
"type":"free response",
"value":""
},
{
"id":3,
"image_id":1,
"name":"fr_cate",
"type":"free response",
"value":";;lkjlkjlkjlkj"
},
{
"id":4,
"image_id":2,
"name":"ms_cate",
"type":"checkbox",
"value":[
"ms_1"
]
},
{
"id":5,
"image_id":2,
"name":"fr_cate",
"type":"free response",
"value":"dasd"
},
{
"id":6,
"image_id":3,
"name":"ms_cate",
"type":"checkbox",
"value":[
"ms_1"
]
},
{
"id":7,
"image_id":3,
"name":"fr_cate",
"type":"free response",
"value":""
}
],
"images":[
{
"id":0,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"219-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":1,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"650-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":2,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"50-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
},
{
"id":3,
"license":null,
"dataset":"jk_test_dataset",
"file_name":"242-200x300.jpg",
"height":300,
"width":200,
"date_captured":null
}
],
"annotations":[
{
"id":1,
"image_id":1,
"iscrowd":0,
"category_id":1,
"bbox":[
112.82,
126.08,
80.39,
83.16
],
"area":6686.37,
"segmentation":[
[
]
],
"keypoints":[
134.43,
141.69,
2.00,
146.66,
145.71,
2.00,
122.03,
146.83,
2.00,
177.00,
141.25,
2.00,
167.00,
146.78,
2.00,
189.53,
145.76,
2.00,
153.02,
126.75,
2.00,
112.82,
126.08,
2.00,
169.37,
126.36,
2.00,
193.22,
127.82,
2.00,
158.67,
176.44,
2.00,
125.03,
195.25,
2.00,
171.88,
196.31,
2.00,
151.43,
188.06,
2.00,
152.46,
209.25,
2.00
],
"num_keypoints":15
}
]
}3. YOLO Format
One thing to note about the YOLO format is that the labels of each image will be saved as a TXT file that has the same file name as the image. The entire information of classes will be saved in classes.txt, with each class being assigned with an ascending id from 1. And objects of each label are distinguished by \n , which means one row will represent one object. And each string is separated by white space.
Suite supports Object Detection with bbox and polygon, so only those types of annotations will be supported.
- dataset folder
-
apples.txt (example)
# class x_center, y_center, width, height ( <- this line is not visible when exported ) 1 0.3884 0.7764 0.2735 0.3935
-
- classes.txt
-
classes.txt (example)
donut apple cereal taxi
-
Updated about 1 year ago
