EliSpctre commited on
Commit
2424670
·
verified ·
1 Parent(s): d160f43

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +179 -0
README.md ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - robotics
5
+ - visual-question-answering
6
+ tags:
7
+ - gui-agent
8
+ - mobile
9
+ - grounding
10
+ - android
11
+ - static-evaluation
12
+ pretty_name: "AndroidControl*"
13
+ size_categories:
14
+ - 1K<n<10K
15
+ ---
16
+
17
+ # AndroidControl*
18
+
19
+ A curated step-level evaluation subset extracted from AndroidControl, used for static mobile GUI understanding evaluation in [UI-MOPD](https://huggingface.co/UI-MOPD) (Multi-platform On-Policy Distillation for Continual GUI Agent Learning).
20
+
21
+ ## Overview
22
+
23
+ AndroidControl* contains 4,260 step-level records from 781 Android trajectories. Each record includes the trajectory identifier, step index, high-level task goal, per-step instruction, normalized action, screenshot path, screenshot resolution, and optional UI grounding metadata.
24
+
25
+ AndroidControl* preserves the same normalized mobile action space used in UI-MOPD training, including `click`, `scroll`, `input_text`, `open_app`, `wait`, `navigate_back`, `long_press`, and `navigate_home`. For actions that can be matched to a UI element, grounding metadata (target bounding boxes, widget class, text, resource id, package name, ancestor information, and matching node count) is included. This subset is mainly used to evaluate static mobile GUI understanding, verify action-screen alignment, and illustrate the format of mobile data after normalization.
26
+
27
+ ## Dataset Statistics
28
+
29
+ | Metric | Value |
30
+ |--------|-------|
31
+ | Step Records | 4,260 |
32
+ | Trajectories | 781 |
33
+ | Platform | Android Mobile (1080x2400) |
34
+ | Format | JSONL + PNG screenshots |
35
+ | Coordinate System | Absolute pixel (actions normalized to [0, 1000] for evaluation) |
36
+
37
+ ## Action Space
38
+
39
+ | Action | Description |
40
+ |--------|-------------|
41
+ | `click` | Tap at coordinate |
42
+ | `long_press` | Long press at coordinate |
43
+ | `scroll` | Scroll in direction (up/down/left/right) |
44
+ | `input_text` | Type text into active field |
45
+ | `open_app` | Launch application by name |
46
+ | `navigate_back` | Return to previous interface |
47
+ | `navigate_home` | Return to home screen |
48
+ | `wait` | Wait for UI response |
49
+
50
+ ## Grounding Metadata
51
+
52
+ For actions that can be matched to a UI element, each record includes grounding metadata:
53
+
54
+ | Field | Description |
55
+ |-------|-------------|
56
+ | `target_bbox` | Bounding box of the target element [left, top, right, bottom] in pixels |
57
+ | `target_class` | Android widget class (e.g., `android.widget.TextView`) |
58
+ | `target_text` | Visible text on the element |
59
+ | `target_content_desc` | Accessibility content description |
60
+ | `target_resource_id` | Android resource ID |
61
+ | `target_package` | Application package name |
62
+ | `ancestor_bbox` | Bounding box of the nearest ancestor with text |
63
+ | `ancestor_text` | Text on the ancestor element |
64
+ | `n_matching_nodes` | Number of UI nodes matching the action target |
65
+
66
+ Steps without a directly groundable target (e.g., waiting or app-level operations) have `grounding: null`.
67
+
68
+ ## Data Format
69
+
70
+ ```
71
+ AndroidControl-Star/
72
+ steps.jsonl # All 4,260 step-level records
73
+ images/
74
+ episode_0/
75
+ step_0.png
76
+ step_1.png
77
+ ...
78
+ episode_100/
79
+ ...
80
+ ```
81
+
82
+ ### JSONL Record Structure
83
+
84
+ ```json
85
+ {
86
+ "episode_id": 0,
87
+ "step_idx": 0,
88
+ "total_steps": 3,
89
+ "goal": "Open the Zoho Meet app, view the scheduled meetings.",
90
+ "instruction": "Open the Zoho Meet app",
91
+ "action": {
92
+ "action_type": "open_app",
93
+ "app_name": "Zoho Meeting"
94
+ },
95
+ "screenshot": "images/episode_0/step_0.png",
96
+ "screenshot_width": 1080,
97
+ "screenshot_height": 2400,
98
+ "grounding": {
99
+ "target_bbox": [494, 365, 586, 416],
100
+ "target_class": "android.widget.TextView",
101
+ "target_text": "",
102
+ "target_content_desc": "",
103
+ "target_resource_id": "",
104
+ "target_package": "com.zoho.meeting",
105
+ "ancestor_bbox": [360, 317, 720, 464],
106
+ "ancestor_text": "Past",
107
+ "n_matching_nodes": 14
108
+ }
109
+ }
110
+ ```
111
+
112
+ ## Evaluation Protocol
113
+
114
+ Coordinates are normalized to [0, 1000] for both model input and evaluation:
115
+
116
+ ```python
117
+ # Normalize pixel coordinate to [0, 1000]
118
+ norm_x = round(x / width * 1000)
119
+ norm_y = round(y / height * 1000)
120
+
121
+ # Denormalize model output back to pixels
122
+ pixel_x = norm_x / 1000 * width
123
+ pixel_y = norm_y / 1000 * height
124
+ ```
125
+
126
+ ### Evaluation Metrics
127
+
128
+ | Metric | Description |
129
+ |--------|-------------|
130
+ | Action Type Accuracy | Predicted action type matches ground truth |
131
+ | Grounding (target) | Predicted coordinate falls within `target_bbox` |
132
+ | Grounding (ancestor) | Predicted coordinate falls within `ancestor_bbox` (more lenient) |
133
+ | Overall Accuracy | Joint accuracy of action type and grounding |
134
+
135
+ ## Prompt Template
136
+
137
+ The evaluation uses the `mobile_use` tool interface with the following action set:
138
+
139
+ ```
140
+ click, long_press, swipe, type, system_button, open_app, wait, terminate
141
+ ```
142
+
143
+ Each step is prompted with the episode-level goal and the current step instruction. The model outputs structured reasoning (Thought + Action) followed by a tool call.
144
+
145
+ ## Usage
146
+
147
+ ```python
148
+ import json
149
+
150
+ with open("steps.jsonl", "r") as f:
151
+ steps = [json.loads(line) for line in f]
152
+
153
+ # Group by episode
154
+ from collections import defaultdict
155
+ episodes = defaultdict(list)
156
+ for step in steps:
157
+ episodes[step["episode_id"]].append(step)
158
+
159
+ print(f"Total steps: {len(steps)}, Episodes: {len(episodes)}")
160
+ ```
161
+
162
+ Or clone directly:
163
+
164
+ ```bash
165
+ git clone https://huggingface.co/datasets/UI-MOPD/AndroidControl-Star
166
+ ```
167
+
168
+ ## Citation
169
+
170
+ ```bibtex
171
+ @article{ui-mopd,
172
+ title={UI-MOPD: Multi-platform On-Policy Distillation for Continual GUI Agent Learning},
173
+ year={2025}
174
+ }
175
+ ```
176
+
177
+ ## License
178
+
179
+ Apache 2.0