anas-awadalla commited on
Commit
baa9f92
·
verified ·
1 Parent(s): 93b9986

Add README with dataset generation details

Browse files
Files changed (1) hide show
  1. README.md +76 -41
README.md CHANGED
@@ -1,41 +1,76 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: image_path
5
- dtype: string
6
- - name: abs_image_path
7
- dtype: string
8
- - name: prompt
9
- dtype: string
10
- - name: normalized_bbox
11
- list: float64
12
- - name: images
13
- list: image
14
- - name: easyr1_prompt
15
- dtype: string
16
- - name: bbox
17
- list: int64
18
- - name: messages
19
- list:
20
- - name: content
21
- dtype: string
22
- - name: role
23
- dtype: string
24
- - name: original_image_width
25
- dtype: int64
26
- - name: image_width
27
- dtype: int64
28
- - name: image_height
29
- dtype: int64
30
- splits:
31
- - name: train
32
- num_bytes: 821376461.13
33
- num_examples: 5790
34
- download_size: 597395315
35
- dataset_size: 821376461.13
36
- configs:
37
- - config_name: default
38
- data_files:
39
- - split: train
40
- path: data/train-*
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.