From 20f48759fd61b8d8a6a6d40d023e6d8979e598da Mon Sep 17 00:00:00 2001 From: Timothyxxx <384084775@qq.com> Date: Tue, 30 Jan 2024 02:14:52 +0800 Subject: [PATCH] Fix path in GIMP examples --- desktop_env/evaluators/metrics/__init__.py | 1 - .../gimp/06ca5602-62ca-47f6-ad4f-da151cde54cc.json | 8 ++++---- .../gimp/2a729ded-3296-423d-aec4-7dd55ed5fbb3.json | 10 +++++----- .../gimp/554785e9-4523-4e7a-b8e1-8016f565f56a.json | 8 ++++---- .../gimp/72f83cdc-bf76-4531-9a1b-eb893a13f8aa.json | 8 ++++---- .../gimp/734d6579-c07d-47a8-9ae2-13339795476b.json | 10 +++++----- .../gimp/77b8ab4d-994f-43ac-8930-8ca087d7c4b4.json | 8 ++++---- .../gimp/7a4deb26-d57d-4ea9-9a73-630f66a7b568.json | 8 ++++---- .../gimp/a746add2-cab0-4740-ac36-c3769d9bfb46.json | 4 ++-- .../gimp/b148e375-fe0b-4bec-90e7-38632b0d73c2.json | 4 ++-- .../gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15.json | 10 +++++----- .../gimp/e2dd0213-26db-4349-abe5-d5667bfd725c.json | 6 +++--- .../gimp/f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce.json | 8 ++++---- .../gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json | 8 ++++---- 14 files changed, 50 insertions(+), 51 deletions(-) diff --git a/desktop_env/evaluators/metrics/__init__.py b/desktop_env/evaluators/metrics/__init__.py index c86505e..c4b3c6f 100644 --- a/desktop_env/evaluators/metrics/__init__.py +++ b/desktop_env/evaluators/metrics/__init__.py @@ -19,7 +19,6 @@ from .pdf import check_pdf_pages from .slides import check_presenter_console_disable, check_image_stretch_and_center, check_slide_numbers_color, \ compare_pptx_files, check_strikethrough, \ check_slide_orientation_Portrait, evaluate_presentation_fill_to_rgb_distance, check_left_panel, check_transition -# from .table import check_sheet_list, check_xlsx_freeze, check_xlsx_zoom, check_data_validations from .table import compare_table, compare_csv from .thunderbird import check_thunderbird_prefs, check_thunderbird_filter from .gimp import ( diff --git a/evaluation_examples/examples/gimp/06ca5602-62ca-47f6-ad4f-da151cde54cc.json b/evaluation_examples/examples/gimp/06ca5602-62ca-47f6-ad4f-da151cde54cc.json index a903623..00bfd3a 100644 --- a/evaluation_examples/examples/gimp/06ca5602-62ca-47f6-ad4f-da151cde54cc.json +++ b/evaluation_examples/examples/gimp/06ca5602-62ca-47f6-ad4f-da151cde54cc.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1fxR-hAaF5BoONWxmzJTrIxXFw9EHTg_A", - "path": "~/Desktop/computer.png" + "path": "Desktop/computer.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/computer.png" + "Desktop/computer.png" ] } } @@ -83,12 +83,12 @@ "func": "check_palette_and_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/computer.png", + "path": "Desktop/computer.png", "dest": "computer.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/palette_computer.png", + "path": "Desktop/palette_computer.png", "dest": "palette_computer.png" } } diff --git a/evaluation_examples/examples/gimp/2a729ded-3296-423d-aec4-7dd55ed5fbb3.json b/evaluation_examples/examples/gimp/2a729ded-3296-423d-aec4-7dd55ed5fbb3.json index 1e42323..93b8b87 100644 --- a/evaluation_examples/examples/gimp/2a729ded-3296-423d-aec4-7dd55ed5fbb3.json +++ b/evaluation_examples/examples/gimp/2a729ded-3296-423d-aec4-7dd55ed5fbb3.json @@ -10,11 +10,11 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1TOtPi1CQsWblGUtQ6AqayfjsPZ_THBJo", - "path": "~/Desktop/dog_with_background.png" + "path": "Desktop/dog_with_background.png" }, { "url": "https://drive.google.com/uc?export=download&id=15YWmeOyUaA7vMX9Ts7-qyh82T8mHeepx", - "path": "~/Desktop/dog_cutout_gold.png" + "path": "Desktop/dog_cutout_gold.png" } ] } @@ -24,7 +24,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/dog_with_background.png" + "Desktop/dog_with_background.png" ] } } @@ -87,12 +87,12 @@ "func": "check_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/dog_cutout_gold.png", + "path": "Desktop/dog_cutout_gold.png", "dest": "dog_cutout_gold.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/dog_without_background.png", + "path": "Desktop/dog_without_background.png", "dest": "dog_without_background.png" } } diff --git a/evaluation_examples/examples/gimp/554785e9-4523-4e7a-b8e1-8016f565f56a.json b/evaluation_examples/examples/gimp/554785e9-4523-4e7a-b8e1-8016f565f56a.json index fa2fbd5..cf18845 100644 --- a/evaluation_examples/examples/gimp/554785e9-4523-4e7a-b8e1-8016f565f56a.json +++ b/evaluation_examples/examples/gimp/554785e9-4523-4e7a-b8e1-8016f565f56a.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.usercontent.google.com/download?id=1-3cc3qqjlJ_3d9IpwsuvSuYpyJ2LxrIA&export=download&authuser=0&confirm=t&uuid=6b08e902-ed25-47d1-97d9-7794f9508288&at=APZUnTW74TY2hHtBbWDa0N7-cE58:1705060487948", - "path": "~/Desktop/woman_sitting_by_the_tree2.png" + "path": "Desktop/woman_sitting_by_the_tree2.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/woman_sitting_by_the_tree2.png" + "Desktop/woman_sitting_by_the_tree2.png" ] } } @@ -83,12 +83,12 @@ "func": "check_saturation_increase_and_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/woman_sitting_by_the_tree2.png", + "path": "Desktop/woman_sitting_by_the_tree2.png", "dest": "woman_sitting_by_the_tree2.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/edited_colorful.png", + "path": "Desktop/edited_colorful.png", "dest": "edited_colorful.png" } } diff --git a/evaluation_examples/examples/gimp/72f83cdc-bf76-4531-9a1b-eb893a13f8aa.json b/evaluation_examples/examples/gimp/72f83cdc-bf76-4531-9a1b-eb893a13f8aa.json index df81d34..e0dc78d 100644 --- a/evaluation_examples/examples/gimp/72f83cdc-bf76-4531-9a1b-eb893a13f8aa.json +++ b/evaluation_examples/examples/gimp/72f83cdc-bf76-4531-9a1b-eb893a13f8aa.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1bS4xGh8bhQVSuRCwFscYZO_xzymAJgM8", - "path": "~/Desktop/berry.png" + "path": "Desktop/berry.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/berry.png" + "Desktop/berry.png" ] } } @@ -83,12 +83,12 @@ "func": "check_image_mirror", "expected": { "type": "vm_file", - "path": "~/Desktop/berry.png", + "path": "Desktop/berry.png", "dest": "berry.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/berry_mirror.png", + "path": "Desktop/berry_mirror.png", "dest": "berry_mirror.png" } } diff --git a/evaluation_examples/examples/gimp/734d6579-c07d-47a8-9ae2-13339795476b.json b/evaluation_examples/examples/gimp/734d6579-c07d-47a8-9ae2-13339795476b.json index a264242..1d7e82c 100644 --- a/evaluation_examples/examples/gimp/734d6579-c07d-47a8-9ae2-13339795476b.json +++ b/evaluation_examples/examples/gimp/734d6579-c07d-47a8-9ae2-13339795476b.json @@ -10,11 +10,11 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=18r4e9FqlMqqD1ltiHRixZkE_Jc865wgb", - "path": "~/Desktop/white_background_with_object.xcf" + "path": "Desktop/white_background_with_object.xcf" }, { "url": "https://drive.google.com/uc?export=download&id=1D9rLa3XDEk5warlI0jVxcbixyr8SQm_C", - "path": "~/Desktop/white_background_with_object.png" + "path": "Desktop/white_background_with_object.png" } ] } @@ -24,7 +24,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/white_background_with_object.xcf" + "Desktop/white_background_with_object.xcf" ] } } @@ -87,12 +87,12 @@ "func": "check_green_background", "expected": { "type": "vm_file", - "path": "~/Desktop/white_background_with_object.png", + "path": "Desktop/white_background_with_object.png", "dest": "white_background_with_object.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/green_background_with_object.png", + "path": "Desktop/green_background_with_object.png", "dest": "green_background_with_object.png" } } diff --git a/evaluation_examples/examples/gimp/77b8ab4d-994f-43ac-8930-8ca087d7c4b4.json b/evaluation_examples/examples/gimp/77b8ab4d-994f-43ac-8930-8ca087d7c4b4.json index 7607b2e..b873993 100644 --- a/evaluation_examples/examples/gimp/77b8ab4d-994f-43ac-8930-8ca087d7c4b4.json +++ b/evaluation_examples/examples/gimp/77b8ab4d-994f-43ac-8930-8ca087d7c4b4.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.usercontent.google.com/download?id=13ECFsPxznuoCANto21ijj9OzP0APukIH&export=download&authuser=0&confirm=t&uuid=d8f2dd03-8992-4646-be62-3a3cf89583f2&at=APZUnTVsR0xmbXvpFIpXLzCcLrMa:1705062951627", - "path": "~/Desktop/The_Lost_River_Of_Dreams.jpg" + "path": "Desktop/The_Lost_River_Of_Dreams.jpg" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/The_Lost_River_Of_Dreams.jpg" + "Desktop/The_Lost_River_Of_Dreams.jpg" ] } } @@ -33,12 +33,12 @@ "func": "check_file_exists_and_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/The_Lost_River_Of_Dreams.jpg", + "path": "Desktop/The_Lost_River_Of_Dreams.jpg", "dest": "The_Lost_River_Of_Dreams.jpg" }, "result": { "type": "vm_file", - "path": "~/Desktop/export.jpg", + "path": "Desktop/export.jpg", "dest": "export.jpg" } } diff --git a/evaluation_examples/examples/gimp/7a4deb26-d57d-4ea9-9a73-630f66a7b568.json b/evaluation_examples/examples/gimp/7a4deb26-d57d-4ea9-9a73-630f66a7b568.json index 42662fc..e98814a 100644 --- a/evaluation_examples/examples/gimp/7a4deb26-d57d-4ea9-9a73-630f66a7b568.json +++ b/evaluation_examples/examples/gimp/7a4deb26-d57d-4ea9-9a73-630f66a7b568.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.usercontent.google.com/download?id=1SIvX9Wimyw6i2UvnoLTNDHIObvDLAsIM&export=download&authuser=0&confirm=t&uuid=a48447ab-13a2-421f-9662-6ffff8f6f6d5&at=APZUnTVRxofs822XxgEv33WwYCkb:1705046264363", - "path": "~/Desktop/woman_sitting_by_the_tree.png" + "path": "Desktop/woman_sitting_by_the_tree.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/woman_sitting_by_the_tree.png" + "Desktop/woman_sitting_by_the_tree.png" ] } } @@ -83,12 +83,12 @@ "func": "check_brightness_decrease_and_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/woman_sitting_by_the_tree.png", + "path": "Desktop/woman_sitting_by_the_tree.png", "dest": "woman_sitting_by_the_tree.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/edited_darker.png", + "path": "Desktop/edited_darker.png", "dest": "edited_darker.png" } } diff --git a/evaluation_examples/examples/gimp/a746add2-cab0-4740-ac36-c3769d9bfb46.json b/evaluation_examples/examples/gimp/a746add2-cab0-4740-ac36-c3769d9bfb46.json index cf166ae..b196994 100644 --- a/evaluation_examples/examples/gimp/a746add2-cab0-4740-ac36-c3769d9bfb46.json +++ b/evaluation_examples/examples/gimp/a746add2-cab0-4740-ac36-c3769d9bfb46.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1IQPiNT6Vmd0YO0OytaB8lb_Dvo1mCGnP", - "path": "~/Desktop/dog_with_background.png" + "path": "Desktop/dog_with_background.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/dog_with_background.png" + "Desktop/dog_with_background.png" ] } } diff --git a/evaluation_examples/examples/gimp/b148e375-fe0b-4bec-90e7-38632b0d73c2.json b/evaluation_examples/examples/gimp/b148e375-fe0b-4bec-90e7-38632b0d73c2.json index 16be260..2881e84 100644 --- a/evaluation_examples/examples/gimp/b148e375-fe0b-4bec-90e7-38632b0d73c2.json +++ b/evaluation_examples/examples/gimp/b148e375-fe0b-4bec-90e7-38632b0d73c2.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1CqcNw_8O0VeLuD0VkVTgDHOoUMFQNOXN", - "path": "~/Desktop/white_background.xcf" + "path": "Desktop/white_background.xcf" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/white_background.xcf" + "Desktop/white_background.xcf" ] } } diff --git a/evaluation_examples/examples/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15.json b/evaluation_examples/examples/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15.json index b9f0525..300995f 100644 --- a/evaluation_examples/examples/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15.json +++ b/evaluation_examples/examples/gimp/d16c99dc-2a1e-46f2-b350-d97c86c85c15.json @@ -10,11 +10,11 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=14ZEnUNHrIVDvcyF6A6EFgma6LcgPWj1X", - "path": "~/Desktop/dog_with_background.png" + "path": "Desktop/dog_with_background.png" }, { "url": "https://drive.google.com/uc?export=download&id=1wq2sjBX8X-SGIEj1GKLGAuQ8BNVYqa0-", - "path": "~/Desktop/dog_with_background_two_layers.xcf" + "path": "Desktop/dog_with_background_two_layers.xcf" } ] } @@ -24,7 +24,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/dog_with_background_two_layers.xcf" + "Desktop/dog_with_background_two_layers.xcf" ] } } @@ -87,12 +87,12 @@ "func": "check_image_size_and_structure_sim", "expected":{ "type": "vm_file", - "path": "~/Desktop/dog_with_background.png", + "path": "Desktop/dog_with_background.png", "dest": "dog_with_background.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/resized.png", + "path": "Desktop/resized.png", "dest": "resized.png" } } diff --git a/evaluation_examples/examples/gimp/e2dd0213-26db-4349-abe5-d5667bfd725c.json b/evaluation_examples/examples/gimp/e2dd0213-26db-4349-abe5-d5667bfd725c.json index 531cb2b..fbd6dc0 100644 --- a/evaluation_examples/examples/gimp/e2dd0213-26db-4349-abe5-d5667bfd725c.json +++ b/evaluation_examples/examples/gimp/e2dd0213-26db-4349-abe5-d5667bfd725c.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1KMHuScgF8Eq9OPR40SCntxO3Q1DUmbKV", - "path": "~/Desktop/orange_background.xcf" + "path": "Desktop/orange_background.xcf" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/orange_background.xcf" + "Desktop/orange_background.xcf" ] } } @@ -83,7 +83,7 @@ "func": "check_textbox_on_leftside", "result": { "type": "vm_file", - "path": "~/Desktop/leftside_textbox.png", + "path": "Desktop/leftside_textbox.png", "dest": "leftside_textbox.png" } } diff --git a/evaluation_examples/examples/gimp/f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce.json b/evaluation_examples/examples/gimp/f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce.json index ad5005b..e77a6a7 100644 --- a/evaluation_examples/examples/gimp/f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce.json +++ b/evaluation_examples/examples/gimp/f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce.json @@ -10,11 +10,11 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1p0m5meh7NIT4v6hNdqJqK3GCcpZiMapB", - "path": "~/Desktop/Triangle_On_The_Side.png" + "path": "Desktop/Triangle_On_The_Side.png" }, { "url": "https://drive.google.com/uc?export=download&id=1w7f2fW2mWkUbteQvQd-lepHzvBC9GaG_", - "path": "~/Desktop/Triangle_On_The_Side.xcf" + "path": "Desktop/Triangle_On_The_Side.xcf" } ] } @@ -24,7 +24,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/Triangle_On_The_Side.xcf" + "Desktop/Triangle_On_The_Side.xcf" ] } } @@ -87,7 +87,7 @@ "func": "check_triangle_position", "result": { "type": "vm_file", - "path": "~/Desktop/Triangle_In_The_Middle.png", + "path": "Desktop/Triangle_In_The_Middle.png", "dest": "Triangle_In_The_Middle.png" } } diff --git a/evaluation_examples/examples/gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json b/evaluation_examples/examples/gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json index 85f21f8..b713916 100644 --- a/evaluation_examples/examples/gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json +++ b/evaluation_examples/examples/gimp/f723c744-e62c-4ae6-98d1-750d3cd7d79d.json @@ -10,7 +10,7 @@ "files": [ { "url": "https://drive.google.com/uc?export=download&id=1X42_kOanL74vu_p6QdcZuiyzDQi3kA7F", - "path": "~/Desktop/berries.png" + "path": "Desktop/berries.png" } ] } @@ -20,7 +20,7 @@ "parameters": { "command": [ "gimp", - "~/Desktop/berries.png" + "Desktop/berries.png" ] } } @@ -83,12 +83,12 @@ "func": "check_contrast_increase_and_structure_sim", "expected": { "type": "vm_file", - "path": "~/Desktop/berries.png", + "path": "Desktop/berries.png", "dest": "berries.png" }, "result": { "type": "vm_file", - "path": "~/Desktop/berries_contrast.png", + "path": "Desktop/berries_contrast.png", "dest": "berries_contrast.png" } }