File size: 8,548 Bytes
7d553c5
c568119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7d553c5
c568119
 
 
f2f3346
c568119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f2f3346
c568119
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
---
pretty_name: PixelOne Training Subsets
license: other
license_name: source-specific
license_link: https://huggingface.co/datasets/KangHui2200/PixelOne-Data/blob/main/SOURCES.md
size_categories:
  - 100K<n<1M
tags:
  - gui-grounding
  - pixelone
  - bounding-boxes
  - annotations-only
configs:
  - config_name: control_21557
    data_files:
      - split: train
        path: annotations/control_21557.jsonl.gz
  - config_name: train_200k
    data_files:
      - split: train
        path: annotations/train_200k.jsonl.gz
      - split: validation
        path: annotations/validation_2000.jsonl.gz
  - config_name: train_500k
    default: true
    data_files:
      - split: train
        path: annotations/train_500k.jsonl.gz
      - split: validation
        path: annotations/validation_2000.jsonl.gz
---

# PixelOne Training Subsets

[Code](https://github.com/tiankanghui/PixelOne) · [Models](https://huggingface.co/KangHui2200/PixelOne)

The exact grounding targets used for PixelOne's controlled studies, 200K and 500K continuations, and shared validation set. Each annotation includes the original target ID, instruction, bounding box, image size, and upstream reference. **Screenshots are not included.** Download them from the pinned upstream sources and extract the selected images locally.

## Quick start

Download the annotation package without downloading any screenshots:

```bash
hf download KangHui2200/PixelOne-Data --repo-type dataset --local-dir PixelOne-Data
```

If the repository is private, first run `hf auth login` with an account that has access.

Or read a split with Hugging Face Datasets:

```python
from datasets import load_dataset

train = load_dataset("KangHui2200/PixelOne-Data", "train_500k", split="train")
validation = load_dataset("KangHui2200/PixelOne-Data", "train_500k", split="validation")
```

Use `control_21557` or `train_200k` to select another configuration. The `image` field is a relative path, not an embedded image. The continuation configurations share the same validation file. Install `huggingface_hub` for the download command or `datasets` for the Python example.

## Contents

| Annotation file | Targets | Unique RGB screenshots | Compressed size |
| --- | ---: | ---: | ---: |
| `annotations/control_21557.jsonl.gz` | 21,557 | 1,010 | 1.7 MiB |
| `annotations/train_200k.jsonl.gz` | 200,000 | 78,530 | 27.5 MiB |
| `annotations/train_500k.jsonl.gz` | 500,000 | 87,517 | 69.5 MiB |
| `annotations/validation_2000.jsonl.gz` | 2,000 | 1,808 | 0.3 MiB |

The complete package is about 109 MiB. `images.jsonl.gz` lists image references and checksums, not image bytes. `manifest.json` records counts and annotation hashes. `sources.json` provides pinned download links and upstream file hashes. `validation.json` records the checks performed on this package.

The 200K targets are included in the 500K set. The 500K file preserves the training pack order, with the 200K targets followed by the three additional 100K parts. The 200K and 500K runs are separate continuations of the controlled student. Control and continuation sets may share training screenshots. Validation shares no target IDs, decoded RGB screenshots, or recorded OS-Atlas image families with these training sets.

### Source mixture

| Source | Control | 200K | 500K | Validation |
| --- | ---: | ---: | ---: | ---: |
| GroundCUA | 0 | 140,500 | 350,500 | 1,420 |
| ShowUI web | 14,062 | 30,000 | 90,000 | 300 |
| ShowUI desktop | 7,495 | 1,500 | 1,800 | 0 |
| OS-Atlas Linux | 0 | 12,000 | 22,000 | 120 |
| OS-Atlas macOS | 0 | 6,000 | 13,000 | 60 |
| OS-Atlas RICO | 0 | 8,000 | 19,000 | 80 |
| OS-Atlas UIBert | 0 | 2,000 | 3,700 | 20 |

## Annotation format

Each UTF-8 JSONL line contains these fields:

| Field | Meaning |
| --- | --- |
| `id` | Original target ID. |
| `image` | Image path relative to the image root, starting with `images/`. |
| `image_size` | Original `[width, height]` in pixels. |
| `instruction` | Original grounding instruction, without a chat template. |
| `bbox_xyxy` | Original `[left, top, right, bottom]` in pixels, not normalized coordinates. |
| `source` | Source family listed in `sources.json`. |
| `source_ref` | Upstream annotation file, 1-based row, and 0-based element index. |

`source_ref.annotation_file` is relative to the source repository. The index fields are `row_1based` and `element_0based`. Rows refer to records in the upstream JSON array or Parquet file, not text line numbers in a formatted JSON file. IDs, instructions, box values, and image sizes are unchanged. Local absolute paths, chat messages, and training-only fields are removed.

Each image-manifest entry contains `image`, `source`, `source_image`, `image_size`, `image_sha256`, and `pixel_sha256`. GroundCUA entries also identify `parquet_file` and `row_1based`. The file SHA256 checks original encoded bytes. The pixel SHA256 is computed as follows:

```python
hashlib.sha256(str(image.size).encode() + image.convert("RGB").tobytes()).hexdigest()
```

Here `image.size` is the `(width, height)` tuple. There are 90,598 source-image references and 89,335 unique RGB screenshots across the package. Every reference is used by at least one annotation.

## Download and reconstruct images

Use Python 3.11 or newer. Run the commands below from this package directory.

```bash
python -m pip install Pillow pyarrow huggingface_hub
sha256sum -c SHA256SUMS
python scripts/validate_release.py .
```

The validator needs only the Python standard library. Pillow is needed to reconstruct images, and PyArrow is needed for GroundCUA. `huggingface_hub` is used only by the optional download example below.

### 1. Obtain the upstream image files

The direct links in `sources.json` identify the exact upstream files. Alternatively, download them with the following code:

```python
import json
from pathlib import Path
from huggingface_hub import snapshot_download

catalog = json.loads(Path("sources.json").read_text())
for source in catalog["repositories"]:
    files = [entry["path"] for entry in source["files"]
             if entry["role"] in ("images", "images_and_annotations")]
    snapshot_download(
        repo_id=source["repo_id"],
        repo_type="dataset",
        revision=source["revision"],
        allow_patterns=files,
        local_dir=Path("upstream_downloads") / source["local_dir"],
    )
```

This downloads roughly 74 GiB of upstream files. Some archives contain images outside our subset because the source distributes them together. Only selected images are extracted in the next step. Upstream annotation files are linked for provenance but are not required for reconstruction. If you only need the control set, download the two ShowUI sources.

Keep the downloaded repository paths under these directories:

```text
upstream_downloads/
  ShowUI-web/images.tar.gz
  ShowUI-desktop/images/...
  GroundCUA-train/train-00000-of-00006.parquet
  GroundCUA-train/... remaining five parquet files
  OS-Atlas-data/desktop_domain/... image ZIP files
  OS-Atlas-data/mobile_domain/... image ZIP files
```

### 2. Extract only the selected images

```bash
python scripts/materialize_images.py \
  --annotations annotations/train_500k.jsonl.gz \
  --image-manifest images.jsonl.gz \
  --source-root upstream_downloads \
  --image-root data
```

Pass multiple annotation files after `--annotations` to prepare more than one split. The script does not resize or re-encode images. It checks the file hash, original dimensions, and decoded RGB hash of each selected image. Existing matching images are reused, and mismatched files are not overwritten. The output paths begin with `data/images/`.

### 3. Prepare annotations for training

After installing the [PixelOne code](https://github.com/tiankanghui/PixelOne), decompress the chosen JSONL and prepare it with the same image root:

```bash
gzip -dc annotations/train_500k.jsonl.gz > data/train_500k.annotations.jsonl
pixelone prepare-data \
  --input data/train_500k.annotations.jsonl \
  --image-root data \
  --output data/train_500k.jsonl
```

Repeat for any other splits you use. Point the training configuration's `data` at the prepared JSONL and `image_root` at `data`. Preparation does not resample these subsets. Teacher checkpoints and cached search distributions are not included in this annotation package.

## Sources and terms

See [SOURCES.md](SOURCES.md) for source attribution and declared licenses. Terms remain source-specific. This package does not assign a new blanket license to the upstream annotations or screenshots.