Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: [en]
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories: [image-classification]
|
| 5 |
+
tags: [ui-grounding, web, showui, processed]
|
| 6 |
+
source_datasets: [showlab/ShowUI-web]
|
| 7 |
+
size_categories: [10K<n<100K]
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# ShowUI-Web Processed
|
| 11 |
+
|
| 12 |
+
Flattened, normalized, and scenario-split version of [showlab/ShowUI-web](https://huggingface.co/datasets/showlab/ShowUI-web).
|
| 13 |
+
|
| 14 |
+
Each row is a single (instruction, UI element) pair with normalized bounding-box coordinates.
|
| 15 |
+
|
| 16 |
+
## Schema
|
| 17 |
+
|
| 18 |
+
| Column | Type | Description |
|
| 19 |
+
|---|---|---|
|
| 20 |
+
| `sample_id` | string | Unique row identifier (`{row}_{element}`) |
|
| 21 |
+
| `screenshot_id` | string | Groups elements from the same screenshot |
|
| 22 |
+
| `image_relpath` | string | Relative path to the screenshot image |
|
| 23 |
+
| `scenario` | string | Website/domain inferred from the image path |
|
| 24 |
+
| `instruction` | string | Natural-language grounding instruction |
|
| 25 |
+
| `bbox_xyxy` | list[float] | Normalized bounding box `[x1, y1, x2, y2]` in `[0, 1]` |
|
| 26 |
+
| `point_xy` | list[float] or null | Normalized click point `[x, y]` |
|
| 27 |
+
| `element_type` | string or null | UI element type label |
|
| 28 |
+
|
| 29 |
+
## Splits
|
| 30 |
+
|
| 31 |
+
| Split | Rows | Strategy |
|
| 32 |
+
|---|---|---|
|
| 33 |
+
| train | majority | Scenario-based holdout |
|
| 34 |
+
| validation | ~10% scenarios | Domain holdout |
|
| 35 |
+
| test | ~15% scenarios | Domain holdout |
|
| 36 |
+
|
| 37 |
+
## Images
|
| 38 |
+
|
| 39 |
+
Screenshot images are hosted in the `images/` directory of this repository.
|
| 40 |
+
Use `image_relpath` to construct the path or fetch individual images on demand:
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
from huggingface_hub import hf_hub_download
|
| 44 |
+
from PIL import Image
|
| 45 |
+
|
| 46 |
+
path = hf_hub_download(
|
| 47 |
+
repo_id="e1879/showui-web-processed",
|
| 48 |
+
repo_type="dataset",
|
| 49 |
+
filename=f"images/{row['image_relpath']}",
|
| 50 |
+
)
|
| 51 |
+
img = Image.open(path)
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
## Usage
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from datasets import load_dataset
|
| 58 |
+
ds = load_dataset("e1879/showui-web-processed")
|
| 59 |
+
print(ds["train"][0]["instruction"])
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Credit
|
| 63 |
+
|
| 64 |
+
Source dataset: [showlab/ShowUI-web](https://huggingface.co/datasets/showlab/ShowUI-web)
|