forked from ET-BE/myoChallengeEval
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
45 lines (37 loc) · 1.1 KB
/
setup.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
37
38
39
40
41
42
43
44
45
#!/bin/bash
GreenBK='\033[1;42m'
RedBK='\033[1;41m'
RC='\033[0m'
PassEvalAI=false
PassDocker=false
#check if docker is installed
docker info
if [ $? -eq 0 ]; then
PassDocker=true
printf "${GreenBK}Docker: Passed!${RC} \n"
else
printf "${RedBK}Docker doesn't seem to be installed!${RC} \n"
echo FAIL
fi
evalai challenges --participant
if [ $? -eq 0 ]; then
PassEvalAI=true
printf "${GreenBK}EvalAI: Passed!${RC} \n"
else
printf "${RedBK}The team doesn't seem to have a valid EvalAI account!${RC} \n"
echo FAIL
fi
if [ "$PassEvalAI" = "true" ] && [ "$PassDocker" = "true" ]; then
# Install required dependences
pip install --upgrade pip
pip install torch
pip install -r requirements/agent.txt -f https://download.pytorch.org/whl/torch_stable.html
pip install grpcio grpcio-tools myosuite
export PYTHONPATH="./utils/:$PYTHONPATH"
export PYTHONPATH="./agent/:$PYTHONPATH"
export PYTHONPATH="./environment/:$PYTHONPATH"
chmod u+r+x ./test/test_die_agent.sh
chmod u+r+x ./test/test_bb_agent.sh
./test/test_die_agent.sh
./test/test_bb_agent.sh
fi