ver Dec20th

some adaptations to make in run on my device
This commit is contained in:
David Chang
2023-12-20 20:14:39 +08:00
parent b7267fac07
commit b37df609b9
13 changed files with 21 additions and 11 deletions

View File

@@ -7,17 +7,18 @@ def human_agent():
Runs the Gym environment with human input.
"""
with open("evaluation_examples/examples/37608790-6147-45d0-9f20-1137bb35703d.json", "r") as f:
with open("evaluation_examples/examples/f9584479-3d0d-4c79-affa-9ad7afdd8850.json", "r") as f:
example = json.load(f)
#env = DesktopEnv( path_to_vm="/home/yuri/vmware/Windows 10 x64/Windows 10 x64.vmx"
# path_to_vm="/home/yuri/vmware/Ubuntu 64-bit/Ubuntu 64-bit.vmx",
env = DesktopEnv( path_to_vm="/home/david/vmware/KUbuntu 64-bit/KUbuntu 64-bit.vmx"
, action_space="computer_13"
, snapshot_path="base_setup"
#, snapshot_path="base_setup"
, snapshot_path="Init5"
, instruction=example["instruction"]
#, config=example["config"]
#, evaluator=example["evaluator"]
, config=example["config"]
, evaluator=example["evaluator"]
)
# reset the environment to certain snapshot