Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,66 +1,84 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
-
|
| 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: isthing
|
| 32 |
-
dtype: int64
|
| 33 |
-
- name: segment_id
|
| 34 |
-
dtype: int64
|
| 35 |
-
- name: relations
|
| 36 |
-
sequence:
|
| 37 |
-
- name: id
|
| 38 |
-
dtype: int64
|
| 39 |
-
- name: subject_id
|
| 40 |
-
dtype: int64
|
| 41 |
-
- name: object_id
|
| 42 |
-
dtype: int64
|
| 43 |
-
- name: predicate_id
|
| 44 |
-
dtype: int64
|
| 45 |
-
- name: neg_relations
|
| 46 |
-
sequence:
|
| 47 |
-
- name: id
|
| 48 |
-
dtype: int64
|
| 49 |
-
- name: subject_id
|
| 50 |
-
dtype: int64
|
| 51 |
-
- name: object_id
|
| 52 |
-
dtype: int64
|
| 53 |
-
- name: predicate_id
|
| 54 |
-
dtype: int64
|
| 55 |
-
splits:
|
| 56 |
-
- name: test
|
| 57 |
-
num_bytes: 8252954078.104
|
| 58 |
-
num_examples: 11368
|
| 59 |
-
download_size: 8217330405
|
| 60 |
-
dataset_size: 8252954078.104
|
| 61 |
-
configs:
|
| 62 |
-
- config_name: default
|
| 63 |
-
data_files:
|
| 64 |
-
- split: test
|
| 65 |
-
path: data/test-*
|
| 66 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sa-1b-dataset-research-license
|
| 4 |
+
license_link: https://huggingface.co/datasets/maelic/Haystack-coco-format/blob/main/LICENSE_SA-1B
|
| 5 |
+
task_categories:
|
| 6 |
+
- object-detection
|
| 7 |
+
tags:
|
| 8 |
+
- scene-graph-generation
|
| 9 |
+
- panoptic-scene-graph
|
| 10 |
+
- negative-annotations
|
| 11 |
+
- haystack
|
| 12 |
+
- sa-1b
|
| 13 |
+
- coco-format
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
pretty_name: Haystack (COCO format)
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10K<n<100K
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
+
|
| 21 |
+
# Haystack (COCO format)
|
| 22 |
+
|
| 23 |
+
A mirror of **Haystack** (Lorenz, Barthel, Kienzle and Lienhart, *Haystack: A Panoptic Scene Graph
|
| 24 |
+
Dataset to Evaluate Rare Predicate Classes*, ICCV 2023 workshops), reformatted in the
|
| 25 |
+
same COCO-style schema as the other `maelic/*-coco-format` datasets. Haystack's distinguishing
|
| 26 |
+
feature is **explicit negative relation annotations**: for an annotated subject–object pair, an
|
| 27 |
+
annotator also confirmed predicates that do *not* hold, so evaluation does not have to treat
|
| 28 |
+
missing labels as negatives.
|
| 29 |
+
|
| 30 |
+
It is used by axis A2 (precision against adjudicated negatives) of OV-SGG-Bench.
|
| 31 |
+
|
| 32 |
+
## Why this mirror exists
|
| 33 |
+
|
| 34 |
+
The original download location (`myweb.rz.uni-augsburg.de/~lorenjul/haystack/v1/`) returns HTTP 404
|
| 35 |
+
as of November 2026. This repository preserves the v1 release byte-for-byte where possible so that
|
| 36 |
+
results on Haystack remain reproducible. The authors' code is at
|
| 37 |
+
<https://github.com/lorjul/haystack>.
|
| 38 |
+
|
| 39 |
+
## Licenses
|
| 40 |
+
|
| 41 |
+
* **Images** are a subset of Meta's SA-1B dataset and are provided under the **SA-1B Dataset
|
| 42 |
+
Research License** (`LICENSE_SA-1B`, with Meta's notice in `NOTICE_SA-1B.md`): research,
|
| 43 |
+
non-commercial use only. By downloading the images you agree to that license. See
|
| 44 |
+
<https://ai.meta.com/datasets/segment-anything/>.
|
| 45 |
+
* **Annotations** (relations, negative relations, panoptic masks) are the Haystack authors' work.
|
| 46 |
+
Their release did not state a license. Cite their paper when you use them.
|
| 47 |
+
|
| 48 |
+
## Contents
|
| 49 |
+
|
| 50 |
+
One split, `test`, with 11,368 images, 2,870 positive relations and 23,174 negative relations over
|
| 51 |
+
133 categories (80 things, 53 stuff) and the 56 predicates of PSG. `categories.json` holds
|
| 52 |
+
`thing_classes`, `stuff_classes`, `categories` (things then stuff, the index used by `category_id`)
|
| 53 |
+
and `predicates` (the index used by `predicate_id`).
|
| 54 |
+
|
| 55 |
+
| Field | Description |
|
| 56 |
+
|---|---|
|
| 57 |
+
| `image` | the SA-1B JPEG, original bytes |
|
| 58 |
+
| `image_id`, `width`, `height`, `file_name` | as in the source (`sa_XXXXXX/sa_N.jpg`) |
|
| 59 |
+
| `pan_seg`, `pan_seg_file_name` | the panoptic segmentation PNG, original bytes |
|
| 60 |
+
| `objects` | `id` (index in the image), `bbox` (COCO `[x, y, w, h]`, pixels), `category_id`, `area` (segment area), `iscrowd`, `isthing`, `segment_id` (the segment's id in `pan_seg`) |
|
| 61 |
+
| `relations` | positive relations: `id`, `subject_id`, `object_id` (indices into `objects`), `predicate_id` |
|
| 62 |
+
| `neg_relations` | adjudicated negative relations, same fields |
|
| 63 |
+
|
| 64 |
+
## Changes from the source
|
| 65 |
+
|
| 66 |
+
All mechanical: boxes converted from Detectron2 `XYXY_ABS` to COCO `[x, y, w, h]`; object and
|
| 67 |
+
relation ids made image-local indices; images and masks stored with their original bytes, not
|
| 68 |
+
re-encoded. A random sample of 50 images was checked byte-for-byte against the source archives.
|
| 69 |
+
Source archive SHA-256: `sa1b-subset.zip`
|
| 70 |
+
`cff441c94ba7ce3af5b000a5b1648e9610e3357241338698e3bd79cb396bb919`, `v1.zip`
|
| 71 |
+
`07401be66aa4f048a3d52e12b624f393166654b42a4275cb5a051de7fe7ebee4`.
|
| 72 |
+
|
| 73 |
+
## Citation
|
| 74 |
+
|
| 75 |
+
```bibtex
|
| 76 |
+
@inproceedings{lorenz2023haystack,
|
| 77 |
+
title = {Haystack: A Panoptic Scene Graph Dataset to Evaluate Rare Predicate Classes},
|
| 78 |
+
author = {Lorenz, Julian and Barthel, Florian and Kienzle, Daniel and Lienhart, Rainer},
|
| 79 |
+
booktitle = {IEEE/CVF International Conference on Computer Vision Workshops (ICCVW)},
|
| 80 |
+
pages = {62--70},
|
| 81 |
+
year = {2023},
|
| 82 |
+
doi = {10.1109/ICCVW60793.2023.00013}
|
| 83 |
+
}
|
| 84 |
+
```
|