-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Update AWS page #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update AWS page #478
Conversation
| ``` | ||
| python3 | ||
| ``` | ||
| ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add python tag for markdown
| # Training on Amazon Web Service | ||
|
|
||
| This page contains instructions for setting up an EC2 instance on Amazon Web Service for use in training ML-Agents environments. Current limitations of the Unity Engine require that a screen be available to render to. In order to make this possible when training on a remote server, a virtual screen is required. We can do this by installing Xorg and creating a virtual screen. Once installed and created, we can display the Unity environment in the virtual environment, and train as we would on a local machine. | ||
| This page contains instructions for setting up an EC2 instance on Amazon Web Service for use in training ML-Agents environments. You can run "headless" training if none of the agents in the environment use visual observations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"use in training ML-Agents environments" --> "training in ML-Agents"
| If all steps worked correctly, upload a built Linux environment executable (with `headless` mode selected during build-time) to the instance, and test it from Python using: | ||
|
|
||
| ``` | ||
| python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which piece isn't needed? The testing section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just lines 24 to 26.
|
|
||
| ## Installing ML-Agents | ||
|
|
||
| 2. Move `python` sub-folder of this repo to remote instance, and set as working directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move the python sub-folder of this ml-agents repo to the remote EC2 instance and set it as the working directory.
(Three "the's", an "it", and remove a comma, and add "ml-agents", and adding "EC2" helps as well.)
|
|
||
| ## Testing | ||
|
|
||
| If all steps worked correctly, upload a built Linux environment executable (with `headless` mode selected during build-time) to the instance, and test it from Python using: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To verify that all steps worked correctly:
- In the Unity Editor, load a project containing an ML-Agents environment (you can use one of the example environments if you have not created your own).
- Open the Build Settings window (menu: File > Build Settings).
- Select Linux as the Target Platform.
[Editors note: does Architecture matter?]
- Check Headless Mode (unless you have enabled a virtual screen following the instructions below).
- Click Build to build the Unity environment executable.
- Upload the executable to your EC2 instance.
- Test the instance setup from Python using:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.