R2EC / README.md
Wuzj's picture
Update README.md
8081370 verified
|
Raw History Blame Contribute Delete
3.77 kB
---
license: mit
language:
- en
pretty_name: R2EC
size_categories:
- 1K<n<10K
task_categories:
- object-detection
- visual-question-answering
tags:
- image
- text
- reasoning-referring-expression-comprehension
---
# R2EC Dataset
R2EC is a benchmark for **Reasoning-based Referring Expression Comprehension (REC)**.
It covers 10 subsets spanning visual-context reasoning, proper nouns, games, sports,
art, tool use, forged/AI-generated content detection, multi-target, multi-image, and
negative (absent-target) scenarios.
## 📁 Dataset Schema & Field Definitions
Each entry in R2EC follows the structured format below:
| Field | Type | Description |
|---|---|---|
| `image` | string / list[string] | Relative path of the source image(s), e.g. `0/xxx.jpg`. For the `multi image` subset it is a list of two image paths. |
| `bbox` | list[dict] | A list of ground-truth bounding boxes. Each dict contains normalized `x`, `y`, `width`, `height` plus `original_width`, `original_height`. Empty list `[]` for negative (no-target) samples. |
| `referring` | string | The referring expression that describes the target(s). For negative samples, it describes an **absent** object to test model robustness/hallucination. |
## 🔍 Field Details
- `bbox`:
- Coordinates `x`, `y`, `width`, `height` are normalized to **[0, 100]** (percentage of image size, Label Studio style).
- `original_width` / `original_height` are provided to allow re-scaling to raw image pixels:
`px = x / 100 * original_width`, etc.
- Negative samples always have `bbox: []`; a correct model should predict no box.
- `referring`:
- May require reasoning beyond simple category names, e.g. *"the region on the dartboard on the left side of the image that yields the highest score when hit by a dart"*.
- `forged samples` use a fixed query: *"the region within the image that is most likely to be AI-generated forged content"*.
- `art` subset expressions are built from artwork metadata: *"the region within this landscape painting by Caspar David Friedrich that corresponds to the description: ..."*.
## 📊 Subsets
| Subset | File | Records | Notes |
|---|---|---|---|
| visual context | `visual context/visual_context.json` | 223 | Context-dependent grounding |
| proper noun | `proper noun/proper_noun.json` | 200 | Named entities |
| game | `game/game.json` | 500 | Game scenes |
| forged samples | `forged samples/forged_samples.json` | 150 | AI-forgery localization |
| negative | `negative/negative.json` | 1150 | Absent target, `bbox: []` |
| multi target | `multi target/multi_targegt.json` | 1500 | Multiple boxes per expression |
| multi image | `multi image/multi.json` | 850 | Cross-image referring (2 images) |
| tool use | `tool use/dataset.json` | 493 | Tool/UI object grounding |
| sports | `sports/sports.json` | 1700 | Reasoning over sport rules (dart/curling/snooker) |
| art | `art/art.json` | 160 | Artwork region grounding |
| **Total** | | **6,926** | |
## 💡 Example
```json
{
"image": "sport_dart_0001.jpg",
"bbox": [
{
"x": 41.25,
"y": 18.33,
"width": 17.5,
"height": 23.33,
"original_width": 1280,
"original_height": 720
}
],
"referring": "the region on the dartboard on the left side of the image that yields the highest score when hit by a dart"
}
```
Negative sample:
```json
{
"image": "xxx.jpg",
"bbox": [],
"referring": "the Grand Duke lying on a four-poster bed"
}
```
Multi-image sample:
```json
{
"image": ["0/multi_image_1.jpg", "0/multi_image_2.jpg"],
"bbox": [{"x": 8.7, "y": 29.4, "width": 42.9, "height": 35.7, "original_width": 640, "original_height": 512}],
"referring": "Find objects of the same category as in the first image within the second image"
}
```