Esse commit está contido em:
alckasoc
2025-05-23 17:59:22 -07:00
commit 00164b8ac5
2 arquivos alterados com 8 adições e 2 exclusões
+3 -1
Ver Arquivo
@@ -249,7 +249,9 @@ def main():
grounding_height = args.grounding_model_resize_height
# If not provided, use the aspect ratio of the screen to compute the height
if grounding_height is None:
grounding_height = screen_height * args.grounding_model_resize_width / screen_width
grounding_height = (
screen_height * args.grounding_model_resize_width / screen_width
)
engine_params_for_grounding = {
"engine_type": args.grounding_model_provider,
+5 -1
Ver Arquivo
@@ -199,7 +199,11 @@ def test(args: argparse.Namespace, test_all_meta: dict) -> None:
grounding_height = args.grounding_model_resize_height
# If not provided, use the aspect ratio of the screen to compute the height
if grounding_height is None:
grounding_height = args.screen_height * args.grounding_model_resize_width / args.screen_width
grounding_height = (
args.screen_height
* args.grounding_model_resize_width
/ args.screen_width
)
engine_params_for_grounding = {
"engine_type": args.grounding_model_provider,