-
Notifications
You must be signed in to change notification settings - Fork 241
/
TAO-format.txt
56 lines (55 loc) · 1.17 KB
/
TAO-format.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Taken from: https://github.com/TAO-Dataset/tao/blob/master/tao/toolkit/tao/tao.py
Annotation file format:
{
"info" : info,
"images" : [image],
"videos": [video],
"tracks": [track],
"annotations" : [annotation],
"categories": [category],
"licenses" : [license],
}
info: As in MS COCO
image: {
"id" : int,
"video_id": int,
"file_name" : str,
"license" : int,
# Redundant fields for COCO-compatibility
"width": int,
"height": int,
"frame_index": int
}
video: {
"id": int,
"name": str,
"width" : int,
"height" : int,
"neg_category_ids": [int],
"not_exhaustive_category_ids": [int],
"metadata": dict, # Metadata about the video
}
track: {
"id": int,
"category_id": int,
"video_id": int
}
category: {
"id": int,
"name": str,
"synset": str, # For non-LVIS objects, this is "unknown"
... [other fields copied from LVIS v0.5 and unused]
}
annotation: {
"image_id": int,
"track_id": int,
"bbox": [x,y,width,height],
"area": float,
# Redundant field for compatibility with COCO scripts
"category_id": int
}
license: {
"id" : int,
"name" : str,
"url" : str,
}