HongxinLi commited on
Commit
d7fe92f
·
verified ·
1 Parent(s): ce56298

Add dataset card (README) with schema and field documentation

Browse files
Files changed (1) hide show
  1. README.md +164 -0
README.md ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - ocr
15
+ pretty_name: UIPro AndroidControl
16
+ size_categories:
17
+ - 1M<n<10M
18
+ ---
19
+
20
+ # UIPro-AndroidControl-Data-v1
21
+
22
+ Part of the **UIPro** GUI-agent training suite (ICCV 2025). This repository packages the
23
+ **AndroidControl** source into the unified UIPro instruction-tuning format, with coordinates
24
+ normalized to a **[0, 1000]** grid.
25
+
26
+ > Android agent CFT data: intent grounding, text localization, OCR and widget listing from AndroidControl episodes.
27
+
28
+ ## Dataset at a glance
29
+
30
+ | | |
31
+ | :--- | :--- |
32
+ | **Total samples** | 4,014,396 |
33
+ | **Valid images** | 13,603 |
34
+ | **Avg. samples / image** | 295.11 |
35
+ | **Coordinate scale** | 0–1000 |
36
+ | **Source dataset** | [AndroidControl](https://github.com/google-research/google-research/tree/master/android_control) |
37
+
38
+ ### Samples by task
39
+
40
+ | Task | Count |
41
+ | :--- | ---: |
42
+ | OCR | 2,101,573 |
43
+ | TextLoc | 1,804,335 |
44
+ | WidgetList | 80,140 |
45
+ | IntentGnd | 28,348 |
46
+
47
+ ## Repository file structure
48
+
49
+ | File | Description |
50
+ | :--- | :--- |
51
+ | `AndroidControl_s1000_4014396.json` | The dataset: a JSON **list** of 4,014,396 sample objects (schema below). |
52
+ | `AndroidControl_s1000_4014396_sample.json` | A small preview slice of the same schema, for quick inspection without downloading everything. |
53
+ | `AndroidControl_s1000_4014396_images.zip` | All screenshots referenced by the `image` field, preserving the relative paths stored there. |
54
+ | `AndroidControl_s1000_4014396_info.json` | Full generation report — per-task counts, image statistics, invalid-element breakdown, and the exact processing config. |
55
+
56
+ Unzip `AndroidControl_s1000_4014396_images.zip` and each sample's `image` path resolves relative to the extraction root.
57
+
58
+ ## Sample schema — every field explained
59
+
60
+ Each element of the main JSON list is one training sample. This dataset's samples use the
61
+ following fields:
62
+
63
+ | Field | Meaning |
64
+ | :--- | :--- |
65
+ | `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. |
66
+ | `ep_id` | AndroidControl **episode** id the step belongs to. |
67
+ | `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. |
68
+ | `image` | Path to the screenshot **inside `_images.zip`**, relative to the archive root. Load the image by joining this path with your extraction directory. |
69
+ | `step_id` | Index of this step within its episode. |
70
+ | `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. |
71
+ | `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. |
72
+ | `wxh` | Original screenshot size as the string `"<width>x<height>"` in pixels — use it to convert between the normalized 0–1000 coordinates and raw pixels. |
73
+
74
+ > **Note:** Fields tied to a bounding box (e.g. `unnormalized_box`) are only present on samples
75
+ > that have a box; point-only answers (e.g. some intent-grounding samples) may omit them.
76
+
77
+ ### The `conversations` field in detail
78
+
79
+ `conversations` is a list of turns that a vision-language model consumes directly:
80
+
81
+ - Each turn is `{"from": "...", "value": "..."}`.
82
+ - `from` is either **`human`** (the prompt) or **`gpt`** (the ground-truth response).
83
+ - The token **`<image>`** inside a human turn marks where the screenshot is spliced into the
84
+ prompt — replace it with the actual image when tokenizing.
85
+
86
+ ### Coordinate system
87
+
88
+ - Answers are **normalized to the `0–1000` range** relative to image width/height.
89
+ - A **point** answer is formatted `(x,y)`; a **bounding box** answer is `(x1,y1,x2,y2)`.
90
+ - Prompts ending in `(with point)` expect a point; `(with bbox)` expect a box.
91
+ - `unnormalized_box`, when present, is the same box in **raw pixels** — combine it with `wxh`
92
+ (or the image's true size) to convert between pixels and the normalized grid.
93
+
94
+ ## Example
95
+
96
+ ```json
97
+ {
98
+ "id": "autogui_AndroidControl_textloc_15202-3-99",
99
+ "conversations": [
100
+ {
101
+ "from": "human",
102
+ "value": "<image>\nLocate the text \"Finish Type\" (with bbox)"
103
+ },
104
+ {
105
+ "from": "gpt",
106
+ "value": "(0,398,205,431)"
107
+ }
108
+ ],
109
+ "task_attr": "Finish Type",
110
+ "unnormalized_box": [
111
+ 0,
112
+ 955,
113
+ 221,
114
+ 1035
115
+ ],
116
+ "image": "AndroidControl/images/com.android.systemui/15202/3.png",
117
+ "wxh": "1080x2400",
118
+ "ep_id": 15202,
119
+ "step_id": 3
120
+ }
121
+ ```
122
+
123
+ ## Usage
124
+
125
+ ```python
126
+ import json, os, zipfile
127
+ from PIL import Image
128
+ from huggingface_hub import hf_hub_download
129
+
130
+ repo = "HongxinLi/UIPro-AndroidControl-Data-v1"
131
+ samples = json.load(open(hf_hub_download(repo, "AndroidControl_s1000_4014396.json", repo_type="dataset")))
132
+
133
+ images_zip = hf_hub_download(repo, "AndroidControl_s1000_4014396_images.zip", repo_type="dataset")
134
+ with zipfile.ZipFile(images_zip) as zf:
135
+ zf.extractall("images/")
136
+
137
+ s = samples[0]
138
+ print(s["conversations"])
139
+ img = Image.open(os.path.join("images", s["image"])) # screenshot for this sample
140
+ print("image size:", img.size)
141
+ ```
142
+
143
+ ## About UIPro
144
+
145
+ UIPro is a generalist GUI agent trained on 20.6M understanding tasks across 13 task types,
146
+ followed by agent continued fine-tuning. See the project repository for the full data
147
+ pipeline, training recipes and evaluation scripts:
148
+ **https://github.com/ZJULiHongxin/UIPro**
149
+
150
+ ## License
151
+
152
+ Released under **CC BY-NC 4.0** (non-commercial research use). The underlying screenshots and
153
+ annotations remain subject to the terms of their original source, [AndroidControl](https://github.com/google-research/google-research/tree/master/android_control).
154
+
155
+ ## Citation
156
+
157
+ ```bibtex
158
+ @inproceedings{uipro2025,
159
+ title = {UIPro: A Generalist GUI Agent},
160
+ author = {Li, Hongxin and others},
161
+ booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
162
+ year = {2025}
163
+ }
164
+ ```