HongxinLi commited on
Commit
9f85a25
·
verified ·
1 Parent(s): 8f064d6

Add dataset card (README) with schema and field documentation

Browse files
Files changed (1) hide show
  1. README.md +155 -0
README.md ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - image-to-text
5
+ - visual-question-answering
6
+ language:
7
+ - en
8
+ tags:
9
+ - gui
10
+ - gui-agent
11
+ - ui-understanding
12
+ - screenshot
13
+ - visual-grounding
14
+ pretty_name: UIPro RefExp
15
+ size_categories:
16
+ - 10K<n<100K
17
+ ---
18
+
19
+ # UIPro-RefExp-Data-v1
20
+
21
+ Part of the **UIPro** GUI-agent training suite (ICCV 2025). This repository packages the
22
+ **RefExp** source into the unified UIPro instruction-tuning format, with coordinates
23
+ normalized to a **[0, 1000]** grid.
24
+
25
+ > Referring-expression grounding on mobile UIs (element + intent grounding).
26
+
27
+ ## Dataset at a glance
28
+
29
+ | | |
30
+ | :--- | :--- |
31
+ | **Total samples** | 15,545 |
32
+ | **Valid images** | 4,630 |
33
+ | **Avg. samples / image** | 3.36 |
34
+ | **Coordinate scale** | 0–1000 |
35
+ | **Source dataset** | [RefExp](https://github.com/google-research-datasets/uibert) |
36
+
37
+ ### Samples by task
38
+
39
+ | Task | Count |
40
+ | :--- | ---: |
41
+ | IntentGnd | 14,755 |
42
+ | ElemGnd | 790 |
43
+
44
+ ## Repository file structure
45
+
46
+ | File | Description |
47
+ | :--- | :--- |
48
+ | `RefExp_s1000_15k.json` | The dataset: a JSON **list** of 15,545 sample objects (schema below). |
49
+ | `RefExp_s1000_15k_sample.json` | A small preview slice of the same schema, for quick inspection without downloading everything. |
50
+ | `RefExp_s1000_15k_images.zip` | All screenshots referenced by the `image` field, preserving the relative paths stored there. |
51
+ | `RefExp_s1000_15k_info.json` | Full generation report — per-task counts, image statistics, invalid-element breakdown, and the exact processing config. |
52
+
53
+ Unzip `RefExp_s1000_15k_images.zip` and each sample's `image` path resolves relative to the extraction root.
54
+
55
+ ## Sample schema — every field explained
56
+
57
+ Each element of the main JSON list is one training sample. This dataset's samples use the
58
+ following fields:
59
+
60
+ | Field | Meaning |
61
+ | :--- | :--- |
62
+ | `conversations` | The vision-language dialogue: a list of turns, each `{"from": "human"|"gpt", "value": ...}`. The **human** turn holds the instruction/question and contains the `<image>` placeholder marking where the screenshot is inserted; the **gpt** turn is the ground-truth answer. |
63
+ | `id` | Unique sample identifier, formatted `autogui_<dataset>_<task>_<n>`. The `<task>` segment (e.g. `intentgnd`, `textloc`, `ocr`, `elemgnd`, `elemref`) tells you which task the sample belongs to. |
64
+ | `image` | Path to the screenshot **inside `_images.zip`**, relative to the archive root. Load the image by joining this path with your extraction directory. |
65
+ | `task_attr` | The task's target attribute in plain form — for grounding tasks the referred element's text/instruction; for OCR/referring tasks the queried coordinate string. Useful for filtering or building custom prompts without parsing the conversation. |
66
+ | `unnormalized_box` | Ground-truth bounding box in **original image pixels**, as `[x1, y1, x2, y2]` (top-left, bottom-right). Present when a box is available. Note: the answer in the `gpt` turn is **normalized to 0–1000**, while this field is the raw-pixel box — divide by width/height and multiply by 1000 to reconcile them. |
67
+
68
+ > **Note:** Fields tied to a bounding box (e.g. `unnormalized_box`) are only present on samples
69
+ > that have a box; point-only answers (e.g. some intent-grounding samples) may omit them.
70
+
71
+ ### The `conversations` field in detail
72
+
73
+ `conversations` is a list of turns that a vision-language model consumes directly:
74
+
75
+ - Each turn is `{"from": "...", "value": "..."}`.
76
+ - `from` is either **`human`** (the prompt) or **`gpt`** (the ground-truth response).
77
+ - The token **`<image>`** inside a human turn marks where the screenshot is spliced into the
78
+ prompt — replace it with the actual image when tokenizing.
79
+
80
+ ### Coordinate system
81
+
82
+ - Answers are **normalized to the `0–1000` range** relative to image width/height.
83
+ - A **point** answer is formatted `(x,y)`; a **bounding box** answer is `(x1,y1,x2,y2)`.
84
+ - Prompts ending in `(with point)` expect a point; `(with bbox)` expect a box.
85
+ - `unnormalized_box`, when present, is the same box in **raw pixels** — combine it with `wxh`
86
+ (or the image's true size) to convert between pixels and the normalized grid.
87
+
88
+ ## Example
89
+
90
+ ```json
91
+ {
92
+ "id": "autogui_RefExp_intentgnd_2413",
93
+ "conversations": [
94
+ {
95
+ "from": "human",
96
+ "value": "<image>\nI want to click the settings button on the web page. Please locate the target element I should interact with."
97
+ },
98
+ {
99
+ "from": "gpt",
100
+ "value": "(951,125)"
101
+ }
102
+ ],
103
+ "image": "rico/71692.jpg",
104
+ "unnormalized_box": [
105
+ 974,
106
+ 194,
107
+ 1080,
108
+ 287
109
+ ],
110
+ "task_attr": "click the settings button on the web page"
111
+ }
112
+ ```
113
+
114
+ ## Usage
115
+
116
+ ```python
117
+ import json, os, zipfile
118
+ from PIL import Image
119
+ from huggingface_hub import hf_hub_download
120
+
121
+ repo = "HongxinLi/UIPro-RefExp-Data-v1"
122
+ samples = json.load(open(hf_hub_download(repo, "RefExp_s1000_15k.json", repo_type="dataset")))
123
+
124
+ images_zip = hf_hub_download(repo, "RefExp_s1000_15k_images.zip", repo_type="dataset")
125
+ with zipfile.ZipFile(images_zip) as zf:
126
+ zf.extractall("images/")
127
+
128
+ s = samples[0]
129
+ print(s["conversations"])
130
+ img = Image.open(os.path.join("images", s["image"])) # screenshot for this sample
131
+ print("image size:", img.size)
132
+ ```
133
+
134
+ ## About UIPro
135
+
136
+ UIPro is a generalist GUI agent trained on 20.6M understanding tasks across 13 task types,
137
+ followed by agent continued fine-tuning. See the project repository for the full data
138
+ pipeline, training recipes and evaluation scripts:
139
+ **https://github.com/ZJULiHongxin/UIPro**
140
+
141
+ ## License
142
+
143
+ Released under **CC BY-NC 4.0** (non-commercial research use). The underlying screenshots and
144
+ annotations remain subject to the terms of their original source, [RefExp](https://github.com/google-research-datasets/uibert).
145
+
146
+ ## Citation
147
+
148
+ ```bibtex
149
+ @inproceedings{uipro2025,
150
+ title = {UIPro: A Generalist GUI Agent},
151
+ author = {Li, Hongxin and others},
152
+ booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
153
+ year = {2025}
154
+ }
155
+ ```