--- license: cc-by-2.0 task_categories: - object-detection tags: - scene-graph-generation - spatial-relations - negative-annotations - spatialsense - coco-format language: - en pretty_name: SpatialSense (COCO format) size_categories: - 10K

## Contents | Split | Images | |---|---| | train | 7,645 | | validation | 1,553 | | test | 2,371 | 11,569 images, 8,749 true and 8,749 false relations, 9 predicates (`above`, `behind`, `in`, `in front of`, `next to`, `on`, `to the left of`, `to the right of`, `under`) and 3,679 free-text object names. `categories.json` holds `categories` (the index used by `category_id`) and `predicates` (the index used by `predicate_id`), both sorted alphabetically. | Field | Description | |---|---| | `image` | original bytes (Flickr JPEG or NYU PNG) | | `image_id` | index of the image in the source `annotations.json` | | `width`, `height`, `file_name`, `url`, `nsid` | as in the source; `file_name` is the path inside `images.tar.gz` | | `objects` | subjects and objects deduplicated by (name, box): `id`, `bbox` (COCO `[x, y, w, h]`, pixels), `category_id`, `area`, `iscrowd` | | `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) | | `neg_relations` | relations labelled **false**, same fields | ## Changes from the source All mechanical: boxes converted from SpatialSense's `[y_min, y_max, x_min, x_max]` to COCO `[x, y, w, h]`; objects deduplicated per image; the `label` field turned into the `relations` / `neg_relations` split; macOS `._*` files from the archive skipped; images stored with their original bytes. A random sample of 50 images was checked against the source. ## Citation ```bibtex @inproceedings{yang2019spatialsense, title = {SpatialSense: An Adversarially Crowdsourced Benchmark for Spatial Relation Recognition}, author = {Yang, Kaiyu and Russakovsky, Olga and Deng, Jia}, booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)}, pages = {2051--2060}, year = {2019}, doi = {10.1109/ICCV.2019.00214} } ```