From Daniel Barbosa
- go to us-east-1
- create spot instance with the following parameters:
- AMI: ami-18642967
- type: p2.xlarge
- security group: ssh-inbound-only
- key pair:
- add SSH key (if needed):
ssh-add
- ssh to IP
source activate pytorch_p36 cd ml-agents git pull cd ml-agents/python pip install .
sudo /usr/bin/X :0 & nvidia-smi export DISPLAY=:0
wget https://s3-us-west-1.amazonaws.com/udacity-drlnd/P1/Banana/VisualBanana_Linux.zip unzip VisualBanana_Linux.zip
from unityagents import UnityEnvironment env = UnityEnvironment(file_name="VisualBanana_Linux/Banana.x86_64") brain_name = env.brain_names[0] info = env.reset(train_mode=True)[brain_name] state = info.visual_observations[0]