浏览代码

Update Training-on-Microsoft-Azure.md (#4730)

* Update Training-on-Microsoft-Azure.md

* Update Training-on-Microsoft-Azure.md

* Update Training-on-Microsoft-Azure.md
/MLA-1734-demo-provider
GitHub 4 年前
当前提交
347f03c6
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 11
      docs/Training-on-Microsoft-Azure.md

11
docs/Training-on-Microsoft-Azure.md


1. [Move](https://docs.microsoft.com/en-us/azure/virtual-machines/linux/copy-files-to-linux-vm-using-scp)
the `ml-agents` sub-folder of this ml-agents repo to the remote Azure
instance, and set it as the working directory.
2. Install the required packages with `pip3 install .`.
2. Install the required packages:
Torch: `pip3 install torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html` and
MLAgents: `pip3 install mlagents`
## Testing

```python
from mlagents_envs.environment import UnityEnvironment
env = UnityEnvironment(<your_env>)
env = UnityEnvironment(file_name="<your_env>", seed=1, side_channels=[])
Where `<your_env>` corresponds to the path to your environment executable.
Where `<your_env>` corresponds to the path to your environment executable (i.e. `/home/UserName/Build/yourFile`).
**Note:** When running your environment in headless mode, you must append `--no-graphics` to your mlagents-learn command, as it won't train otherwise.
You can test this simply by aborting a training and check if it says "Model Saved" or "Aborted", or see if it generated the .onnx in the result folder.
## Running Training on your Virtual Machine

正在加载...
取消
保存