HMSSS55 commited on
Commit
00eb20a
·
verified ·
1 Parent(s): 9e4d1bb

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ manifest/source-manifest-2026-10-23.jsonl filter=lfs diff=lfs merge=lfs -text
LICENSE.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ScreenProof license
2
+
3
+ ScreenProof has parts under different terms. The `image_license` field of each row says which part an image is in.
4
+
5
+ ## 1. Labels, manifest and generated images: CC BY 4.0
6
+
7
+ The labels (`label`, `follows`, `num_faults`, `fault`, `fault_group`, `human_check` and the other metadata fields), the
8
+ source manifest in `manifest/`, the prompt in `prompt.txt`, and every image with `image_license = CC-BY-4.0`
9
+ (`source = generated`) are licensed under the Creative Commons Attribution 4.0 International License:
10
+ https://creativecommons.org/licenses/by/4.0/legalcode
11
+
12
+ Attribution: cite the ScreenProof paper (see README.md).
13
+
14
+ ## 2. Third-party images: owners' terms, research use only
15
+
16
+ Images with `image_license = third-party` are vendor screenshots (`source = vendor_screenshot`) and renders of public
17
+ web pages, with their engine-made copies (`source = web_page`). Their copyright stays with their owners. The original
18
+ URL is in `source_url`, and the terms recorded at collection are in the manifest. The CC BY 4.0 license above does
19
+ not apply to them.
20
+
21
+ They are included only so that the benchmark can be evaluated and studied. Use them only for non-commercial research.
22
+ Do not redistribute them outside this dataset, and do not use them to identify or represent their owners.
23
+
24
+ If you own one of these images and want it removed, contact huiming.sun1@innopeaktech.com. We remove it.
25
+
26
+ ## 3. Code: MIT License
27
+
28
+ `evaluate.py`:
29
+
30
+ Copyright (c) 2026 The ScreenProof authors
31
+
32
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
33
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
34
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
35
+ persons to whom the Software is furnished to do so, subject to the following conditions:
36
+
37
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
38
+ Software.
39
+
40
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
41
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
42
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
43
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
README.md ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: ScreenProof
3
+ license: other
4
+ license_name: cc-by-4.0-with-third-party-images
5
+ license_link: LICENSE.md
6
+ language:
7
+ - en
8
+ - zh
9
+ task_categories:
10
+ - image-text-to-text
11
+ - object-detection
12
+ tags:
13
+ - gui
14
+ - user-interface
15
+ - mobile
16
+ - screenshot
17
+ - design-consistency
18
+ - ui-critique
19
+ - benchmark
20
+ size_categories:
21
+ - 10K<n<100K
22
+ configs:
23
+ - config_name: default
24
+ default: true
25
+ data_files:
26
+ - split: test
27
+ path: data/consistency_test-*.parquet
28
+ - split: train
29
+ path: data/train-*.parquet
30
+ - split: validation
31
+ path: data/validation-*.parquet
32
+ - config_name: text_layout
33
+ data_files:
34
+ - split: test
35
+ path: data/text_layout_test-*.parquet
36
+ ---
37
+
38
+ # ScreenProof: Where Is This Screen Wrong? Finding UI Faults Without a Reference
39
+
40
+ ScreenProof is a benchmark and a training set for **reference-free UI critique** of phone screenshots.
41
+ A critic gets one screenshot and no design file, no target brand and no second screen. It must say whether the
42
+ screen is correct and put a box on each element that is wrong: a general UI fault (text overflow, overlap, low
43
+ contrast, a small tap target and others) or an element that is inconsistent with the rest of the page (a component
44
+ from another design language, or a local change of icon, accent colour, corner radius or material).
45
+
46
+ - Project page and leaderboard: https://hms97.github.io/screenproof/
47
+ - Paper: arXiv link to follow
48
+ - Evaluation: `evaluate.py` in this repository (MIT License)
49
+
50
+ ## Splits
51
+
52
+ | Config / split | Rows | Images | Content |
53
+ |---|---:|---:|---|
54
+ | `default` / `test` (consistency test) | 2,765 | 2,765 | 607 clean pages (120 real, 487 generated; 181 of them hard negatives), 920 general faults, 1,238 local style faults (662 transplanted components). One fault per faulty page. |
55
+ | `text_layout` / `test` | 513 | 513 | 367 text layout faults, 75 clean pages, 71 hard negatives. English pages. |
56
+ | `default` / `train` (ScreenProof-Train) | 17,285 | 11,424 | From 990 pages: 542 generated and 448 public web pages. A row is an image with its label; an image can appear in several rows. |
57
+ | `default` / `validation` | 1,571 | 1,571 | Six held-out page requirements. Used to choose checkpoints and thresholds, never the test. |
58
+
59
+ No test or validation page requirement occurs in the training set. Three page requirements per design language are
60
+ held out for testing. The design languages are iOS, Material, One UI, HarmonyOS, ColorOS, MagicOS, OriginOS and
61
+ HyperOS.
62
+
63
+ ```python
64
+ from datasets import load_dataset
65
+
66
+ test = load_dataset("HMSSS55/ScreenProof", split="test") # consistency test
67
+ text = load_dataset("HMSSS55/ScreenProof", "text_layout", split="test") # text layout test
68
+ train = load_dataset("HMSSS55/ScreenProof", split="train")
69
+ ```
70
+
71
+ ## Fields
72
+
73
+ | Field | Meaning |
74
+ |---|---|
75
+ | `id` | Stable row id (`ct-`, `tl-`, `tr-`, `va-` prefix). Predictions for `evaluate.py` use it. |
76
+ | `image` | The screenshot (PNG or WebP, full resolution). |
77
+ | `page` | The page the image comes from. Faulty copies of one page share it. |
78
+ | `design_language` | `ios`, `material`, `oneui`, `harmonyos`, `coloros`, `magicos`, `originos`, `hyperos`; empty for public web pages. |
79
+ | `source` | `generated` (our pages and their engine-made copies), `vendor_screenshot` (a vendor's public screenshot), `web_page` (a public web page rendered at phone size, and its engine-made copies). |
80
+ | `source_url` | The original URL for `vendor_screenshot` and `web_page` rows. |
81
+ | `image_license` | `CC-BY-4.0` or `third-party` (see License). |
82
+ | `fault` | The engine's fault name, or `clean`. |
83
+ | `fault_group` | Test sets: the fault group used in the paper (`display`, `overlap`, `two_selected`, `typeface`, `reordered_sections`, `low_contrast`, `small_tap_target`, `dropped_item`, `text_overflow`, `transplanted_component`, `icon`, `accent`, `material`, `corner_radius`, `text_layout`, `clean`, `hard_negative`). Train and validation: the training family (`clean`, `designed`, `multi`, `swap`, `local`, `text`, `page`, `general`). |
84
+ | `follows` | `true` when the page has no fault. |
85
+ | `num_faults` | Number of labelled boxes. |
86
+ | `label` | JSON in the same form as a critic's answer (`prompt.txt`): `{"follows": bool, "inconsistencies": [{"element", "box", "kind", "aspect"}]}`. `kind` is `common` or `inconsistent`. Boxes are `[x0, y0, x1, y1]` in 0-1000 screen coordinates. |
87
+ | `human_check` | Consistency test only: the verdict of a hand check, where one was made (`wrong` = the labelled fault is real, `clean` = the clean page is clean, `faulty`, `hidden`, `fine` = the label is not right, `unsure`). |
88
+
89
+ A hard negative changes every sibling alike (for example all list rows), so the page stays consistent and a critic
90
+ must stay silent.
91
+
92
+ ## How the labels are made
93
+
94
+ Faults are made in HTML page code, so the edit is the label. The data engine makes exactly one change, reads the
95
+ changed element's rendered box from the DOM, and re-renders the page identically. Clean labels rest on base pages
96
+ that two model judges found on-spec. Clean test pages that both outside judges boxed at the same place were removed
97
+ (106 pages). A hand check of 481 test items found 85 mislabelled; `evaluate.py --exclude-human-flagged` leaves them
98
+ out (2,680 pages), and every F1 in the paper changes by at most 0.01.
99
+
100
+ ## Evaluation
101
+
102
+ ```bash
103
+ python evaluate.py --split consistency_test --predictions preds.jsonl
104
+ ```
105
+
106
+ `preds.jsonl` holds one line per screenshot: `{"id": "ct-00012", "answer": {...}}`, or `{"id": ..., "raw": "<model text>"}`.
107
+ A reported box finds a fault when IoU >= 0.5, one-to-one and greedy by IoU (`--iou 0.3` for the loose table).
108
+ Precision is over all reported boxes, clean pages included. The script also reports consistency recall, general
109
+ recall and the share of clean real and clean generated pages that the critic flags. Send the prompt in `prompt.txt`
110
+ with the image and nothing else.
111
+
112
+ ## Source manifest
113
+
114
+ `manifest/source-manifest-2026-10-23.jsonl` is the frozen collection manifest: for each public image its source page,
115
+ date of collection, terms of use, size and hash, and for files from public UI datasets their licence.
116
+
117
+ ## License
118
+
119
+ - Labels, the source manifest and all `generated` images: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
120
+ - `vendor_screenshot` and `web_page` images (`image_license = third-party`): copyright stays with their owners.
121
+ They are included only for non-commercial research and the evaluation of this benchmark. See `LICENSE.md`.
122
+ - `evaluate.py`: MIT License.
123
+
124
+ If you own an image in this dataset and want it removed, write to the contact below and we remove it.
125
+
126
+ ## Intended use and limitations
127
+
128
+ Intended use: evaluate and train critics that find UI faults on phone screenshots without a reference, and study when
129
+ such a critic can serve as a first pass before human review.
130
+ Out of scope: judging a designer's work or a brand's conformance without human review; use as a production gate on
131
+ its own; screens with interaction or motion.
132
+ Limitations: single phone screens only; the text layout test is English only; clean labels come from model judges.
133
+
134
+ ## Citation
135
+
136
+ ```bibtex
137
+ @article{sun2026screenproof,
138
+ title = {ScreenProof: Where Is This Screen Wrong? Finding UI Faults Without a Reference},
139
+ author = {Sun, Huiming and Li, Yue and Yang, Kangning and Li, Ruineng and Cai, Jie and Fu, Lan and
140
+ Fu, Yunwan and Li, Jinlong and Shen, Jinglin},
141
+ journal = {arXiv preprint},
142
+ year = {2026}
143
+ }
144
+ ```
145
+
146
+ Contact: Huiming Sun, huiming.sun1@innopeaktech.com
data/consistency_test-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bc8682ae06cc2cdb2138b6fd2731b0b01c5e69332d571d4c19970fddf838c49
3
+ size 309033142
data/consistency_test-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef84fe761e5402bd0625475f2b3c81886248d499425867a940e133a604caa8c4
3
+ size 334360661
data/text_layout_test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e498ed509226c75c1803540a37774b1476afd7c8af79b0510a6984cafa098fa
3
+ size 115054447
data/train-00000-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a20d6bf59928fc4762ef796e102b7e80340a6c738a9c1a812d6da4020eb926b5
3
+ size 414732609
data/train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9a3fbd0e86ff4d4d912ab95bcafaee6790f2e889e62468ca83cb4ce72b0b9a5
3
+ size 431522119
data/train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba865975b0700effc48c0a61857f16b4ec8248934ef55192715d953fde9a1082
3
+ size 445725727
data/train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ed723ce0e74b6142c9519bc0c332ff082837bac459a926ee6c5bb000d03a639
3
+ size 427303329
data/train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f4ed30b607a41cb1751848fa76cd90066d0c44a428440cf52228931b12536b2
3
+ size 445638393
data/train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15923a8ffad6516517806a7f5c2385739cb8e6eac2fb9beaa641dd4cc0877583
3
+ size 429135599
data/train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:038f3283750c0037e4a1cdcc9dc6f230882cbebc6258d65cf0cbc02cc5502843
3
+ size 442170344
data/train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0696666746326bec0418b49e57418ed05e21978be51da4fa89fa78688d609795
3
+ size 429372225
data/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f43fcdc213d21797bb8707a7682e33c1c9f08a040582944951354fcc79d74cf6
3
+ size 399792551
evaluate.py ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Score a critic's answers on ScreenProof (MIT License).
2
+
3
+ Predictions: a JSONL file, one line per screenshot: {"id": "ct-00012", "answer": {...}} or {"id": ..., "raw": "<text>"}.
4
+ An answer has the form of prompt.txt: {"follows": bool, "inconsistencies": [{"element", "box", "kind", "aspect"}]},
5
+ boxes as [x0, y0, x1, y1] in 0-1000 screen coordinates. A missing or unparsable answer counts as finding nothing.
6
+
7
+ Matching: one-to-one, greedy by IoU, a reported box finds a fault when IoU >= 0.5 (--iou 0.3 for the loose table).
8
+ precision = matched boxes / all reported boxes (clean pages included)
9
+ recall = matched faults / all faults; F1 from both
10
+ consistency recall = recall on "inconsistent" faults (transplanted components, local style faults)
11
+ general recall = recall on "common" faults
12
+ false alarm = share of clean pages that the critic flags (follows false, or any box), real and generated apart
13
+
14
+ python evaluate.py --split consistency_test --predictions preds.jsonl [--data-dir .] [--exclude-human-flagged]
15
+
16
+ --exclude-human-flagged leaves out the pages that the label check marked faulty, hidden or fine (the "human" table).
17
+ Note: the paper's runs sent prompt.txt with its JSON braces doubled ({{ }}); this script reads either form.
18
+ """
19
+ from __future__ import annotations
20
+
21
+ import argparse
22
+ import glob
23
+ import json
24
+ import os
25
+ import re
26
+
27
+ import pyarrow.parquet as pq
28
+
29
+
30
+ def parse(raw):
31
+ if isinstance(raw, dict) or raw is None:
32
+ return raw
33
+ raw = re.sub(r"<think>.*?</think>", "", str(raw), flags=re.S)
34
+ start = raw.find("{")
35
+ if start < 0:
36
+ return None
37
+ for text in (raw[start:], raw[start:].replace("{{", "{").replace("}}", "}")):
38
+ try:
39
+ return json.JSONDecoder().raw_decode(text)[0]
40
+ except json.JSONDecodeError:
41
+ continue
42
+ return None
43
+
44
+
45
+ def box(b):
46
+ if not isinstance(b, (list, tuple)) or len(b) != 4:
47
+ return None
48
+ try:
49
+ x0, y0, x1, y1 = (float(v) for v in b)
50
+ except (TypeError, ValueError):
51
+ return None
52
+ return [min(x0, x1), min(y0, y1), max(x0, x1), max(y0, y1)]
53
+
54
+
55
+ def iou(a, b):
56
+ ix = max(0.0, min(a[2], b[2]) - max(a[0], b[0]))
57
+ iy = max(0.0, min(a[3], b[3]) - max(a[1], b[1]))
58
+ inter = ix * iy
59
+ union = (a[2] - a[0]) * (a[3] - a[1]) + (b[2] - b[0]) * (b[3] - b[1]) - inter
60
+ return inter / union if union > 0 else 0.0
61
+
62
+
63
+ def match(items, truths, thr):
64
+ reps = [box(i.get("box")) for i in items]
65
+ tbs = [box(t.get("box")) for t in truths]
66
+ cand = sorted(((iou(r, t), i, j) for i, r in enumerate(reps) if r for j, t in enumerate(tbs) if t
67
+ if iou(r, t) >= thr), reverse=True)
68
+ used_i, used_t, pairs = set(), set(), []
69
+ for _, i, j in cand:
70
+ if i not in used_i and j not in used_t:
71
+ used_i.add(i)
72
+ used_t.add(j)
73
+ pairs.append((i, j))
74
+ return pairs
75
+
76
+
77
+ def load_split(data_dir, split):
78
+ files = sorted(glob.glob(os.path.join(data_dir, "data", f"{split}-*.parquet")))
79
+ if not files:
80
+ raise SystemExit(f"no parquet files for {split} in {data_dir}/data")
81
+ cols = ["id", "source", "label", "human_check"]
82
+ rows = []
83
+ for f in files:
84
+ rows += pq.read_table(f, columns=cols).to_pylist()
85
+ return rows
86
+
87
+
88
+ def main():
89
+ ap = argparse.ArgumentParser()
90
+ ap.add_argument("--split", default="consistency_test", choices=["consistency_test", "text_layout_test", "validation"])
91
+ ap.add_argument("--predictions", required=True)
92
+ ap.add_argument("--data-dir", default=os.path.dirname(os.path.abspath(__file__)))
93
+ ap.add_argument("--iou", type=float, default=0.5)
94
+ ap.add_argument("--exclude-human-flagged", action="store_true")
95
+ a = ap.parse_args()
96
+
97
+ rows = load_split(a.data_dir, a.split)
98
+ if a.exclude_human_flagged:
99
+ rows = [r for r in rows if r["human_check"] not in ("faulty", "hidden", "fine")]
100
+ preds = {}
101
+ with open(a.predictions, encoding="utf-8") as fh:
102
+ for line in fh:
103
+ if line.strip():
104
+ p = json.loads(line)
105
+ ans = parse(p["answer"]) if "answer" in p else parse(p.get("raw"))
106
+ if ans is not None or p["id"] not in preds:
107
+ preds[p["id"]] = ans
108
+ c = dict.fromkeys(["boxes", "matched", "faults", "con_truth", "con_hit", "gen_truth", "gen_hit", "unparsed",
109
+ "clean_real", "fa_real", "clean_gen", "fa_gen"], 0)
110
+ for r in rows:
111
+ truths = json.loads(r["label"])["inconsistencies"] or []
112
+ ans = preds.get(r["id"])
113
+ if not isinstance(ans, dict):
114
+ c["unparsed"] += 1
115
+ ans = {"follows": True, "inconsistencies": []}
116
+ items = [i for i in (ans.get("inconsistencies") or []) if isinstance(i, dict)]
117
+ pairs = match(items, truths, a.iou)
118
+ c["boxes"] += len(items)
119
+ c["matched"] += len(pairs)
120
+ c["faults"] += len(truths)
121
+ hit = {j for _, j in pairs}
122
+ for j, t in enumerate(truths):
123
+ k = "con" if t.get("kind") == "inconsistent" else "gen"
124
+ c[f"{k}_truth"] += 1
125
+ c[f"{k}_hit"] += j in hit
126
+ if not truths:
127
+ s = "gen" if r["source"] == "generated" else "real"
128
+ c[f"clean_{s}"] += 1
129
+ c[f"fa_{s}"] += ans.get("follows") is False or bool(items)
130
+ p = c["matched"] / c["boxes"] if c["boxes"] else 0.0
131
+ rec = c["matched"] / c["faults"] if c["faults"] else 0.0
132
+ out = {"pages": len(rows), "precision": round(p, 4), "recall": round(rec, 4),
133
+ "f1": round(2 * p * rec / (p + rec), 4) if p + rec else 0.0,
134
+ "consistency_recall": round(c["con_hit"] / max(1, c["con_truth"]), 4),
135
+ "general_recall": round(c["gen_hit"] / max(1, c["gen_truth"]), 4),
136
+ "false_alarm_real": round(c["fa_real"] / max(1, c["clean_real"]), 4),
137
+ "false_alarm_generated": round(c["fa_gen"] / max(1, c["clean_gen"]), 4),
138
+ "unparsed": c["unparsed"], "iou": a.iou}
139
+ print(json.dumps(out, indent=1))
140
+
141
+
142
+ if __name__ == "__main__":
143
+ main()
manifest/source-manifest-2026-10-23.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53ad1486ad9189d54de8f7f96b0c6ec9b61117cf170d0a0f41af5fabff1c97b
3
+ size 29061765
prompt.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is a phone UI screen. Check every visible element: title bar, bottom navigation, buttons,
2
+ switches, list rows, cards, icons, text and spacing. List each element that is wrong. Two kinds of problems count:
3
+ - "common": a UI error under any design language (text overflow or cut off, overlap, misalignment,
4
+ uneven spacing, low contrast, tap area too small, confused hierarchy, wrong order, missing element);
5
+ - "inconsistent": the element does not match the style of the rest of this page, as if it came from another
6
+ app or design system; give its aspect: "component" (the component's style), "icon" (icon style), "colour",
7
+ "radius" (corner shape), "material" (surfaces, blur, depth) or "type" (typeface and type style).
8
+ Judge each element against the rest of the page, not against any brand. A page whose elements all share one
9
+ style and have no common problem follows.
10
+ Give each one's bounding box as [x0, y0, x1, y1] in a 0-1000 coordinate system of the image
11
+ (x to the right, y down; 0,0 is the top-left corner).
12
+ Answer only with JSON: {"follows": true or false, "inconsistencies": [{"element": "short name",
13
+ "box": [x0, y0, x1, y1], "kind": "common" or "inconsistent",
14
+ "aspect": "component", "icon", "colour", "radius", "material", "type" or ""}]}
stats.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "consistency_test": {
3
+ "rows": 2765,
4
+ "images": 2765,
5
+ "by_source": {
6
+ "generated": 2586,
7
+ "vendor_screenshot": 67,
8
+ "web_page": 112
9
+ },
10
+ "by_fault_group": {
11
+ "transplanted_component": 662,
12
+ "clean": 426,
13
+ "display": 347,
14
+ "icon": 188,
15
+ "hard_negative": 181,
16
+ "accent": 179,
17
+ "material": 123,
18
+ "overlap": 115,
19
+ "two_selected": 111,
20
+ "corner_radius": 86,
21
+ "typeface": 77,
22
+ "low_contrast": 66,
23
+ "reordered_sections": 65,
24
+ "small_tap_target": 48,
25
+ "text_overflow": 47,
26
+ "dropped_item": 44
27
+ }
28
+ },
29
+ "text_layout_test": {
30
+ "rows": 513,
31
+ "images": 513,
32
+ "by_source": {
33
+ "generated": 513
34
+ },
35
+ "by_fault_group": {
36
+ "text_layout": 367,
37
+ "clean": 75,
38
+ "hard_negative": 71
39
+ }
40
+ },
41
+ "train": {
42
+ "rows": 17285,
43
+ "images": 11424,
44
+ "by_source": {
45
+ "generated": 16495,
46
+ "vendor_screenshot": 61,
47
+ "web_page": 729
48
+ },
49
+ "by_fault_group": {
50
+ "clean": 7193,
51
+ "multi": 2711,
52
+ "swap": 2110,
53
+ "local": 1609,
54
+ "general": 1542,
55
+ "text": 972,
56
+ "designed": 630,
57
+ "page": 518
58
+ }
59
+ },
60
+ "validation": {
61
+ "rows": 1571,
62
+ "images": 1571,
63
+ "by_source": {
64
+ "generated": 1557,
65
+ "vendor_screenshot": 14
66
+ },
67
+ "by_fault_group": {
68
+ "clean": 398,
69
+ "multi": 319,
70
+ "local": 288,
71
+ "swap": 256,
72
+ "general": 235,
73
+ "page": 75
74
+ }
75
+ }
76
+ }