File size: 2,236 Bytes
97c1a63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
configs:
  - config_name: close_ended
    data_files:
      - split: val
        path: close_ended.json
  - config_name: open_ended
    data_files:
      - split: val
        path: open_ended.json
license: mit
task_categories:
  - visual-question-answering
language:
  - en
tags:
  - spatial-reasoning
  - object-location
  - direction
---

# Object Location 4-Class (Subset 1 of 5)

A visual question answering dataset for evaluating spatial reasoning — specifically, identifying the location of an object (Up / Down / Left / Right) from the viewer's perspective.

## Dataset Configurations

### `close_ended`
Multiple-choice format with 4 fixed options (A: Up, B: Down, C: Left, D: Right).

### `open_ended`
Free-form answer format. The model is expected to respond with one of: Up, Down, Left, Right.

## Usage

```python
from datasets import load_dataset

# Close-ended (multiple choice)
ds_close = load_dataset("YOUR_HF_ID/object_location_4class", name="close_ended", split="val")

# Open-ended (free-form)
ds_open = load_dataset("YOUR_HF_ID/object_location_4class", name="open_ended", split="val")
```

## Data Fields

### Close-ended
| Field | Type | Description |
|-------|------|-------------|
| `id` | int | Sample index |
| `image` | string | Image filename (e.g., `rectangle_yellow_123.png`) |
| `question` | string | Question text |
| `options` | list[string] | `["Up", "Down", "Left", "Right"]` |
| `answer` | string | Correct option letter (`A`/`B`/`C`/`D`) |
| `answer_text` | string | Correct answer in text (`Up`/`Down`/`Left`/`Right`) |
| `category` | string | Ground truth direction folder (`up`/`down`/`left`/`right`) |

### Open-ended
| Field | Type | Description |
|-------|------|-------------|
| `id` | int | Sample index |
| `image` | string | Image filename (e.g., `rectangle_yellow_123.png`) |
| `question` | string | Question text |
| `answer` | string | Correct answer (`Up`/`Down`/`Left`/`Right`) |
| `category` | string | Ground truth direction folder (`up`/`down`/`left`/`right`) |

## Notes

- Images are **not** included in this repository. They should be stored locally and loaded via the `category` and `image` fields to reconstruct the full path:
  ```
  {DATA_ROOT}/{category}/{image}
  ```