Json Format
The basic json format is as follows:
[
{
"image_id":1,
"image": "folder/imagename1.png",
"metadata": {},
"model_metric":{}
},
{
"image_id":2,
"image": "folder/imagename2.png",
"metadata": {},
"model_metric":{}
}
]
key | 설명 | 형식 | 예시 |
---|---|---|---|
image_id | Unique ID for the image to distinguish between different images. Used for information updates or when uploading annotations and inference results later. | number (integer >= 0) | 1 |
image | Path or name of the image. - Cloud integration: Path below the linked folder. - Direct upload: File name with image extension. | string | "folder/img.jpg" |
metadata_key | Value for each registered metadata key. - Text type: array. - Number type: number | array or number | |
model_metric_key | Value for each registered model metric key. - Text type: array. - Number type: number | array or number |
- When uploading new source data (images)
- The value must be the same as the previously registered key value.
- When only modifying metadata or model metric information of already uploaded data
[
{
"image_id":1,
"metadata": {},
"model_metric":{}
},
{
"image_id":2,
"metadata": {},
"model_metric":{}
}
]
Error Code
If there is an error in the json format, an error occurs during the verification process.
In this case, modify the json file and re-upload it after referring to the Error Code below.
Error Code | Status |
---|---|
Syntax error | The json syntax is incorrect or the ID is not an integer greater than or equal to 0, or a key (Metadata, ModelMetric, etc.) that does not match the template is written. |
Duplicated Image ID | There are duplicate IDs in Image ID.. |
Metadata key does not exist | There is an unregistered Metadata key. |
Metadata value error | The value format of Metadata is incorrect, or the value that does not match the registered type (Text, Num) is entered. |
Model metric value error | The value format of Model Metric is incorrect, or the value that does not match the registered type (Text, Num) is entered. |
Invalid Case
Syntax error
Please write according to the template.
Duplicated Image ID
Please be careful not to duplicate the image_id value.
Value error
You need to put the value according to the Key Setting.
Key error
You need to put the key value according to the Key Setting.