OmniCompass / schema.json
VCLab-PolyU's picture
Publish embedded-audio metadata and MP4 evaluation guidance
b6d8cb5 verified
Raw History Blame Contribute Delete
9.67 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "OmniCompass annotation schema 1.1",
"$defs": {
"video": {
"type": "object",
"properties": {
"video_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}$"
},
"video_path": {
"type": "string",
"minLength": 1
},
"duration_seconds": {
"type": "number",
"exclusiveMinimum": 0
},
"width": {
"type": "integer",
"minimum": 1
},
"height": {
"type": "integer",
"minimum": 1
},
"fps": {
"type": "object",
"properties": {
"num": {
"type": "integer",
"minimum": 1
},
"den": {
"type": "integer",
"minimum": 1
}
},
"required": [
"num",
"den"
],
"additionalProperties": false
},
"has_audio": {
"type": "boolean"
},
"domain": {
"type": "string",
"minLength": 1
},
"sub_category": {
"type": "string",
"minLength": 1
},
"tracks": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"enum": [
"VL",
"AV"
]
}
},
"source": {
"type": "object",
"properties": {
"dataset": {
"type": "string",
"minLength": 1
},
"video_id": {
"type": "string",
"minLength": 1
},
"url": {
"type": [
"string",
"null"
]
}
},
"required": [
"dataset",
"video_id",
"url"
],
"additionalProperties": false
}
},
"required": [
"video_id",
"video_path",
"duration_seconds",
"width",
"height",
"fps",
"has_audio",
"domain",
"sub_category",
"tracks",
"source"
],
"additionalProperties": false
},
"question": {
"oneOf": [
{
"type": "object",
"properties": {
"question_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}_(vl|av)_tg_01$"
},
"video_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}$"
},
"track": {
"enum": [
"VL",
"AV"
]
},
"task": {
"const": "TG"
},
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"text_image": {
"type": "string",
"minLength": 1
}
},
"required": [
"text",
"text_image"
],
"additionalProperties": false
},
"reference_image": {
"type": "string",
"minLength": 1
},
"ground_truth": {
"type": "object",
"properties": {
"start_time": {
"type": "number"
},
"end_time": {
"type": "number"
}
},
"required": [
"start_time",
"end_time"
],
"additionalProperties": false
}
},
"required": [
"question_id",
"video_id",
"track",
"task",
"question",
"reference_image",
"ground_truth"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"question_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}_(vl|av)_sg_01$"
},
"video_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}$"
},
"track": {
"enum": [
"VL",
"AV"
]
},
"task": {
"const": "SG"
},
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"text_image": {
"type": "string",
"minLength": 1
}
},
"required": [
"text",
"text_image"
],
"additionalProperties": false
},
"reference_image": {
"type": "string",
"minLength": 1
},
"given_interval": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"ground_truth": {
"type": "object",
"properties": {
"start_bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "number",
"minimum": 0,
"maximum": 1000
}
},
"end_bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "number",
"minimum": 0,
"maximum": 1000
}
}
},
"required": [
"start_bbox",
"end_bbox"
],
"additionalProperties": false
}
},
"required": [
"question_id",
"video_id",
"track",
"task",
"question",
"reference_image",
"given_interval",
"ground_truth"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"question_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}_(vl|av)_qa_01$"
},
"video_id": {
"type": "string",
"pattern": "^oc_[0-9]{3}$"
},
"track": {
"enum": [
"VL",
"AV"
]
},
"task": {
"const": "QA"
},
"question": {
"type": "object",
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"text_image": {
"type": "string",
"minLength": 1
}
},
"required": [
"text",
"text_image"
],
"additionalProperties": false
},
"reference_image": {
"type": "string",
"minLength": 1
},
"options": {
"type": "object",
"properties": {
"A": {
"type": "string",
"minLength": 1
},
"B": {
"type": "string",
"minLength": 1
},
"C": {
"type": "string",
"minLength": 1
},
"D": {
"type": "string",
"minLength": 1
},
"E": {
"type": "string",
"minLength": 1
}
},
"required": [
"A",
"B",
"C",
"D",
"E"
],
"additionalProperties": false
},
"qa_type": {
"type": "string",
"minLength": 1
},
"ground_truth": {
"type": "object",
"properties": {
"answer": {
"enum": [
"A",
"B",
"C",
"D",
"E"
]
}
},
"required": [
"answer"
],
"additionalProperties": false
}
},
"required": [
"question_id",
"video_id",
"track",
"task",
"question",
"reference_image",
"options",
"qa_type",
"ground_truth"
],
"additionalProperties": false
}
]
}
},
"oneOf": [
{
"$ref": "#/$defs/video"
},
{
"$ref": "#/$defs/question"
}
]
}