Add README with dataset generation details
Browse files
README.md
CHANGED
|
@@ -1,41 +1,76 @@
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ui-vision-grounding-4MP
|
| 2 |
+
|
| 3 |
+
This dataset was generated from UI-Vision annotations using the conversion pipeline.
|
| 4 |
+
|
| 5 |
+
## Generation Details
|
| 6 |
+
|
| 7 |
+
- **Generated on**: 2025-09-10 12:58:39 UTC
|
| 8 |
+
- **Script**: `convert_ui_vision_to_hf.py`
|
| 9 |
+
- **Images directory**: `ui-vision/images`
|
| 10 |
+
|
| 11 |
+
## Parameters Used
|
| 12 |
+
|
| 13 |
+
- **Maximum samples**: None
|
| 14 |
+
- **Image resize (max megapixels)**: 4.0 MP
|
| 15 |
+
- **Minimum native image resolution**: 0.0 MP
|
| 16 |
+
- **Prompt format**: `gta1`
|
| 17 |
+
- **Output format**: `coordinates`
|
| 18 |
+
- **Random seed**: 42
|
| 19 |
+
- **Debug images enabled**: False
|
| 20 |
+
|
| 21 |
+
## Annotation Files
|
| 22 |
+
|
| 23 |
+
The following annotation files were used to create this dataset:
|
| 24 |
+
|
| 25 |
+
- ui-vision/annotations/layout_grounding/layout_grounding.json
|
| 26 |
+
- ui-vision/annotations/element_grounding/element_grounding_spatial.json
|
| 27 |
+
- ui-vision/annotations/element_grounding/element_grounding_basic.json
|
| 28 |
+
- ui-vision/annotations/element_grounding/element_grounding_functional.json
|
| 29 |
+
|
| 30 |
+
## Dataset Statistics
|
| 31 |
+
|
| 32 |
+
- **Total training samples**: 5790
|
| 33 |
+
- **Columns**: image_path, abs_image_path, prompt, normalized_bbox, images, easyr1_prompt, bbox, messages, original_image_width, image_width, image_height
|
| 34 |
+
|
| 35 |
+
## System Prompt
|
| 36 |
+
|
| 37 |
+
```
|
| 38 |
+
You are an expert UI element locator. Given a GUI image and a user's element description, provide the coordinates of the specified element as a single (x,y) point. For elements with area, return the center point.
|
| 39 |
+
|
| 40 |
+
Output the coordinate pair exactly:
|
| 41 |
+
(x,y)
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
## Sample Entry
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
- **User prompt**: <image>
|
| 48 |
+
Locate the specified region.
|
| 49 |
+
- **Assistant response**: (107,33)
|
| 50 |
+
- **Bounding box**: [80, 6, 134, 60]
|
| 51 |
+
- **Image path**: element_grounding/f8ce11340042f598b0c6f1ae49e75f4a.png
|
| 52 |
+
|
| 53 |
+
## Usage
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
from datasets import load_dataset
|
| 57 |
+
|
| 58 |
+
dataset = load_dataset("mlfoundations-cua-dev/ui-vision-grounding-4MP")
|
| 59 |
+
|
| 60 |
+
train = dataset['train']
|
| 61 |
+
sample = train[0]
|
| 62 |
+
images = sample['images']
|
| 63 |
+
messages = sample['messages']
|
| 64 |
+
bbox = sample['bbox']
|
| 65 |
+
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## Prompt Formats
|
| 69 |
+
|
| 70 |
+
### gta1
|
| 71 |
+
|
| 72 |
+
Standard GTA1 format without resolution information. Outputs coordinates in (x,y) format.
|
| 73 |
+
|
| 74 |
+
## License
|
| 75 |
+
|
| 76 |
+
Please refer to the original dataset licenses for usage restrictions.
|