Diff of /docs/AMI.md [000000] .. [077a87]

Switch to unified view

a b/docs/AMI.md
1
# Using Amazon AMI
2
3
You can easily set up OpenSim Reinforcement learning environmen on AWS Cloud using our AMI.
4
Just create a machine with `ami-971be8ee` and log in using `ssh ubuntu@[IP_OF_THE_MACHINE]`.
5
Remember to turn off your machine if you are not using it. Amazon will charge you for every hour of usage.
6
7
## Screencast
8
9
### Log in and choose EC2
10
![1](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/1.png)
11
12
### Click "Launch instance"
13
![2](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/2.png)
14
15
### Choose "Community AMI" and seacrh "ami-971be8ee" 
16
![3](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/3.png)
17
18
### Choose instance type according to your needs
19
**Attention**: They greatly vary in price, check Amazon Pricelist and Terms!
20
![4](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/4.png)
21
22
### Confirm and launch your instance
23
![5](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/5.png)
24
25
### Create a keypair and download it
26
![6](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/6.png)
27
28
**You need to add this key to your keychain or add it to your SSH client.** On Linux/MacOS type `ssh-add [path-to-key.pem]` on windows add it to your ssh client (e.g. putty)
29
30
### See the confirmation, go to your instances
31
![7](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/7.png)
32
33
### Click on your instance and check IPv4 Public IP
34
![8](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/8.png)
35
36
### Login with ssh client to ubuntu@[IP]
37
![9](https://s3-eu-west-1.amazonaws.com/kidzinski/opensim-ami/9.png)
38
39
Activate conda opensim environment with
40
41
    source activate opensim-rl
42
43
and you are ready to use our `osim-rl` package. For the example script, navigate to
44
45
    cd ~/osim-rl/scripts
46
47
and run
48
49
    python example.py --train --model sample
50
51
once your model is trained you can run 
52
53
    python example.py --test --model sample --token [YOUR_CROWD_AI_TOKEN]
54
55
to submit the solution.