mllmTeam commited on
Commit
e8ad6e5
1 Parent(s): bdfeedc
Files changed (1) hide show
  1. README.md +190 -0
README.md ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: [en]
3
+ license: mit
4
+ datasets: [MobileViews]
5
+ pretty_name: "MobileViews: A Large-Scale Mobile GUI Dataset"
6
+ tags:
7
+ - mobile-ui
8
+ - user-interfaces
9
+ - view-hierarchy
10
+ - android-apps
11
+ - screenshots
12
+ task_categories:
13
+ - question-answering
14
+ - image-to-text
15
+ task_ids:
16
+ - task-planning
17
+ - visual-question-answering
18
+ ---
19
+ # MobileViews: A Large-Scale Mobile GUI Dataset
20
+ [**Read the paper**](https://arxiv.org/abs/2409.14337)
21
+
22
+ **MobileViews** is a large-scale dataset designed to support research in mobile user interface (UI) analysis and mobile agents. Our first version — **MobileViews-600K** — contains over **600,000** mobile UI screenshot-view hierarchy (VH) pairs, collected from approximately **20,000 apps** on the Google Play Store.
23
+
24
+
25
+ ## Dataset Overview
26
+
27
+ The dataset includes several `.zip` files, each containing screenshot-VH pairs and corresponding CSV index files, which map each screenshot to its respective view hierarchy (VH).
28
+
29
+
30
+ - `MobileViews_0-150000.zip` (23 GB) and `MobileViews_index_0-150000.csv`: The first set of screenshot-VH pairs, containing IDs from 0 to 150000.
31
+ - `MobileViews_150001-291197.zip` (36 GB) and `MobileViews_index_150001-291197.csv`: The second set of screenshot-VH pairs, containing IDs from 150001 to 291197.
32
+ - `MobileViews_300000-522301.zip` (37 GB) and `MobileViews_index_300000-522301.csv`: The third set of screenshot-VH pairs, containing IDs from 300000 to 522301.
33
+ - `AppMetadata.csv`: App metadata for **15,000 apps** from the Google Play Store, retrieved in **June 2024**.
34
+
35
+ ### Index CSV Columns
36
+
37
+ Each index CSV file contains the following columns, mapping each screenshot to its corresponding view hierarchy:
38
+
39
+ | Column | Description |
40
+ |--------------|-------------------------------------------|
41
+ | `Image File` | Filename of the screenshot (e.g., 0.jpg) |
42
+ | `JSON File` | Filename of the view hierarchy (e.g., 0.json) |
43
+
44
+ **Example:**
45
+ ```csv
46
+ Image File,JSON File
47
+ 300000.jpg,300000.json
48
+ 300001.jpg,300001.json
49
+ 300002.jpg,300002.json
50
+ ```
51
+
52
+ Each `.zip` file contains both the screenshots (JPG) and view hierarchy files (JSON).
53
+
54
+ ### AppMetadata.csv Columns
55
+
56
+ The `AppMetadata.csv` file contains detailed information about each app. The columns are as follows:
57
+
58
+ | Column | Description |
59
+ |---------------------|------------------------------------------------------------------|
60
+ | `title` | App title |
61
+ | `installs` | Number of installs |
62
+ | `minInstalls` | Minimum number of installs |
63
+ | `realInstalls` | Real number of installs |
64
+ | `score` | App score (rating) |
65
+ | `ratings` | Number of ratings |
66
+ | `reviews` | Number of reviews |
67
+ | `histogram` | Rating distribution |
68
+ | `price` | App price |
69
+ | `free` | Indicates if the app is free (True/False) |
70
+ | `offersIAP` | Offers in-app purchases (True/False) |
71
+ | `inAppProductPrice` | In-app product price |
72
+ | `developer` | Developer name |
73
+ | `developerId` | Developer ID |
74
+ | `genre` | App genre |
75
+ | `genreId` | Genre ID |
76
+ | `categories` | App categories |
77
+ | `contentRating` | Content rating (e.g., Everyone, Teen) |
78
+ | `adSupported` | Indicates if the app is ad-supported (True/False) |
79
+ | `containsAds` | Indicates if the app contains ads (True/False) |
80
+ | `released` | App release date |
81
+ | `lastUpdatedOn` | Date of the latest update |
82
+ | `appId` | Unique app identifier |
83
+
84
+
85
+ ## How to Download
86
+
87
+ You can download the dataset using the following methods:
88
+
89
+ 1. **Download via Web UI**:
90
+
91
+ Hugging Face provides a direct download button for each file on the dataset page. Simply click the download button next to the desired `.zip` or `.csv` file.
92
+
93
+
94
+ 2. **Download via `wget`**:
95
+
96
+ You can also use `wget` to download the files, which allows you to resume the download if interrupted:
97
+
98
+ ```bash
99
+ wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_0-150000.zip
100
+ wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_150001-291197.zip
101
+ wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_300000-522301.zip
102
+ ```
103
+
104
+ 3. **Download via Git LFS**:
105
+
106
+ Alternatively, you can clone the repository and pull the large files via Git LFS:
107
+
108
+ ```bash
109
+ git clone https://huggingface.co/datasets/mllmTeam/MobileViews
110
+ cd MobileViews
111
+ git lfs pull
112
+ ```
113
+
114
+ ## File Verification
115
+
116
+ To ensure the downloaded files are complete and correct, you can verify them in multiple ways.
117
+
118
+ 1. **Verify Integrity Using `zip -T`**:
119
+
120
+ ```bash
121
+ zip -T MobileViews_0-150000.zip # expected output: test of MobileViews_0-150000.zip OK
122
+ zip -T MobileViews_150001-291197.zip # expected output: test of MobileViews_150001-291197.zip OK
123
+ zip -T MobileViews_300000-522301.zip # expected output: test of MobileViews_300000-522301.zip OK
124
+ ```
125
+
126
+ 2. **Verify the Number of Files**:
127
+
128
+ You can verify the number of `.jpg` and `.json` files inside the `.zip`:
129
+
130
+ ```bash
131
+ # Check the number of JSON files
132
+ unzip -l MobileViews_0-150000.zip | grep ".json" | wc -l # expected output: 150001
133
+ unzip -l MobileViews_150001-291197.zip | grep ".json" | wc -l # expected output: 141197
134
+ unzip -l MobileViews_300000-522301.zip | grep ".json" | wc -l # expected output: 222302
135
+
136
+ # Check the number of JPG files
137
+ unzip -l MobileViews_0-150000.zip | grep ".jpg" | wc -l # expected output: 150001
138
+ unzip -l MobileViews_150001-291197.zip | grep ".jpg" | wc -l # expected output: 141197
139
+ unzip -l MobileViews_300000-522301.zip | grep ".jpg" | wc -l # expected output: 222302
140
+ ```
141
+
142
+ 3. **Verify the File Size**:
143
+
144
+ You can verify that the file sizes match the expected sizes:
145
+
146
+ ```bash
147
+ du -sh MobileViews_0-150000.zip # expected output: 23G
148
+ du -sh MobileViews_150001-291197.zip # expected output: 36G
149
+ du -sh MobileViews_300000-522301.zip # expected output: 37G
150
+ ```
151
+
152
+ 4. **Verify Using SHA256**:
153
+
154
+ We provide SHA256 checksum files to verify the integrity of the downloaded .zip files:
155
+
156
+ ```bash
157
+ sha256sum -c MobileViews_0-150000.zip.sha256 # expected output: MobileViews_0-150000.zip: OK
158
+ sha256sum -c MobileViews_150001-291197.zip.sha256 # expected output: MobileViews_150001-291197.zip: OK
159
+ sha256sum -c MobileViews_300000-522301.zip.sha256 # expected output: MobileViews_300000-522301.zip: OK
160
+ ```
161
+
162
+ If the output shows `OK`, the file has been downloaded correctly.
163
+
164
+ If the verification result is not as expected, the download may be corrupted. Please try downloading the file again. If the issue persists, feel free to contact us at any time.
165
+
166
+ ## How to Use
167
+
168
+ You can unpack the `.zip` files using the `unzip` command in the terminal or any other unzipping tool.
169
+
170
+ ```bash
171
+ unzip MobileViews_0-150000.zip -d /path/to/extract/directory
172
+ unzip MobileViews_150001-291197.zip -d /path/to/extract/directory
173
+ unzip MobileViews_300000-522301.zip -d /path/to/extract/directory
174
+ ```
175
+ This will extract the contents to the specified directory.
176
+
177
+ ## Citation
178
+
179
+
180
+ ```
181
+ @misc{gao2024mobileviewslargescalemobilegui,
182
+ title={MobileViews: A Large-Scale Mobile GUI Dataset},
183
+ author={Longxi Gao and Li Zhang and Shihe Wang and Shangguang Wang and Yuanchun Li and Mengwei Xu},
184
+ year={2024},
185
+ eprint={2409.14337},
186
+ archivePrefix={arXiv},
187
+ primaryClass={cs.HC},
188
+ url={https://arxiv.org/abs/2409.14337},
189
+ }
190
+ ```