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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- object-detection
|
| 5 |
+
tags:
|
| 6 |
+
- scene-graph
|
| 7 |
+
- visual-relationship-detection
|
| 8 |
+
- panoptic-scene-graph
|
| 9 |
+
- coco-format
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
pretty_name: PSG — Panoptic Scene Graph (COCO format)
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# PSG — Panoptic Scene Graph (COCO format)
|
| 18 |
+
|
| 19 |
+
This dataset is a reformatted version of the **Panoptic Scene Graph (PSG)** benchmark
|
| 20 |
+
([Yang et al., NeurIPS 2022](https://arxiv.org/abs/2207.11247)) in standard COCO-JSON
|
| 21 |
+
format, ready for use with object detection and scene graph generation pipelines.
|
| 22 |
+
|
| 23 |
+
It was produced as part of the
|
| 24 |
+
[SGG-Benchmark](https://github.com/Maelic/SGG-Benchmark) framework and used to train
|
| 25 |
+
the models described in the **REACT** paper
|
| 26 |
+
([Neau et al., BMVC 2025](https://arxiv.org/abs/2405.16116)).
|
| 27 |
+
|
| 28 |
+
/!\ Disclaimer: this dataset does NOT contain original segmentation masks, but only
|
| 29 |
+
bounding boxes and category labels. Thus this is NOT a panoptic dataset, but rather a
|
| 30 |
+
scene graph dataset that can only be used to train bounding-box-based SGG models.
|
| 31 |
+
The original PSG dataset can be downloaded from the [PSG project page](https://github.com/Jingkang50/OpenPSG).
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
## Annotation overview
|
| 37 |
+
|
| 38 |
+
Each image comes with:
|
| 39 |
+
- **Object bounding boxes** — 133 COCO object categories.
|
| 40 |
+
- **Scene-graph relations** — 56 predicate categories connecting pairs of objects as
|
| 41 |
+
directed `(subject, predicate, object)` triplets.
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
*Four random validation images with bounding boxes (coloured by category) and
|
| 46 |
+
relation arrows (yellow, labelled with the predicate name).*
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## Dataset statistics
|
| 51 |
+
|
| 52 |
+
| Split | Images | Object annotations | Relations |
|
| 53 |
+
|-------|-------:|-------------------:|----------:|
|
| 54 |
+
| train | 45 564 | 494 213 | 254 214 |
|
| 55 |
+
| val | 1 000 | 19 039 | 7 458 |
|
| 56 |
+
| test | 2 186 | 24 910 | 13 705 |
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
## Object categories (133)
|
| 61 |
+
|
| 62 |
+
Standard 133-class COCO panoptic vocabulary: *person, bicycle, car, motorcycle,
|
| 63 |
+
airplane, bus, train, truck, boat, traffic light, …* (full list embedded in
|
| 64 |
+
`dataset_info.description`).
|
| 65 |
+
|
| 66 |
+
## Predicate categories (56)
|
| 67 |
+
|
| 68 |
+
> over · in front of · beside · on · in · attached to · hanging from · on back of ·
|
| 69 |
+
> falling off · going down · painted on · walking on · running on · crossing ·
|
| 70 |
+
> standing on · lying on · sitting on · flying over · jumping over · jumping from ·
|
| 71 |
+
> wearing · holding · carrying · looking at · guiding · kissing · eating · drinking ·
|
| 72 |
+
> feeding · biting · catching · picking · playing with · chasing · climbing ·
|
| 73 |
+
> cleaning · playing · touching · pushing · pulling · opening · cooking · talking to ·
|
| 74 |
+
> throwing · slicing · driving · riding · parked on · driving on · about to hit ·
|
| 75 |
+
> kicking · swinging · entering · exiting · enclosing · leaning on
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## Dataset structure
|
| 80 |
+
|
| 81 |
+
```python
|
| 82 |
+
DatasetDict({
|
| 83 |
+
train: Dataset({
|
| 84 |
+
features: ['image', 'image_id', 'width', 'height', 'file_name',
|
| 85 |
+
'objects', 'relations'],
|
| 86 |
+
num_rows: 45564
|
| 87 |
+
}),
|
| 88 |
+
val: Dataset({
|
| 89 |
+
features: ['image', 'image_id', 'width', 'height', 'file_name',
|
| 90 |
+
'objects', 'relations'],
|
| 91 |
+
num_rows: 1000
|
| 92 |
+
}),
|
| 93 |
+
test: Dataset({
|
| 94 |
+
features: ['image', 'image_id', 'width', 'height', 'file_name',
|
| 95 |
+
'objects', 'relations'],
|
| 96 |
+
num_rows: 2186
|
| 97 |
+
}),
|
| 98 |
+
})
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
Each row contains:
|
| 102 |
+
|
| 103 |
+
| Field | Type | Description |
|
| 104 |
+
|-------|------|-------------|
|
| 105 |
+
| `image` | `Image` | PIL image |
|
| 106 |
+
| `image_id` | `int` | Original COCO image id |
|
| 107 |
+
| `width` / `height` | `int` | Image dimensions |
|
| 108 |
+
| `file_name` | `str` | Original filename |
|
| 109 |
+
| `objects` | `List[dict]` | `{id, category_id, bbox (xywh), area, iscrowd, segmentation}` |
|
| 110 |
+
| `relations` | `List[dict]` | `{id, subject_id, object_id, predicate_id}` — ids refer to `objects[*].id` |
|
| 111 |
+
|
| 112 |
+
---
|
| 113 |
+
|
| 114 |
+
## Usage
|
| 115 |
+
|
| 116 |
+
```python
|
| 117 |
+
from datasets import load_dataset
|
| 118 |
+
import json
|
| 119 |
+
|
| 120 |
+
ds = load_dataset("maelic/PSG-coco-format")
|
| 121 |
+
|
| 122 |
+
# Recover label maps from the embedded metadata
|
| 123 |
+
meta = json.loads(ds["train"].info.description)
|
| 124 |
+
cat_id2name = {c["id"]: c["name"] for c in meta["categories"]}
|
| 125 |
+
pred_id2name = {c["id"]: c["name"] for c in meta["rel_categories"]}
|
| 126 |
+
|
| 127 |
+
sample = ds["train"][0]
|
| 128 |
+
image = sample["image"] # PIL Image
|
| 129 |
+
for obj in sample["objects"]:
|
| 130 |
+
print(cat_id2name[obj["category_id"]], obj["bbox"])
|
| 131 |
+
for rel in sample["relations"]:
|
| 132 |
+
print(rel["subject_id"], "--", pred_id2name[rel["predicate_id"]], "->", rel["object_id"])
|
| 133 |
+
```
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
## Citation
|
| 138 |
+
|
| 139 |
+
If you use this dataset, please cite the original PSG paper:
|
| 140 |
+
|
| 141 |
+
```bibtex
|
| 142 |
+
@inproceedings{yang2022panoptic,
|
| 143 |
+
title = {Panoptic scene graph generation},
|
| 144 |
+
author = {Yang, Jingkang and Ang, Yi Zhe and Guo, Zujin and Zhou, Kaiyang
|
| 145 |
+
and Zhang, Wayne and Liu, Ziwei},
|
| 146 |
+
booktitle = {European conference on computer vision},
|
| 147 |
+
pages = {178--196},
|
| 148 |
+
year = {2022},
|
| 149 |
+
organization = {Springer},
|
| 150 |
+
}
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
And the REACT paper if you use the SGG-Benchmark models:
|
| 154 |
+
|
| 155 |
+
```bibtex
|
| 156 |
+
@inproceedings{Neau_2025_BMVC,
|
| 157 |
+
author = {Ma\"elic Neau and Paulo Eduardo Santos and Anne-Gwenn Bosser
|
| 158 |
+
and Akihiro Sugimoto and Cedric Buche},
|
| 159 |
+
title = {REACT: Real-time Efficiency and Accuracy Compromise for Tradeoffs
|
| 160 |
+
in Scene Graph Generation},
|
| 161 |
+
booktitle = {36th British Machine Vision Conference 2025, {BMVC} 2025,
|
| 162 |
+
Sheffield, UK, November 24-27, 2025},
|
| 163 |
+
publisher = {BMVA},
|
| 164 |
+
year = {2025},
|
| 165 |
+
url = {https://bmva-archive.org.uk/bmvc/2025/assets/papers/Paper_239/paper.pdf},
|
| 166 |
+
}
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
---
|
| 170 |
+
|
| 171 |
+
## License
|
| 172 |
+
|
| 173 |
+
This dataset inherits the **MIT** license of the original PSG benchmark.
|
| 174 |
+
See the [MIT License](https://opensource.org/licenses/MIT) for details.
|