MobileViews / README.md
mllmTeam's picture
readme
e8ad6e5 verified
|
raw
history blame
8.57 kB
metadata
language:
  - en
license: mit
datasets:
  - MobileViews
pretty_name: 'MobileViews: A Large-Scale Mobile GUI Dataset'
tags:
  - mobile-ui
  - user-interfaces
  - view-hierarchy
  - android-apps
  - screenshots
task_categories:
  - question-answering
  - image-to-text
task_ids:
  - task-planning
  - visual-question-answering

MobileViews: A Large-Scale Mobile GUI Dataset

Read the paper

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.

Dataset Overview

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).

  • 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.
  • 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.
  • 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.
  • AppMetadata.csv: App metadata for 15,000 apps from the Google Play Store, retrieved in June 2024.

Index CSV Columns

Each index CSV file contains the following columns, mapping each screenshot to its corresponding view hierarchy:

Column Description
Image File Filename of the screenshot (e.g., 0.jpg)
JSON File Filename of the view hierarchy (e.g., 0.json)

Example:

Image File,JSON File
300000.jpg,300000.json
300001.jpg,300001.json
300002.jpg,300002.json

Each .zip file contains both the screenshots (JPG) and view hierarchy files (JSON).

AppMetadata.csv Columns

The AppMetadata.csv file contains detailed information about each app. The columns are as follows:

Column Description
title App title
installs Number of installs
minInstalls Minimum number of installs
realInstalls Real number of installs
score App score (rating)
ratings Number of ratings
reviews Number of reviews
histogram Rating distribution
price App price
free Indicates if the app is free (True/False)
offersIAP Offers in-app purchases (True/False)
inAppProductPrice In-app product price
developer Developer name
developerId Developer ID
genre App genre
genreId Genre ID
categories App categories
contentRating Content rating (e.g., Everyone, Teen)
adSupported Indicates if the app is ad-supported (True/False)
containsAds Indicates if the app contains ads (True/False)
released App release date
lastUpdatedOn Date of the latest update
appId Unique app identifier

How to Download

You can download the dataset using the following methods:

  1. Download via Web UI:

    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.

  2. Download via wget:

    You can also use wget to download the files, which allows you to resume the download if interrupted:

    wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_0-150000.zip
    wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_150001-291197.zip
    wget -c https://huggingface.co/datasets/mllmTeam/MobileViews/resolve/main/MobileViews_300000-522301.zip
    
  3. Download via Git LFS:

    Alternatively, you can clone the repository and pull the large files via Git LFS:

    git clone https://huggingface.co/datasets/mllmTeam/MobileViews
    cd MobileViews
    git lfs pull
    

File Verification

To ensure the downloaded files are complete and correct, you can verify them in multiple ways.

  1. Verify Integrity Using zip -T:

    zip -T MobileViews_0-150000.zip   # expected output: test of MobileViews_0-150000.zip OK
    zip -T MobileViews_150001-291197.zip   # expected output: test of MobileViews_150001-291197.zip OK
    zip -T MobileViews_300000-522301.zip # expected output: test of MobileViews_300000-522301.zip OK
    
  2. Verify the Number of Files:

    You can verify the number of .jpg and .json files inside the .zip:

    # Check the number of JSON files
    unzip -l MobileViews_0-150000.zip | grep ".json" | wc -l  # expected output: 150001
    unzip -l MobileViews_150001-291197.zip | grep ".json" | wc -l  # expected output: 141197
    unzip -l MobileViews_300000-522301.zip | grep ".json" | wc -l  # expected output: 222302
    
    # Check the number of JPG files
    unzip -l MobileViews_0-150000.zip | grep ".jpg" | wc -l  # expected output: 150001
    unzip -l MobileViews_150001-291197.zip | grep ".jpg" | wc -l  # expected output: 141197
    unzip -l MobileViews_300000-522301.zip | grep ".jpg" | wc -l  # expected output: 222302
    
  3. Verify the File Size:

    You can verify that the file sizes match the expected sizes:

    du -sh MobileViews_0-150000.zip  # expected output: 23G
    du -sh MobileViews_150001-291197.zip  # expected output: 36G
    du -sh MobileViews_300000-522301.zip  # expected output: 37G
    
  4. Verify Using SHA256:

    We provide SHA256 checksum files to verify the integrity of the downloaded .zip files:

    sha256sum -c MobileViews_0-150000.zip.sha256  # expected output: MobileViews_0-150000.zip: OK
    sha256sum -c MobileViews_150001-291197.zip.sha256  # expected output: MobileViews_150001-291197.zip: OK
    sha256sum -c MobileViews_300000-522301.zip.sha256  # expected output: MobileViews_300000-522301.zip: OK
    

    If the output shows OK, the file has been downloaded correctly.

    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.

How to Use

You can unpack the .zip files using the unzip command in the terminal or any other unzipping tool.

unzip MobileViews_0-150000.zip -d /path/to/extract/directory
unzip MobileViews_150001-291197.zip -d /path/to/extract/directory
unzip MobileViews_300000-522301.zip -d /path/to/extract/directory

This will extract the contents to the specified directory.

Citation

@misc{gao2024mobileviewslargescalemobilegui,
      title={MobileViews: A Large-Scale Mobile GUI Dataset}, 
      author={Longxi Gao and Li Zhang and Shihe Wang and Shangguang Wang and Yuanchun Li and Mengwei Xu},
      year={2024},
      eprint={2409.14337},
      archivePrefix={arXiv},
      primaryClass={cs.HC},
      url={https://arxiv.org/abs/2409.14337}, 
}