File size: 2,658 Bytes
087eeb9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8900f1e
 
 
 
 
 
 
 
 
 
 
087eeb9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8900f1e
 
087eeb9
 
8900f1e
087eeb9
 
 
 
8900f1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
087eeb9
 
 
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
---
language: [en]
license: cc-by-4.0
task_categories: [image-classification]
tags: [ui-grounding, web, showui, processed]
source_datasets: [showlab/ShowUI-web]
size_categories: [10K<n<100K]
---

# ShowUI-Web Processed

Flattened, normalized, and scenario-split version of [showlab/ShowUI-web](https://huggingface.co/datasets/showlab/ShowUI-web).

Each row is a single (instruction, UI element) pair with normalized bounding-box coordinates.

## Schema

| Column | Type | Description |
|---|---|---|
| `sample_id` | string | Unique row identifier (`{row}_{element}`) |
| `screenshot_id` | string | Groups elements from the same screenshot |
| `image_relpath` | string | Relative path to the screenshot image |
| `scenario` | string | Website/domain inferred from the image path |
| `instruction` | string | Natural-language grounding instruction |
| `bbox_xyxy` | list[float] | Normalized bounding box `[x1, y1, x2, y2]` in `[0, 1]` |
| `point_xy` | list[float] or null | Normalized click point `[x, y]` |
| `element_type` | string or null | UI element type label |

## Splits

| Split | Rows | Strategy |
|---|---|---|
| train | majority | Scenario-based holdout |
| validation | ~10% scenarios | Domain holdout |
| test | ~15% scenarios | Domain holdout |

## Repository Layout

The dataset repo contains both row-level parquet artifacts and image files:

- `flat.parquet` — full flattened table (all rows)
- `splits/train.parquet` — train split
- `splits/val.parquet` — validation split
- `splits/test.parquet` — test split
- `splits/splits.json` — split metadata
- `images/...` — screenshot and UI metadata files

## Images

Screenshot images are hosted in the `images/` directory of this repository.
Use `image_relpath` to construct the path or fetch individual images on demand:

```python
from huggingface_hub import hf_hub_download
from PIL import Image

path = hf_hub_download(
    repo_id="e1879/showui-web-processed",
    repo_type="dataset",
    filename=f"images/{row['image_relpath']}",
)
img = Image.open(path)
```

## Usage

Load train split via `datasets`:

```python
from datasets import load_dataset

ds = load_dataset("e1879/showui-web-processed")
print(ds["train"][0]["instruction"])
```

Or load parquet artifacts directly from the dataset repo:

```python
import pandas as pd
from huggingface_hub import hf_hub_download

train_path = hf_hub_download(
    repo_id="e1879/showui-web-processed",
    repo_type="dataset",
    filename="splits/train.parquet",
)
train_df = pd.read_parquet(train_path)
print(train_df.shape)
```

## Credit

Source dataset: [showlab/ShowUI-web](https://huggingface.co/datasets/showlab/ShowUI-web)