PanoLLM_dataset / schema.json
RyanJoy's picture
Update packed release: schema.json
00f27b7 verified
Raw History Blame Contribute Delete
9.71 kB
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.invalid/rjy/release/annotation-v1.schema.json",
"title": "RJY public ERP frame annotation",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"dataset",
"image_id",
"image_file",
"width",
"height",
"label_map_file",
"depth_map_file",
"instances"
],
"properties": {
"schema_version": {
"const": "rjy.release.annotation.v1"
},
"dataset": {
"enum": [
"360_dataset",
"360_indoor",
"osv",
"pass_dataset",
"stanford2d3ds",
"wildpass",
"pandora"
]
},
"image_id": {
"type": "string",
"minLength": 1
},
"image_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
},
"width": {
"type": "integer",
"minimum": 1
},
"height": {
"type": "integer",
"minimum": 1
},
"source": {
"type": "object"
},
"label_map_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
},
"depth_map_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
},
"instances": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"instance_id",
"category",
"label_id",
"bbox_parts_xyxy",
"mask_file",
"mask_area_pixels",
"label_map_pixels",
"fully_occluded_in_label_map",
"direction"
],
"properties": {
"instance_id": {
"type": "string",
"minLength": 1
},
"category": {
"type": "string",
"minLength": 1
},
"label_id": {
"type": "integer",
"minimum": 1,
"maximum": 65535
},
"bbox_parts_xyxy": {
"type": "array",
"minItems": 1,
"maxItems": 2,
"items": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 0
}
}
},
"mask_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
},
"mask_area_pixels": {
"type": "integer",
"minimum": 1
},
"label_map_pixels": {
"type": "integer",
"minimum": 0
},
"fully_occluded_in_label_map": {
"type": "boolean"
},
"physical_instance_id": {
"type": "string"
},
"annotation_type": {
"enum": [
"crowd_group"
]
},
"iscrowd": {
"type": "boolean"
},
"exclude_from_instance_training": {
"type": "boolean"
},
"crop_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
},
"crop_transform": {
"type": "object",
"additionalProperties": false,
"required": [
"horizontal_roll_pixels",
"crop_xyxy_in_rolled_erp"
],
"properties": {
"horizontal_roll_pixels": {
"type": "integer"
},
"crop_xyxy_in_rolled_erp": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "integer",
"minimum": 0
}
}
}
},
"depth": {
"type": "object",
"additionalProperties": false,
"required": [
"status",
"unit",
"sampling",
"valid_pixels",
"mask_pixels_at_depth_resolution"
],
"properties": {
"status": {
"enum": [
"ok",
"ok_approximate",
"ok_group_shared",
"ok_approximate_group_shared",
"insufficient_valid_pixels"
]
},
"unit": {
"const": "meter"
},
"sampling": {
"type": "string"
},
"median": {
"type": "number"
},
"p10": {
"type": "number"
},
"p90": {
"type": "number"
},
"mean": {
"type": "number"
},
"valid_pixels": {
"type": "integer",
"minimum": 0
},
"mask_pixels_at_depth_resolution": {
"type": "integer",
"minimum": 0
},
"group_anchor_instance_id": {
"type": "string"
},
"group_member_ids": {
"type": "array",
"minItems": 2,
"items": {
"type": "string"
}
}
}
},
"caption": {
"type": "object",
"additionalProperties": false,
"required": [
"text",
"visible_category",
"appearance",
"action_or_pose",
"facing_direction",
"occlusion",
"scene_relation",
"quality_status",
"model"
],
"properties": {
"text": {
"type": "string",
"minLength": 1
},
"visible_category": {
"type": "string"
},
"appearance": {
"type": "string"
},
"action_or_pose": {
"type": "string"
},
"facing_direction": {
"type": "string"
},
"occlusion": {
"type": "string"
},
"scene_relation": {
"type": "string"
},
"visibility_caution": {
"type": "boolean"
},
"quality_status": {
"type": "string"
},
"model": {
"type": "string",
"minLength": 1
}
}
},
"direction": {
"type": "object",
"additionalProperties": false,
"required": [
"pixel_uv",
"center_source",
"yaw_deg",
"pitch_deg",
"absolute_direction"
],
"properties": {
"pixel_uv": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"center_source": {
"const": "refined_circular_bbox_center"
},
"yaw_deg": {
"type": "number"
},
"pitch_deg": {
"type": "number"
},
"absolute_direction": {
"enum": [
"top-front",
"top-right",
"top-back",
"top-left",
"middle-front",
"middle-right",
"middle-back",
"middle-left",
"bottom-front",
"bottom-right",
"bottom-back",
"bottom-left"
]
}
}
},
"crop_perspective_file": {
"type": "string",
"pattern": "^(images|crop_direct|crop_perspective|annotations)/[^/].*$"
}
},
"allOf": [
{
"if": {
"properties": {
"iscrowd": {
"const": true
}
},
"required": [
"iscrowd"
]
},
"then": {
"required": [
"annotation_type",
"exclude_from_instance_training"
],
"not": {
"anyOf": [
{
"required": [
"crop_file"
]
},
{
"required": [
"crop_transform"
]
},
{
"required": [
"depth"
]
},
{
"required": [
"caption"
]
}
]
}
},
"else": {
"required": [
"crop_file",
"crop_transform",
"depth",
"caption"
]
}
}
]
}
}
}
}