Commit 83e2c06
CPP Python bindings accuracy tests (#287)
* Add tests for py bindings
* Fix linter
* Del outdated OMZ model
* Disable yolo python tests
* Disable cpp yolo tests as well
* Minor fixes in cpp samples
* Update cmake in tests
* Revert py OV in tests cmake
* Use python from venv only
* Specify python dir manually
* Enable bindings in cpp accuracy tests
* Merge ModelBase into ImageModel
Example works, but probably some missing parts.
* Fix clang linter
* Rename ImageModel to BaseModel
as opposed to ModelBase as it was.
So first it was ImageModel: ModelBase.
Then ModelBase merged into ImageModel
now rename ImageModel to BaseModel
* Python binding compilation test area
* Working with openvino from python package.
OpenCV is using system opencv though...
* Add Dockerfile for building the python bindings from c++
It's ugly, but its just an example to show it works
* Working python wheel package with only opencv as dependency
Currently the rpath is set to a relative path to the site-packages of
python for openvino (../openvino/libs).
This is maybe not great.
OpenCV does not seem to be an issue
* Clean up the Dockerfile.ubuntu for building the python package
* Remove rpath setting
* Extract opencv dependencies and setup windows part too
* Clean up cmakelists, sadly its been broken since last couple commits
* Revert "Clean up cmakelists, sadly its been broken since last couple commits"
This reverts commit 3fb1326.
* Revert "Extract opencv dependencies and setup windows part too"
This reverts commit ffc65ea.
* Fix cmake file properly now for ubuntu
Windows will come
* Fixing windows build again
* Fix tests for cpp-py so that they run, not working yet
Seems one model is causing an issue, either via segmentation fault if
trying to catch error, or a nullptr tensor
* Try to fix workflow
* Remove cpp tests and use venv for building package
* Remove the broken test and enable cpp tests again
* Clean up a bit
* make sure the .so's are included.
Apparently scikit uses .gitignore to ignore what to add to the package
* Apply feedback, remove docker files
* Rename the py project for py bindings to vision api
* Debug why model api is not found
* Remove OpenCV and TBB from included dependencies for now
* Install generated .so to cmake binary dir
* Remove run.py
---------
Co-authored-by: Vladisalv Sovrasov <[email protected]>1 parent 3839c88 commit 83e2c06
File tree
18 files changed
+146
-34
lines changed- .github/workflows
- examples/cpp
- src/cpp
- py_bindings
- src/vision_api
- tests
- cpp
- accuracy
- cmake
- precommit
- python/accuracy
18 files changed
+146
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 78 | | |
85 | 79 | | |
86 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
5 | 14 | | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
14 | | - | |
15 | | - | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | | - | |
| 35 | + | |
20 | 36 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments