HongxinLi commited on
Commit
0e3a5e9
·
verified ·
1 Parent(s): 36d666b

Add dataset card (README) with schema and field documentation

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