Check GUI Grounding Coordinates Before You Allow a Tap
Grounding means locating an interface element in an image. You can check it without granting a model access to a device. Collect non-sensitive screenshots from a fixture, draw target rectangles and compare the model’s predicted point with each rectangle.
Two outputs can point to the same place
The ShowUI model card describes its grounding point as two relative values between 0 and 1. The UI-TARS repository documents different prompts and the coordinate handling to use with the chosen checkpoint. OS-Atlas Base shows a bounding-box example. Verify the format for the exact model and runner you installed.

For a 1000 × 600 screenshot, use a target rectangle spanning x 670–870 and y 350–405. A model that reports relative coordinates [0.70, 0.625] maps to x 700 and y 375. It lands inside the box. If a separate documented adapter uses a 0–1000 coordinate convention, the same relative point is represented by [700, 625]. Use each convention once.
Open the interactive point checker and plot the sample in each format. Then try x 870, y 375 in pixel mode. The right edge is excluded, so the second point is a miss. The result is calculated locally in the browser.
width, height = 1000, 600
relative_x, relative_y = 0.70, 0.625
point_x, point_y = relative_x * width, relative_y * height
left, top, right, bottom = 670, 350, 870, 405
assert left <= point_x < right and top <= point_y < bottomReject non-numeric, non-finite or out-of-frame predictions in a real adapter. A cropped or padded input needs an offset or scaling transform before comparing against the original screen. Avoid silently clamping a wrong output onto the edge.
Run a small comparison without a device
Mark the target
Use the original screenshot and record the target rectangle.
Convert the point
Map the model’s coordinate convention back to original image pixels.
Score the hit
Check both axes against the stated rectangle bounds.
- Use ten or more sample screenshots and write precise instructions such as Locate the Settings button in the lower right. Include examples with similarly labeled controls and a few targets that are missing.
- Mark expected regions on the original screenshots. Freeze the images, instructions and scoring rule before running each model. When a target is absent, define an explicit no-target result and score it separately.
- Keep the raw model response and the converted point. Report correct targets, invalid outputs and wrong targets separately. A single figure usually hides whether a parser or a model caused the error.
- Inspect failures on different resolutions and language labels. Only then connect a read-only test runner. A correct point establishes localization, while a completed task requires execution and a separate state check.
Choose checkpoints from the official model download directory and keep a revision record with the download guide.