ver Mar17th
fixed an error in task config
This commit is contained in:
@@ -5,10 +5,5 @@ evaluation_examples
|
||||
logs
|
||||
|
||||
mm_agents
|
||||
experiment_a11y_tree.py
|
||||
experiment_screenshot.py
|
||||
experiment_screenshot_a11y_tree.py
|
||||
experiment_screenshot_seeact.py
|
||||
experiment_screenshot_som.py
|
||||
|
||||
quick_evaluate.py
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "execute",
|
||||
"type": "launch",
|
||||
"parameters": {
|
||||
"command": [
|
||||
"nautilus",
|
||||
@@ -109,4 +109,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
15
main.py
15
main.py
@@ -47,17 +47,16 @@ def human_agent():
|
||||
Runs the Gym environment with human input.
|
||||
"""
|
||||
|
||||
with open("evaluation_examples/examples/multi_apps/4c26e3f3-3a14-4d86-b44a-d3cedebbb487.json", "r", encoding="utf-8") as f:
|
||||
with open("evaluation_examples/examples/multi_apps/b5062e3e-641c-4e3a-907b-ac864d2e7652.json", "r", encoding="utf-8") as f:
|
||||
example = json.load(f)
|
||||
example["snapshot"] = "exp_v5"
|
||||
example["snapshot"] = "Snapshot 35"
|
||||
|
||||
env = DesktopEnv(
|
||||
path_to_vm=r"C:\Users\tianbaox\Documents\Virtual Machines\Ubuntu3\Ubuntu3.vmx",
|
||||
action_space="computer_13",
|
||||
task_config=example
|
||||
)
|
||||
env = DesktopEnv( path_to_vm=r"/mnt/data1/david/os-images/Ubuntu-1218/Ubuntu.vmx"
|
||||
, snapshot_name="Snapshot 35"
|
||||
, action_space="computer_13"
|
||||
)
|
||||
# reset the environment to certain snapshot
|
||||
observation = env.reset()
|
||||
observation = env.reset(task_config=example)
|
||||
done = False
|
||||
|
||||
trajectory = [
|
||||
|
||||
Reference in New Issue
Block a user