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

Commit 695bf8c

Browse files
authored
Dev (#10)
* upd new version * OpenBLAS faster than JIT * wheel already manylinux and should not be used for win * upd * upd * 4.4.0 ready
1 parent 501155a commit 695bf8c

File tree

6 files changed

+34
-16
lines changed

6 files changed

+34
-16
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ sudo ln -s /usr/bin/python3 /usr/bin/python
113113
```bash
114114
cd build/openblas
115115
./openblas_setup.sh &&
116-
make -j8 &&
116+
make -j6 &&
117117
make install
118118

119119
cd ../ffmpeg
120120
./ffmpeg_setup.sh &&
121121
./ffmpeg_premake.sh &&
122-
make -j8 &&
122+
make -j6 &&
123123
make install
124124

125125
cd ../dldt
126126
./dldt_setup.sh &&
127-
make -j8
127+
make -j6
128128

129129
cd ../opencv
130130
./opencv_setup.sh &&
131-
make -j8
131+
make -j6
132132
```
133133

134134
### Wheel creation

TODO.md

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# TODO list
2+
3+
+ Auto value for `-D INF_ENGINE_RELEASE`
4+
+ Try to submodule things instead of downloading archives of them
5+
+ check tar.gz integrity otherwise

build/dldt/dldt_setup.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ cmake -D CMAKE_BUILD_TYPE=Release \
4242
-D NGRAPH_JSON_ENABLE=ON \
4343
-D BLAS_LIBRARIES="$BLAS_LIB" \
4444
-D BLAS_INCLUDE_DIRS="$BLAS_INC" \
45-
-D ENABLE_CLDNN=OFF ../../dldt/
45+
-D ENABLE_CLDNN=OFF \
46+
-D ENABLE_CLDNN_TESTS=OFF \
47+
-D ENABLE_PROFILING_ITT=OFF \
48+
-D ENABLE_SAMPLES=OFF \
49+
-D ENABLE_SPEECH_DEMO=OFF ../../dldt/

build/opencv/opencv_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
7373
-D WITH_NGRAPH=ON \
7474
-D ngraph_DIR=$ABS_PORTION/build/dldt/ngraph \
7575
-D WITH_INF_ENGINE=ON \
76-
-D INF_ENGINE_RELEASE=2020020000 \
76+
-D INF_ENGINE_RELEASE=2020040000 \
7777
-D INF_ENGINE_INCLUDE_DIRS=$ABS_PORTION/dldt/inference-engine/include \
7878
-D INF_ENGINE_LIB_DIRS=$ABS_PORTION/dldt/bin/intel64/Release/lib \
7979
-D CPU_BASELINE=SSE4_2 \

create_wheel/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def __len__(self):
1515

1616
setuptools.setup(
1717
name="opencv-python-inference-engine",
18-
version="4.3.0.2",
18+
version="4.4.0.0",
1919
url="https://github.com/banderlog/opencv-python-inference-engine",
2020
maintainer="Kabakov Borys",
2121
license='MIT, BSD, Intel Simplified Software License',
22-
description="Wrapper package for OpenCV 4.3.0 with Inference Engine 2020.2 python bindings",
22+
description="Wrapper package for OpenCV 4.4.0 with Inference Engine 2020.4 python bindings",
2323
long_description=long_description,
2424
long_description_content_type="text/markdown",
2525
ext_modules=EmptyListWithLength(),

download_all_stuff.sh

+18-8
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ green () {
99
echo -e "${green}${1}${end}"
1010
}
1111

12+
1213
red () {
1314
echo -e "${red}${1}${end}"
1415
}
1516

17+
18+
ROOT_DIR=$(pwd)
19+
1620
green "DOWNLOAD ALL ARCHIVES"
17-
wget -c https://github.com/opencv/opencv/archive/4.3.0.tar.gz -O opencv.tar.gz
18-
wget -c https://github.com/openvinotoolkit/openvino/archive/2020.3.0.tar.gz -O dldt.tar.gz
19-
wget -c https://github.com/FFmpeg/FFmpeg/archive/n4.3.tar.gz -O ffmpeg.tar.gz
21+
wget -c https://github.com/opencv/opencv/archive/4.4.0.tar.gz -O opencv.tar.gz
22+
wget -c https://github.com/openvinotoolkit/openvino/archive/2020.4.tar.gz -O dldt.tar.gz
23+
wget -c https://github.com/FFmpeg/FFmpeg/archive/n4.3.1.tar.gz -O ffmpeg.tar.gz
2024
wget -c https://github.com/xianyi/OpenBLAS/archive/v0.3.10.tar.gz -O openblas.tar.gz
2125

2226

@@ -49,13 +53,19 @@ cd ./dldt/inference-engine/thirdparty/ade
4953
git clone https://github.com/opencv/ade/ ./
5054
git reset --hard cbe2db6
5155

52-
green "GIT RESET FOR ngraph"
53-
cd ../../../ngraph
54-
git clone https://github.com/NervanaSystems/ngraph ./
55-
git reset --hard edc65ca
56+
green "GIT RESET FOR mkl-dnn"
57+
cd ../mkl-dnn
58+
git clone https://github.com/openvinotoolkit/oneDNN/ ./
59+
git reset --hard 2706f56
60+
61+
green "GIT RESET FOR IE samples gflags"
62+
cd ../../samples/thirdparty/gflags/
63+
git clone https://github.com/gflags/gflags ./
64+
git reset --hard 46f73f8
65+
5666

5767
green "CREATE VENV"
58-
cd ../
68+
cd $ROOT_DIR
5969

6070
if [[ ! -d ./venv ]]; then
6171
virtualenv --clear --always-copy -p /usr/bin/python3 ./venv

0 commit comments

Comments
 (0)