Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/UI-TARS
/ functions
Functions
20 in github.com/bytedance/UI-TARS
⨍
Functions
20
◇
Types & classes
1
↓ 2 callers
Function
ceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
codes/ui_tars/action_parser.py:86
↓ 2 callers
Function
ceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:25
↓ 2 callers
Function
escape_single_quotes
(text)
codes/ui_tars/action_parser.py:75
↓ 2 callers
Function
floor_by_factor
Returns the largest integer less than or equal to 'number' that is divisible by 'factor'.
codes/ui_tars/action_parser.py:91
↓ 2 callers
Function
floor_by_factor
Returns the largest integer less than or equal to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:30
↓ 2 callers
Function
parse_action
(action_str)
codes/ui_tars/action_parser.py:31
↓ 2 callers
Function
round_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
codes/ui_tars/action_parser.py:81
↓ 2 callers
Function
round_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:20
↓ 1 callers
Function
convert_point_to_coordinates
(text, is_answer=False)
codes/ui_tars/action_parser.py:13
↓ 1 callers
Function
parse_action_to_structure_output
(text, factor, origin_resized_height
codes/ui_tars/action_parser.py:146
↓ 1 callers
Function
parsing_response_to_pyautogui_code
将M模型的输出解析为OSWorld中的action,生成pyautogui代码字符串 参数: response: 包含模型输出的字典,结构类似于: { "action_type": "hotkey",
codes/ui_tars/action_parser.py:279
↓ 1 callers
Function
smart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The to
codes/ui_tars/action_parser.py:115
↓ 1 callers
Function
smart_resize
Rescales the image so that the following conditions are met: 1. Both dimensions (height and width) are divisible by 'factor'. 2. The to
codes/tests/inference_test.py:35
Function
add_box_token
(input_string)
codes/ui_tars/action_parser.py:502
Function
escape_quotes
(match)
codes/ui_tars/action_parser.py:203
Function
linear_resize
(height: int, width: int, factor: int = IMAGE_FACTOR, mi
codes/ui_tars/action_parser.py:96
Function
replace_match
(match)
codes/ui_tars/action_parser.py:17
Method
test_parse_action
(self)
codes/tests/action_parser_test.py:16
Method
test_parse_action_to_structure_output
(self)
codes/tests/action_parser_test.py:22
Method
test_parsing_response_to_pyautogui_code
(self)
codes/tests/action_parser_test.py:30