Merge main

This commit is contained in:
BlankCheng
2024-01-29 21:51:26 +08:00
135 changed files with 2393 additions and 1280 deletions

11
main.py
View File

@@ -47,11 +47,12 @@ def human_agent():
Runs the Gym environment with human input.
"""
with open("evaluation_examples/examples/gimp/734d6579-c07d-47a8-9ae2-13339795476b.json", "r") as f:
with open("evaluation_examples/examples/libreoffice_writer/6a33f9b9-0a56-4844-9c3f-96ec3ffb3ba2.json", "r") as f:
example = json.load(f)
example["snapshot"] = "快照 9"
example["snapshot"] = "exp_v1"
env = DesktopEnv(
path_to_vm=r"~/Virtual Machines.localized/ubuntu_vm.vmwarevm/ubuntu_vm.vmx",
path_to_vm=r"C:\Users\tianbaox\Documents\Virtual Machines\Ubuntu\Ubuntu.vmx",
action_space="computer_13",
task_config=example
)
@@ -63,8 +64,8 @@ def human_agent():
# {
# "action_type": "MOVE_TO",
# "parameters": {
# "x": 1,
# "y": 1
# "x": 754,
# "y": 1057
# }
# },
# {"action_type": "CLICK", "parameters": {"button": "right", "num_clicks": 1}}