Add support for automatic VM download and configuration, enable auto-scaling management; move metadata retrieval out of the init function to speed up environment initialization.

This commit is contained in:
Timothyxxx
2024-04-21 19:51:15 +08:00
parent 29d2f69556
commit 0b3e7dca24
4 changed files with 349 additions and 162 deletions

View File

@@ -64,10 +64,7 @@ vmrun -T ws list
```
If the installation along with the environment variable set is successful, you will see the message showing the current running virtual machines.
3. Run our setup script to download the necessary virtual machines and set up the environment☕:
```bash
python setup_vm.py
```
All set! Our setup script will automatically download the necessary virtual machines and configure the environment for you.
### On AWS or Azure (Virtualized platform)
We are working on supporting it 👷. Please hold tight!
@@ -108,10 +105,7 @@ example = {
}
}
env = DesktopEnv(
path_to_vm=r"Ubuntu/DesktopEnv-Ubuntu 64-bit Arm.vmx",
action_space="pyautogui"
)
env = DesktopEnv(action_space="pyautogui")
obs = env.reset(task_config=example)
obs, reward, done, info = env.step("pyautogui.rightClick()")