lint
Esse commit está contido em:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário