File size: 3,897 Bytes
fb96daf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb4781f
292b237
fb96daf
292b237
 
 
eb4781f
292b237
fb96daf
292b237
 
 
eb4781f
292b237
fb96daf
eb4781f
292b237
fb96daf
292b237
 
 
eb4781f
292b237
fb96daf
eb4781f
292b237
fb96daf
eb4781f
292b237
fb96daf
292b237
 
 
eb4781f
292b237
fb96daf
292b237
 
 
eb4781f
292b237
 
 
 
fb96daf
 
 
eb4781f
 
292b237
 
eb4781f
 
292b237
 
eb4781f
 
fb96daf
 
292b237
 
eb4781f
 
fb96daf
 
 
 
292b237
 
eb4781f
 
292b237
 
eb4781f
 
fb96daf
9118d29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: task
    dtype: string
  - name: label
    dtype: string
  - name: description
    dtype: string
  - name: dataset_type
    dtype: string
  - name: question
    dtype: string
  - name: options
    list: string
  - name: shape
    dtype: string
  - name: color
    dtype: string
  - name: size_class
    dtype: string
  - name: location
    dtype: string
  - name: angle
    dtype: string
  splits:
  - name: angle
    num_bytes: 375221
    num_examples: 240
  - name: angle_count
    num_bytes: 156342
    num_examples: 100
  - name: color
    num_bytes: 375221
    num_examples: 240
  - name: color_count
    num_bytes: 156342
    num_examples: 100
  - name: count
    num_bytes: 156342
    num_examples: 100
  - name: location
    num_bytes: 375221
    num_examples: 240
  - name: location_count
    num_bytes: 156342
    num_examples: 100
  - name: occlusion
    num_bytes: 156342
    num_examples: 100
  - name: position
    num_bytes: 156342
    num_examples: 100
  - name: shape
    num_bytes: 375221
    num_examples: 240
  - name: shape_count
    num_bytes: 156342
    num_examples: 100
  - name: size
    num_bytes: 375221
    num_examples: 240
  - name: size_count
    num_bytes: 156342
    num_examples: 100
  - name: train
    num_bytes: 3128593
    num_examples: 2000
  download_size: 3659488
  dataset_size: 6255434
configs:
- config_name: default
  data_files:
  - split: angle
    path: data/angle-*
  - split: angle_count
    path: data/angle_count-*
  - split: color
    path: data/color-*
  - split: color_count
    path: data/color_count-*
  - split: count
    path: data/count-*
  - split: location
    path: data/location-*
  - split: location_count
    path: data/location_count-*
  - split: occlusion
    path: data/occlusion-*
  - split: position
    path: data/position-*
  - split: shape
    path: data/shape-*
  - split: shape_count
    path: data/shape_count-*
  - split: size
    path: data/size-*
  - split: size_count
    path: data/size_count-*
  - split: train
    path: data/train-*
---
## Dataset Description

This dataset contains two types of tasks:

### Single-Object Tasks (5 tasks, 1,200 samples)
- **Shape**: Identify object shape (star, diamond, triangle, square)
- **Color**: Identify object color (red, green, blue, yellow)
- **Size**: Identify object size (xs, s, l, xl)
- **Location**: Identify object location (upper_left, upper_right, lower_left, lower_right)
- **Angle**: Identify triangle orientation (0°, 45°, 90°, 135°)

### Multi-Object Tasks (3 tasks, 300 samples)
- **Count**: Count objects by color
- **Position**: Determine relative position (left, right, above, below)
- **Occlusion**: Identify which object is on top

## Key Features

- **White background** for clarity
- **Randomized attributes**: Each task randomizes non-target attributes to prevent shortcuts
- **Description field**: Enables text-only experiments (image vs. text-only comparison)
- **Balanced classes**: Equal samples per class within each task

## Dataset Structure

```python
{
    "image": PIL.Image,
    "task": str,  # Task name
    "label": str,  # Ground truth label
    "description": str,  # Text description of the image
    "dataset_type": str,  # "single" or "multi"
    "question": str,  # Question text (multi-object only)
    "options": List[str],  # Answer options (multi-object only)
    "shape": str,  # Object shape (if applicable)
    "color": str,  # Object color (if applicable)
    "size_class": str,  # Size class (if applicable)
    "location": str,  # Location (if applicable)
    "angle": str,  # Angle (if applicable)
}
```

## Usage

```python
from datasets import load_dataset

# Load entire dataset
ds = load_dataset("Hanoi0126/visual-object-attributes")

# Load specific task
ds_color = load_dataset("Hanoi0126/visual-object-attributes", split="color")
```