-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.sh
45 lines (37 loc) · 1.12 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=true
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 --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements/agent_random.txt
pip install git+https://github.com/MyoHub/myosuite.git
export PYTHONPATH="./utils/:$PYTHONPATH"
export PYTHONPATH="./agent/:$PYTHONPATH"
export PYTHONPATH="./environment/:$PYTHONPATH"
chmod u+r+x ./test/test_mani_agent.sh
chmod u+r+x ./test/test_loco_agent.sh
# ./test/test_mani_agent.sh
./test/test_loco_agent.sh
fi