-
Notifications
You must be signed in to change notification settings - Fork 0
/
remote.sh
executable file
·36 lines (27 loc) · 1.14 KB
/
remote.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
ip=""
#train="deepq_p_train.py"
#test="deepq_p_run.py test"
train="ppo_d_train.py 16"
test="ppo_d_run.py test"
#train="trpo_p_train.py"
#test="trpo_p_run.py test"
localpath="/Users/rene/work/git/tensegrity_robot/"
awspath="/home/ubuntu/work/git/tensegrity_robot/"
#zip="ppo1_pos_policy_bal.zip"
echo `date`
echo Upload project...
echo `scp -i ~/.ssh/first_aws.pem ${localpath}*.py ubuntu@${ip}:${awspath}`
echo `date`
echo Train policy...
#echo `ssh -i ~/.ssh/first_aws.pem ubuntu@${ip} "source /home/ubuntu/miniconda3/etc/profile.d/conda.sh && conda activate furuta-v3 && cd ${awspath} && mpirun -n 16 python ${train}"`
#echo `ssh -i ~/.ssh/first_aws.pem ubuntu@${ip} "source /home/ubuntu/miniconda3/etc/profile.d/conda.sh && conda activate furuta-v3 && cd ${awspath} && python ${train}"`
echo `date`
echo Download .zips...
echo `scp -i ~/.ssh/first_aws.pem ubuntu@${ip}:${awspath}policy/*.zip /Users/rene/work/git/tensegrity_robot/policy/`
#echo Download .pkl...
#echo `scp -i ~/.ssh/first_aws.pem ubuntu@${ip}:${awspath}policy/*.pkl /Users/rene/work/git/tensegrity_robot/policy/`
echo Done
echo `date`
#echo Testing...
#echo `python ${test}`