Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,88 +1,78 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
- name: nsid
|
| 17 |
-
dtype: string
|
| 18 |
-
- name: objects
|
| 19 |
-
sequence:
|
| 20 |
-
- name: id
|
| 21 |
-
dtype: int64
|
| 22 |
-
- name: bbox
|
| 23 |
-
sequence: float64
|
| 24 |
-
length: 4
|
| 25 |
-
- name: category_id
|
| 26 |
-
dtype: int64
|
| 27 |
-
- name: area
|
| 28 |
-
dtype: float64
|
| 29 |
-
- name: iscrowd
|
| 30 |
-
dtype: int64
|
| 31 |
-
- name: relations
|
| 32 |
-
sequence:
|
| 33 |
-
- name: id
|
| 34 |
-
dtype: int64
|
| 35 |
-
- name: annotation_id
|
| 36 |
-
dtype: string
|
| 37 |
-
- name: subject_id
|
| 38 |
-
dtype: int64
|
| 39 |
-
- name: object_id
|
| 40 |
-
dtype: int64
|
| 41 |
-
- name: predicate_id
|
| 42 |
-
dtype: int64
|
| 43 |
-
- name: subject_point
|
| 44 |
-
sequence: float64
|
| 45 |
-
length: 2
|
| 46 |
-
- name: object_point
|
| 47 |
-
sequence: float64
|
| 48 |
-
length: 2
|
| 49 |
-
- name: neg_relations
|
| 50 |
-
sequence:
|
| 51 |
-
- name: id
|
| 52 |
-
dtype: int64
|
| 53 |
-
- name: annotation_id
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: subject_id
|
| 56 |
-
dtype: int64
|
| 57 |
-
- name: object_id
|
| 58 |
-
dtype: int64
|
| 59 |
-
- name: predicate_id
|
| 60 |
-
dtype: int64
|
| 61 |
-
- name: subject_point
|
| 62 |
-
sequence: float64
|
| 63 |
-
length: 2
|
| 64 |
-
- name: object_point
|
| 65 |
-
sequence: float64
|
| 66 |
-
length: 2
|
| 67 |
-
splits:
|
| 68 |
-
- name: train
|
| 69 |
-
num_bytes: 1154185099.55
|
| 70 |
-
num_examples: 7645
|
| 71 |
-
- name: validation
|
| 72 |
-
num_bytes: 281159864.325
|
| 73 |
-
num_examples: 1553
|
| 74 |
-
- name: test
|
| 75 |
-
num_bytes: 368362974.931
|
| 76 |
-
num_examples: 2371
|
| 77 |
-
download_size: 1797859375
|
| 78 |
-
dataset_size: 1803707938.806
|
| 79 |
-
configs:
|
| 80 |
-
- config_name: default
|
| 81 |
-
data_files:
|
| 82 |
-
- split: train
|
| 83 |
-
path: data/train-*
|
| 84 |
-
- split: validation
|
| 85 |
-
path: data/validation-*
|
| 86 |
-
- split: test
|
| 87 |
-
path: data/test-*
|
| 88 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- object-detection
|
| 5 |
+
tags:
|
| 6 |
+
- scene-graph-generation
|
| 7 |
+
- spatial-relations
|
| 8 |
+
- negative-annotations
|
| 9 |
+
- spatialsense
|
| 10 |
+
- coco-format
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
pretty_name: SpatialSense (COCO format)
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
+
|
| 18 |
+
# SpatialSense (COCO format)
|
| 19 |
+
|
| 20 |
+
A mirror of **SpatialSense** (Yang, Russakovsky and Deng, *SpatialSense: An Adversarially
|
| 21 |
+
Crowdsourced Benchmark for Spatial Relation Recognition*, ICCV 2019), reformatted in the same
|
| 22 |
+
COCO-style schema as the other `maelic/*-coco-format` datasets. Every annotation states whether a
|
| 23 |
+
spatial predicate holds between a subject and an object, and the dataset is balanced: half the
|
| 24 |
+
relations are true and half are false.
|
| 25 |
+
|
| 26 |
+
It is used by axis A6 (spatial relations) of OV-SGG-Bench.
|
| 27 |
+
|
| 28 |
+
## Source and license
|
| 29 |
+
|
| 30 |
+
The authors' release is Zenodo record 8104370 (DOI
|
| 31 |
+
[10.5281/zenodo.8104370](https://doi.org/10.5281/zenodo.8104370)), published under **CC BY 2.0**;
|
| 32 |
+
this mirror keeps that license and attributes the authors. Images come from Flickr and the NYU
|
| 33 |
+
Depth dataset, as in the original release. The two source files were checked against the SHA-256
|
| 34 |
+
sums the record publishes (`annotations.json`
|
| 35 |
+
`ae8f613ff1886e27e06f154cc01393c8a86025ae7f8f3664a7fd2308d771bf39`, `images.tar.gz`
|
| 36 |
+
`1f9db2e56f323046aec301288a7e24bd35cce51f651cab93ea2e41dc27b853bd`).
|
| 37 |
+
|
| 38 |
+
## Contents
|
| 39 |
+
|
| 40 |
+
| Split | Images |
|
| 41 |
+
|---|---|
|
| 42 |
+
| train | 7,645 |
|
| 43 |
+
| validation | 1,553 |
|
| 44 |
+
| test | 2,371 |
|
| 45 |
+
|
| 46 |
+
11,569 images, 8,749 true and 8,749 false relations, 9 predicates (`above`, `behind`, `in`,
|
| 47 |
+
`in front of`, `next to`, `on`, `to the left of`, `to the right of`, `under`) and 3,679 free-text
|
| 48 |
+
object names. `categories.json` holds `categories` (the index used by `category_id`) and
|
| 49 |
+
`predicates` (the index used by `predicate_id`), both sorted alphabetically.
|
| 50 |
+
|
| 51 |
+
| Field | Description |
|
| 52 |
+
|---|---|
|
| 53 |
+
| `image` | original bytes (Flickr JPEG or NYU PNG) |
|
| 54 |
+
| `image_id` | index of the image in the source `annotations.json` |
|
| 55 |
+
| `width`, `height`, `file_name`, `url`, `nsid` | as in the source; `file_name` is the path inside `images.tar.gz` |
|
| 56 |
+
| `objects` | subjects and objects deduplicated by (name, box): `id`, `bbox` (COCO `[x, y, w, h]`, pixels), `category_id`, `area`, `iscrowd` |
|
| 57 |
+
| `relations` | relations labelled **true**: `id`, `annotation_id` (the source `_id`), `subject_id`, `object_id` (indices into `objects`), `predicate_id`, `subject_point`, `object_point` (the `[x, y]` points the annotator clicked) |
|
| 58 |
+
| `neg_relations` | relations labelled **false**, same fields |
|
| 59 |
+
|
| 60 |
+
## Changes from the source
|
| 61 |
+
|
| 62 |
+
All mechanical: boxes converted from SpatialSense's `[y_min, y_max, x_min, x_max]` to COCO
|
| 63 |
+
`[x, y, w, h]`; objects deduplicated per image; the `label` field turned into the
|
| 64 |
+
`relations` / `neg_relations` split; macOS `._*` files from the archive skipped; images stored
|
| 65 |
+
with their original bytes. A random sample of 50 images was checked against the source.
|
| 66 |
+
|
| 67 |
+
## Citation
|
| 68 |
+
|
| 69 |
+
```bibtex
|
| 70 |
+
@inproceedings{yang2019spatialsense,
|
| 71 |
+
title = {SpatialSense: An Adversarially Crowdsourced Benchmark for Spatial Relation Recognition},
|
| 72 |
+
author = {Yang, Kaiyu and Russakovsky, Olga and Deng, Jia},
|
| 73 |
+
booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
|
| 74 |
+
pages = {2051--2060},
|
| 75 |
+
year = {2019},
|
| 76 |
+
doi = {10.1109/ICCV.2019.00214}
|
| 77 |
+
}
|
| 78 |
+
```
|