ZHZisZZ commited on
Commit ·
22899da
1
Parent(s): fed1f43
improve README
Browse files
cua_lite/data/preproc/README.md
CHANGED
|
@@ -1,5 +1,70 @@
|
|
| 1 |
## Standardized dataset format
|
| 2 |
Please see [`ZHZisZZ/test`](https://huggingface.co/datasets/ZHZisZZ/test) for an example.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
```
|
| 4 |
# Dataset row format
|
| 5 |
Each dataset row must contain exactly two keys: `images` and `messages`.
|
|
|
|
| 1 |
## Standardized dataset format
|
| 2 |
Please see [`ZHZisZZ/test`](https://huggingface.co/datasets/ZHZisZZ/test) for an example.
|
| 3 |
+
|
| 4 |
+
Standardized action space (refer to Qwen3-VL):
|
| 5 |
+
```
|
| 6 |
+
description_prompt = "
|
| 7 |
+
* `key`: Performs key down presses on the arguments passed in order, then performs key releases in reverse order.
|
| 8 |
+
* `type`: Type a string of text on the keyboard.
|
| 9 |
+
* `mouse_move`: Move the cursor to a specified (x, y) pixel coordinate on the screen.
|
| 10 |
+
* `left_click`: Click the left mouse button at a specified (x, y) pixel coordinate on the screen.
|
| 11 |
+
* `left_click_drag`: Click and drag the cursor to a specified (x, y) pixel coordinate on the screen.
|
| 12 |
+
* `right_click`: Click the right mouse button at a specified (x, y) pixel coordinate on the screen.
|
| 13 |
+
* `middle_click`: Click the middle mouse button at a specified (x, y) pixel coordinate on the screen.
|
| 14 |
+
* `double_click`: Double-click the left mouse button at a specified (x, y) pixel coordinate on the screen.
|
| 15 |
+
* `triple_click`: Triple-click the left mouse button at a specified (x, y) pixel coordinate on the screen (simulated as double-click since it's the closest action).
|
| 16 |
+
* `scroll`: Performs a scroll of the mouse scroll wheel.
|
| 17 |
+
* `hscroll`: Performs a horizontal scroll (mapped to regular scroll).
|
| 18 |
+
* `wait`: Wait specified seconds for the change to happen.
|
| 19 |
+
* `terminate`: Terminate the current task and report its completion status.
|
| 20 |
+
* `answer`: Answer a question.
|
| 21 |
+
** Note: all coordinates should be normalized to the range 0-1000."
|
| 22 |
+
|
| 23 |
+
tools_def = {
|
| 24 |
+
"type": "function",
|
| 25 |
+
"function": {
|
| 26 |
+
"name_for_human": "computer_use",
|
| 27 |
+
"name": "computer_use",
|
| 28 |
+
"description": description_prompt,
|
| 29 |
+
"parameters": {
|
| 30 |
+
"type": "object",
|
| 31 |
+
"required": ["action"],
|
| 32 |
+
"properties": {
|
| 33 |
+
"action": {
|
| 34 |
+
"type": "string",
|
| 35 |
+
"description": description_prompt,
|
| 36 |
+
"enum": [
|
| 37 |
+
"key",
|
| 38 |
+
"type",
|
| 39 |
+
"mouse_move",
|
| 40 |
+
"left_click",
|
| 41 |
+
"left_click_drag",
|
| 42 |
+
"right_click",
|
| 43 |
+
"middle_click",
|
| 44 |
+
"double_click",
|
| 45 |
+
"scroll",
|
| 46 |
+
"wait",
|
| 47 |
+
"terminate"
|
| 48 |
+
]
|
| 49 |
+
},
|
| 50 |
+
"keys": {"type": "array", "description": "Required only by `action=key`."},
|
| 51 |
+
"text": {"type": "string", "description": "Required only by `action=type`."},
|
| 52 |
+
"coordinate": {"type": "array", "description": "The x,y coordinates for mouse actions."},
|
| 53 |
+
"pixels": {"type": "number", "description": "The amount of scrolling."},
|
| 54 |
+
"time": {"type": "number", "description": "The seconds to wait."},
|
| 55 |
+
"status": {
|
| 56 |
+
"type": "string",
|
| 57 |
+
"description": "The status of the task.",
|
| 58 |
+
"enum": ["success", "failure"]
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"args_format": "Format the arguments as a JSON object."
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
Standardized conversation format in the dataset:
|
| 68 |
```
|
| 69 |
# Dataset row format
|
| 70 |
Each dataset row must contain exactly two keys: `images` and `messages`.
|