Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 9a24f21

Browse files
committed
downloadautomatisation script
1 parent e063a5f commit 9a24f21

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

download_all_stuff.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash
2+
3+
# colors
4+
end="\033[0m"
5+
red="\033[0;31m"
6+
green="\033[0;32m"
7+
8+
green () {
9+
echo -e "${green}${1}${end}"
10+
}
11+
12+
red () {
13+
echo -e "${red}${1}${end}"
14+
}
15+
16+
green "DOWNLOAD ALL STUFF"
17+
wget -c https://github.com/opencv/opencv/archive/4.2.0.tar.gz
18+
wget -c https://github.com/FFmpeg/FFmpeg/archive/n4.2.2.tar.gz
19+
wget -c https://github.com/opencv/dldt/archive/2020.1.tar.gz
20+
21+
green "CLEAN LIB DIRS"
22+
rm -drf ./dldt/*
23+
rm -drf ./ffmpeg/*
24+
rm -drf ./opencv/*
25+
26+
green "UNZIP ALL STUFF"
27+
tar -xf 2020.1.tar.gz --strip-components=1 -C ./dldt/
28+
tar -xf n4.2.2.tar.gz --strip-components=1 -C ./ffmpeg/
29+
tar -xf 4.2.0.tar.gz --strip-components=1 -C ./opencv/
30+
31+
green "GIT RESET FOR ade"
32+
cd ./dldt/inference-engine/thirdparty/ade
33+
git clone https://github.com/opencv/ade/ ./
34+
git reset --hard cbe2db6
35+
36+
green "GIT RESET FOR ngraph"
37+
cd ../../../ngraph
38+
git clone https://github.com/NervanaSystems/ngraph ./
39+
git reset --hard b0bb801
40+
41+
green "CREATE VENV"
42+
cd ../../
43+
44+
if [[ ! -d ./venv ]]; then
45+
virtualenv --clear --always-copy -p /usr/bin/python3 ./venv
46+
./venv/bin/pip3 install numpy
47+
fi

0 commit comments

Comments
 (0)