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

Commit b192dab

Browse files
committed
submodules upd
1 parent ff72436 commit b192dab

5 files changed

Lines changed: 24 additions & 15 deletions

File tree

README.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,30 @@ Remove previously installed versions of `cv2`
1212
pip3 install opencv-python-inference-engine
1313
```
1414

15+
## Examples of usage
1516

16-
## Why
17+
I'll do more straightforward and well-documented examples of usage in the foreseeable future. But for now, please see the tests folder.
18+
19+
You will need to preprocess data as a model requires and decode the output. A description of the decoding *should* be in the model documentation with examples in open-vino documentation, however, in some cases, the original article may be the only information source. Some models are very simple to encode/decode, others are tough (e.g., PixelLink in tests).
20+
21+
22+
## Downloading intel models
23+
24+
The official way is clumsy because you need to git clone the whole [model_zoo](https://github.com/opencv/open_model_zoo) ([details](https://github.com/opencv/open_model_zoo/issues/522))
25+
26+
Better to find a model description [here](https://github.com/opencv/open_model_zoo/blob/master/models/intel/index.md) and download manually from [here](https://download.01.org/opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/)
27+
28+
29+
## Description
30+
31+
32+
### Why
1733

1834
I needed an ability to fast deploy a small package that able to run models from [Intel's model zoo](https://github.com/opencv/open_model_zoo/) and use [Movidius NCS](https://software.intel.com/en-us/neural-compute-stick).
1935
Well-known [opencv-python](https://github.com/skvark/opencv-python) can't do this.
2036
The official way is to use OpenVINO, but it is big and clumsy (just try to use it with python venv or fast download it on cloud instance).
2137

2238

23-
## Description
24-
2539
### Limitations
2640

2741
+ Package comes without contrib modules.
@@ -59,12 +73,6 @@ For additional info read `cv2.getBuildInformation()` output.
5973
The first 3 letters are the version of OpenCV, the last one -- package version. E.g, `4.1.0.2` -- 2nd version of based on 4.1.0 OpenCV package. Package versions are not continuously numbered -- each new OpenCV version starts its own numbering.
6074

6175

62-
## Downloading intel models
63-
64-
The official way is clumsy because you need to git clone the whole [model_zoo](https://github.com/opencv/open_model_zoo) ([details](https://github.com/opencv/open_model_zoo/issues/522))
65-
66-
Better to find a model description [here](https://github.com/opencv/open_model_zoo/blob/master/models/intel/index.md) and download manually from [here](https://download.01.org/opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/)
67-
6876

6977
## Compiling from source
7078

@@ -201,7 +209,8 @@ Our opensource MKL-DNN experiment will end with 125MB `libmklml_gnu.so` and infe
201209

202210
#### CUDA
203211

204-
I did not try it. And it is not in the package for certain [reasons](https://github.com/banderlog/opencv-python-inference-engine/issues/9).
212+
I did not try it. But it cannot be universal, it will only work with the certain combination of GPU+CUDA+cuDNN for which it will be compiled for.
213+
205214

206215
+ [Compile OpenCV’s ‘dnn’ module with NVIDIA GPU support](https://www.pyimagesearch.com/2020/02/10/opencv-dnn-with-nvidia-gpus-1549-faster-yolo-ssd-and-mask-r-cnn/)
207216
+ [Use OpenCV’s ‘dnn’ module with NVIDIA GPUs, CUDA, and cuDNN](https://www.pyimagesearch.com/2020/02/03/how-to-use-opencvs-dnn-module-with-nvidia-gpus-cuda-and-cudnn/)

download_all_stuff.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ROOT_DIR=$(pwd)
1919

2020
green "RESET GIT SUBMODULES"
2121
# use `git pull && git checkout tags/<tag>` for update
22-
git submodule update --init --recursive
22+
git submodule update --init --recursive --depth=1 --jobs=4
2323

2424
green "CLEAN BUILD DIRS"
2525
find build/dldt/ -mindepth 1 -not -name 'dldt_setup.sh' -delete
@@ -39,4 +39,4 @@ cd $ROOT_DIR
3939
if [[ ! -d ./venv ]]; then
4040
virtualenv --clear --always-copy -p /usr/bin/python3 ./venv
4141
./venv/bin/pip3 install numpy
42-
fi
42+
fi

ffmpeg

Submodule ffmpeg updated 5932 files

openblas

opencv

Submodule opencv updated 897 files

0 commit comments

Comments
 (0)