MCPcopy Create free account

hub / github.com/bytedance/UI-TARS / functions

Functions20 in github.com/bytedance/UI-TARS

↓ 2 callersFunctionceil_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 callersFunctionceil_by_factor
Returns the smallest integer greater than or equal to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:25
↓ 2 callersFunctionescape_single_quotes
(text)
codes/ui_tars/action_parser.py:75
↓ 2 callersFunctionfloor_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 callersFunctionfloor_by_factor
Returns the largest integer less than or equal to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:30
↓ 2 callersFunctionparse_action
(action_str)
codes/ui_tars/action_parser.py:31
↓ 2 callersFunctionround_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
codes/ui_tars/action_parser.py:81
↓ 2 callersFunctionround_by_factor
Returns the closest integer to 'number' that is divisible by 'factor'.
codes/tests/inference_test.py:20
↓ 1 callersFunctionconvert_point_to_coordinates
(text, is_answer=False)
codes/ui_tars/action_parser.py:13
↓ 1 callersFunctionparse_action_to_structure_output
(text, factor, origin_resized_height
codes/ui_tars/action_parser.py:146
↓ 1 callersFunctionparsing_response_to_pyautogui_code
将M模型的输出解析为OSWorld中的action,生成pyautogui代码字符串 参数: response: 包含模型输出的字典,结构类似于: { "action_type": "hotkey",
codes/ui_tars/action_parser.py:279
↓ 1 callersFunctionsmart_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 callersFunctionsmart_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
Functionadd_box_token
(input_string)
codes/ui_tars/action_parser.py:502
Functionescape_quotes
(match)
codes/ui_tars/action_parser.py:203
Functionlinear_resize
(height: int, width: int, factor: int = IMAGE_FACTOR, mi
codes/ui_tars/action_parser.py:96
Functionreplace_match
(match)
codes/ui_tars/action_parser.py:17
Methodtest_parse_action
(self)
codes/tests/action_parser_test.py:16
Methodtest_parse_action_to_structure_output
(self)
codes/tests/action_parser_test.py:22
Methodtest_parsing_response_to_pyautogui_code
(self)
codes/tests/action_parser_test.py:30