maelic commited on
Commit
a964891
·
verified ·
1 Parent(s): ef3e4a1

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +188 -57
README.md CHANGED
@@ -1,59 +1,190 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: image_id
7
- dtype: int64
8
- - name: width
9
- dtype: int64
10
- - name: height
11
- dtype: int64
12
- - name: file_name
13
- dtype: string
14
- - name: objects
15
- list:
16
- - name: area
17
- dtype: float64
18
- - name: bbox
19
- list: float64
20
- - name: category_id
21
- dtype: int64
22
- - name: id
23
- dtype: int64
24
- - name: iscrowd
25
- dtype: int64
26
- - name: segmentation
27
- list: 'null'
28
- - name: relations
29
- list:
30
- - name: id
31
- dtype: int64
32
- - name: object_id
33
- dtype: int64
34
- - name: predicate_id
35
- dtype: int64
36
- - name: subject_id
37
- dtype: int64
38
- splits:
39
- - name: train
40
- num_bytes: 5917400030
41
- num_examples: 73538
42
- - name: val
43
- num_bytes: 645536730
44
- num_examples: 4844
45
- - name: test
46
- num_bytes: 3647823222
47
- num_examples: 27032
48
- download_size: 15009886603
49
- dataset_size: 10210759982
50
- configs:
51
- - config_name: default
52
- data_files:
53
- - split: train
54
- path: data/train-*
55
- - split: val
56
- path: data/val-*
57
- - split: test
58
- path: data/test-*
59
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - object-detection
5
+ tags:
6
+ - scene-graph-generation
7
+ - visual-relationship-detection
8
+ - visual-genome
9
+ - vg150
10
+ - coco-format
11
+ language:
12
+ - en
13
+ pretty_name: VG150 — Visual Genome 150 (COCO format)
14
+ size_categories:
15
+ - 100K<n<1M
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
+
18
+ # VG150 — Visual Genome 150 (COCO format)
19
+
20
+ This dataset is the standard **VG150** split of
21
+ [Visual Genome](https://homes.cs.washington.edu/~ranjay/visualgenome/index.html)
22
+ (Krishna et al., 2017), the most widely used benchmark for Scene Graph Generation,
23
+ reformatted in standard COCO-JSON format. VG150 contains the top 150 object categories
24
+ and 50 relations from the original Visual Genome dataset, selected by frequency in the
25
+ [Scene Graph Generation by Iterative Message Passing paper](https://arxiv.org/abs/1701.02426).
26
+
27
+ This version in COCO format was produced as part of the
28
+ [SGG-Benchmark](https://github.com/Maelic/SGG-Benchmark) framework and used to train
29
+ the models described in the **REACT** paper
30
+ ([Neau et al., BMVC 2025](https://bmva-archive.org.uk/bmvc/2025/assets/papers/Paper_239/paper.pdf)).
31
+
32
+ > ⚠️ **Bias warning**: VG150 has been heavily criticised for high class overlap and
33
+ > annotation biases (e.g. *person / man / men / people*). See
34
+ > [VrR-VG (ICCV'19)](https://openaccess.thecvf.com/content_ICCV_2019/html/Liang_VrR-VG_Refocusing_Visually-Relevant_Relationships_ICCV_2019_paper.html)
35
+ > and
36
+ > [Neau et al. (ICCVW'23)](https://openaccess.thecvf.com/content/ICCV2023W/SG2RL/html/Neau_Fine-Grained_is_Too_Coarse_A_Novel_Data-Centric_Approach_for_Efficient_ICCVW_2023_paper.html)
37
+ > for reference.
38
+
39
+ ---
40
+
41
+ ## Annotation overview
42
+
43
+ Each image comes with:
44
+ - **Object bounding boxes** — 150 Visual Genome object categories.
45
+ - **Scene-graph relations** — 50 predicate categories connecting pairs of objects as
46
+ directed `(subject, predicate, object)` triplets.
47
+
48
+ ![Annotation example — val split](vg150_samples_val.png)
49
+
50
+ *Four random validation images with bounding boxes (coloured by category) and
51
+ relation arrows (yellow, labelled with the predicate name).*
52
+
53
+ ---
54
+
55
+ ## Dataset statistics
56
+
57
+ | Split | Images | Object annotations | Relations |
58
+ |-------|--------:|-------------------:|-----------:|
59
+ | train | 73 538 | 793 061 | 439 063 |
60
+ | val | 4 844 | 54 415 | 30 133 |
61
+ | test | 27 032 | 297 922 | 153 509 |
62
+
63
+ ---
64
+
65
+ ## Object categories (150)
66
+
67
+ Top-150 Visual Genome object vocabulary used by the standard SGG split. Full list
68
+ embedded in `dataset_info.description`.
69
+
70
+ ## Predicate categories (50)
71
+
72
+ > and · says · belonging to · over · parked on · growing on · standing on · made of ·
73
+ > attached to · at · in · hanging from · wears · in front of · from · for · watching ·
74
+ > lying on · to · behind · flying in · looking at · on back of · holding · between ·
75
+ > laying on · riding · has · across · wearing · walking on · eating · above · part of ·
76
+ > walking in · sitting on · under · covered in · carrying · using · along · with · on ·
77
+ > covering · of · against · playing · near · painted on · mounted on
78
+
79
+ ---
80
+
81
+ ## Dataset structure
82
+
83
+ ```python
84
+ DatasetDict({
85
+ train: Dataset({
86
+ features: ['image', 'image_id', 'width', 'height', 'file_name',
87
+ 'objects', 'relations'],
88
+ num_rows: 73538
89
+ }),
90
+ val: Dataset({
91
+ features: ['image', 'image_id', 'width', 'height', 'file_name',
92
+ 'objects', 'relations'],
93
+ num_rows: 4844
94
+ }),
95
+ test: Dataset({
96
+ features: ['image', 'image_id', 'width', 'height', 'file_name',
97
+ 'objects', 'relations'],
98
+ num_rows: 27032
99
+ }),
100
+ })
101
+ ```
102
+
103
+ Each row contains:
104
+
105
+ | Field | Type | Description |
106
+ |-------|------|-------------|
107
+ | `image` | `Image` | PIL image |
108
+ | `image_id` | `int` | Original Visual Genome image id |
109
+ | `width` / `height` | `int` | Image dimensions |
110
+ | `file_name` | `str` | Original filename |
111
+ | `objects` | `List[dict]` | `{id, category_id, bbox (xywh), area, iscrowd, segmentation}` |
112
+ | `relations` | `List[dict]` | `{id, subject_id, object_id, predicate_id}` — ids refer to `objects[*].id` |
113
+
114
+ ---
115
+
116
+ ## Usage
117
+
118
+ ```python
119
+ from datasets import load_dataset
120
+ import json
121
+
122
+ ds = load_dataset("maelic/VG150-coco-format")
123
+
124
+ # Recover label maps from the embedded metadata
125
+ meta = json.loads(ds["train"].info.description)
126
+ cat_id2name = {c["id"]: c["name"] for c in meta["categories"]}
127
+ pred_id2name = {c["id"]: c["name"] for c in meta["rel_categories"]}
128
+
129
+ sample = ds["train"][0]
130
+ image = sample["image"] # PIL Image
131
+ for obj in sample["objects"]:
132
+ print(cat_id2name[obj["category_id"]], obj["bbox"])
133
+ for rel in sample["relations"]:
134
+ print(rel["subject_id"], "--", pred_id2name[rel["predicate_id"]], "->", rel["object_id"])
135
+ ```
136
+
137
+ ---
138
+
139
+ ## Citation
140
+
141
+ If you use this dataset, please cite Visual Genome:
142
+
143
+ ```bibtex
144
+ @article{krishna2017visual,
145
+ title={Visual genome: Connecting language and vision using crowdsourced dense image annotations},
146
+ author={Krishna, Ranjay and Zhu, Yuke and Groth, Oliver and Johnson, Justin and Hata, Kenji and Kravitz, Joshua and Chen, Stephanie and Kalantidis, Yannis and Li, Li-Jia and Shamma, David A and others},
147
+ journal={International journal of computer vision},
148
+ volume={123},
149
+ number={1},
150
+ pages={32--73},
151
+ year={2017},
152
+ publisher={Springer}
153
+ }
154
+ ```
155
+
156
+ And the original paper that established the VG150 split:
157
+
158
+ ```bibtex
159
+ @inproceedings{xu2017scene,
160
+ title={Scene graph generation by iterative message passing},
161
+ author={Xu, Danfei and Zhu, Yuke and Choy, Christopher B and Fei-Fei, Li},
162
+ booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
163
+ pages={5410--5419},
164
+ year={2017}
165
+ }
166
+ ```
167
+
168
+ And the REACT paper if you use the SGG-Benchmark models:
169
+
170
+ ```bibtex
171
+ @inproceedings{Neau_2025_BMVC,
172
+ author = {Ma\"elic Neau and Paulo Eduardo Santos and Anne-Gwenn Bosser
173
+ and Akihiro Sugimoto and Cedric Buche},
174
+ title = {REACT: Real-time Efficiency and Accuracy Compromise for Tradeoffs
175
+ in Scene Graph Generation},
176
+ booktitle = {36th British Machine Vision Conference 2025, {BMVC} 2025,
177
+ Sheffield, UK, November 24-27, 2025},
178
+ publisher = {BMVA},
179
+ year = {2025},
180
+ url = {https://bmva-archive.org.uk/bmvc/2025/assets/papers/Paper_239/paper.pdf},
181
+ }
182
+ ```
183
+
184
+ ---
185
+
186
+ ## License
187
+
188
+ Visual Genome images and annotations are released under the
189
+ [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)
190
+ license.