Commit Graph

198 Commits

Author SHA1 Message Date
Min, Byungil 9899264d61
Resolve python build issue on Windows (#6517)
Signed-off-by: Min, Byungil <byungil.min@intel.com>
2021-08-09 12:53:29 +03:00
Anastasia Kuporosova 585f211e0a
[IE Python API] fix test query state write buffer (#6928) 2021-08-04 19:43:41 +03:00
Anastasia Kuporosova dd742de105
[Python API] removal of deprecated python api (#6282)
* [Python API] removal of deprecated python api

* [Python API] removal of deprecated python api
2021-08-04 11:46:39 +03:00
Ilya Lavrenov 9ad668a8d7
Fixing cmake command removing temp data for ie_wheel (#6893)
* Fixing cmake command removing temp data for ie_wheel

* rm -> remove_directory

Co-authored-by: Alexander Zhogov <alexander.zhogov@intel.com>
2021-08-03 08:07:09 +03:00
Ilya Lavrenov c38f08b777
Use protobuf-lite for ONNX FE by default (#6829) 2021-07-31 17:21:35 +03:00
Alexey Lebedev 4c0c184d3f
[IE PYTHON] Release GIL in some functions (#6236)
* Release GIL in load_network

* release gil in infer, wait and get_idle_request_id

* release gil in read_network and IECore.__cinit__

* release GIL in properties

* Release GIL in infer_async

* Add test

* Fix test

* Fix test
2021-07-29 14:28:11 +03:00
Ilya Lavrenov 37c619b0b8
Fixed compilation with Intel compiler (#6788)
* Fixed compilation with Intel compiler

* Fixed template containers for VPU

* Fixe one-dnn

* Updated submodule
2021-07-26 12:42:05 +03:00
Alexey Suhov d7e97ee2e4
Use different cpack name for conda Python API build (#6701)
* Add prefix for conda build to cpack name for python api

* use PYTHON_COMPONENT variable
2021-07-20 13:49:27 +03:00
Dmitry Pigasin 1cfe27ae1f
[IE Samples Docs] Add rows with model download and conversion (#6626)
* Add information about model preparation

* Add the missed file extension for the onnx model

* [c] Add information about model preparation

* [cpp] Add information about model preparation

* Update the string about model converter

* Specify a model name at steps 1 and 2 of the running example
2021-07-14 12:07:34 +03:00
Sergey Lyubimtsev b893eae9e7
Fix for missed OMZ public models in openvino-dev package (#6568)
* Fix for missed OMZ public models in openvino-dev package

* fix linter issues
2021-07-09 15:27:56 +03:00
Ilya Lavrenov 35d9bd0f63
Removed NGRAPH_PYTHON_BUILD_ENABLE (#6556) 2021-07-07 21:23:36 +03:00
Dmitry Pigasin 0c8147fdf8
[IE Python Samples] Add a check for existence of output images (#6319)
* Add a check for existence of output images

* Change log messages to pass sample tests
2021-07-02 11:24:00 +03:00
Ilya Lavrenov 07f94ea602
Minimized usage of `IE_MAIN_SOURCE_DIR` (#6422)
* Minimized IE_MAIN_SOURCE_DIR hardcode

* Used COMPILE_OPTIONS instead of COMPILE_FLAGS

* Fixed compilation

* Enabled NGRAPH_DYNAMIC_COMPONENTS_ENABLE by default

* Fixes

* Moved GNA related file

* Fixed backend compilation

* Fixed Windows for ngraph

* Fixed <root>/tests build

* More updates

* Fixed scripts install

* Fixed Windows

* Fixed Windows
2021-06-30 18:15:41 +03:00
Dmitry Pigasin 5c711cf8bb
[samples] Fix other language realization links (#6463) 2021-06-30 16:50:23 +03:00
Dmitry Pigasin 37a2bab747
[samples] Use ref for validated model field (#6468) 2021-06-30 16:48:32 +03:00
Gleb Kazantaev ea3ed8af21
Turn on IE and NG python APIs by default inside Model Optimizer (#5721)
* Turn on IE and NG python APIs by default inside Model Optimizer

* Remove fallback

* Fix mo_ut

* Remove MO wheel tests

* Add model_optimizer custom target to gather all MO deps inside single traget

* Fix PR comments
2021-06-16 03:12:24 +03:00
Ivan Tikhonov aa0c93300c
Update for Python API to create networks with Memory layers (#6079)
* Update python API for Memory

* Run unit tests on CPU only

* add missed import

* Update tests

* fix py tests
2021-06-09 12:19:36 +03:00
Ilya Lavrenov 246932a5d3
Py code style (#6086)
* GitHub CI: Enable Python for Code style

* Update formatting

* Fix

* Add cython

* Add upgrade pip

* Update to src/requirements-dev.txt

* Fixed clang code style

Co-authored-by: azhogov <alexander.zhogov@intel.com>
2021-06-08 20:24:11 +03:00
Kate Generalova eadf2c4ce0
samples: update ngraph README (#6070) 2021-06-08 12:03:25 +03:00
Ivan Tikhonov c1608628d4
LowLatency v2 ngraph transformation (#5160)
* LowLatency 2.0: transformation and unit tests

* low latency 2.0: unit tests

* documentation and ngraph codestyle

* update CNN Interface of LowLatency transformation

* fix build on Windows

* fix build on Windows

* investigation of a failed build on Win OS

* ngraph codestyle

* fix build (werrors)

* New unit tests, refactoring

* update functional tests for Memory

* update LowLatency functional tests

* extend Memory tests to cover LowLatency v2 transformation

* clean up, code style

* fix unit tests

* update and fix unit tests, add feature to apply LLTv2 after LLTv1

* update docs, refactoring

* add several gna tests to skip config

* fix python api tests

* update python api, rename LowLatency_v2 to LowLatency2

* deprecate LowLatency v1

* Deprecate LowLatency v1 in IE

* fix wrong merge, codestyle

* resolve review comments

* fix python test

* update skip config

* apply online review notes, fix unit tests

* clean up, code style

* fix docs

* Use debug_messages instead of exceptions in llt v2

* fix unit tests

* Resolve review remarks
2021-06-07 15:13:41 +03:00
Ilya Lavrenov 1fa225e7bf
Python in OpenVINO: improvements (#6027)
* enable make clean to remove ie_wheel artifacts

* ./setup.py:132:1: E302 expected 2 blank lines

* fix CI build issue

* Removed not-needed components from ie_wheel

* Use explicit python3 vresion in ngraph pythpn

* Use python3 everywhere

* Reuse python3 more

* Added function to build with Py_LIMITED_API

* Sync 2 cmake python modules

* Fix for tools

* Fixed typo

* Enable python by default

* Enable python build iff python-dev is found

* More migration to Python3_VERSION

* Install wheel requirements

* Fixed ngraph Python separate build

* Fixed cython compilation

* Revert to old packages

* Added suffix

* Specify python version explicitly

* Don't depend on python interp to build python itself

* More improvements

* Revert offline transformations back to ie_wheel

* Refactoring

* Trying to build wheel independently on C++ runtime

* Build wheel only with main OpenVINO

* Fixed typo in test_utils cmake lists

* Adding link stage

* small fix

* git diff

* Try to fix python tests

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2021-06-07 10:52:48 +03:00
Ilya Naumov 149c43044c
Set less strict numpy requirements (#6039) 2021-06-04 20:55:22 +03:00
Sergey Lyubimtsev 5f3144c700
Enable make clean to remove ie_wheel artifacts (#5961)
* enable make clean to remove ie_wheel artifacts

* ./setup.py:132:1: E302 expected 2 blank lines

* fix CI build issue

* set ouput dir for whl file to CMAKE_BINARY_DIR

* cleanup

* blank line
2021-06-03 14:08:42 +03:00
Alexey Lebedev e7e8c4b85e
[IE PYTHON] Fix memory leak in IENetwork's constructor (#5856)
* free bin_buffer

* free bin buffer wherever needed
2021-06-02 19:08:54 +03:00
Dmitry Pigasin ac4dd6cda7
Refactor `while True` loops (#5952) 2021-06-02 18:51:32 +03:00
Dmitry Pigasin 09c2cbf5aa
Fix adding dummy data for models with multiple inputs (#5984) 2021-06-02 18:45:56 +03:00
Ilya Lavrenov eff9f00320
Refactored ie_plugin_config.hpp (#5899) 2021-06-01 16:31:29 +03:00
Dmitry Pigasin b2abf25218
Python speech sample (#5322)
* Upload python speech sample draft

* Add function doc strings

* Add the ability to save results to a file

* Add a plugin configuration for GNA to get better accuracy

* Add errors calculation (comparison with a reference)

* Fix flake8 issues

* Add ability to run in hetero mode

* Add ability to load and save numpy format files (.npz)

* Add an error for wrong file extensions & update help message

* Add import and export GNA model options

* Add -we option to export embedded gna model

* Add readme

* Add -oname command line option (Layer names for output blobs)

* Add -iname command line option (Layer names for input blobs)

* Add info about -iname option to README.md

* doc: update readme, fix style

* Add a state reset between inferences

* add reset API to speech README

* doc: remove extra output from README

* remove onnx and TODO, format output

* Add an else branch to the if statement that checks a utterance data type

* Add dummy data for inference if a number of vectors < batch size

* Split the sample into separte files

Co-authored-by: Kate Generalova <kate.generalova@intel.com>
2021-06-01 12:48:02 +03:00
Ilya Lavrenov 3d82b50f78
Fixed samples compilation against make install (#5919)
* Fixed samples compilation against make install

* Fixed code style
2021-05-31 19:58:05 +03:00
Ilya Lavrenov 874c07e68e
Don't install useless .lib files on Windows (#5897) 2021-05-31 13:21:48 +03:00
Alexey Lebedev 69b052c8ca
[IE PYTHON] FIX InputInfoCPtr, DataPtr and CDataPtr deallocation (#5730)
* linked ExecutableNetwork to InputInfo and Data

* Add tests

* Skip test_exec_graph_info_deallocation on ARM plugin
2021-05-31 12:25:13 +03:00
Sergey Lyubimtsev 04cf463c0b
Add auto plugin to openvino wheel (#5855) 2021-05-28 12:58:51 +03:00
Alexey Lebedev aaa632e8f5
Fix test (#5843) 2021-05-27 17:17:34 +03:00
Sergey Lyubimtsev b07bcfb060
Python wheel: failed to set RPATH for 3rd parties (#5835)
* Python wheel: failed to set RPATH for 3rd parties

* fix linter issues

* fix indent

* vpu_custom_kernels

* move ELF check under linux condition

* pylint
2021-05-26 21:31:06 +03:00
Gleb Kazantaev 93c3c24c2b
Added attributes comparision to CompareNetwork function (#5823)
Co-authored-by: Gleb Kazantaev <gleb@nncv666el.inn.intel.com>
2021-05-26 13:06:56 +03:00
Anastasia Kuporosova b5c5b6b974
[Python API] Add MemoryState API (#5731)
* [Python API] Add MemoryState API

* use inferRequest instead of IInferRequest

* implement VariableState through cpp

* small fixes + add tests for preprocess_info
2021-05-26 10:46:44 +03:00
Ilya Lavrenov de58c8d008
WA for DLBench (#5737) 2021-05-21 12:53:18 +03:00
Vladimir Paramuzov d52c4d433a
[IE CLDNN] QueryAPI extension with gpu device info (#5440) 2021-05-19 16:44:40 +03:00
Sergey Lyubimtsev addf7dc1e0
remove package_data and entry_points (#5635) 2021-05-14 18:02:35 +03:00
Ilya Naumov a810db0302
Set more strict requirements for IE python samples (#5223)
* set more strict requirements for IE python samples

* change opencv-python requirement to >=

* set opencv-python requirement  to 4.5.x.x
2021-05-14 17:48:27 +03:00
Ilya Naumov e8eebf4ccc
Align pip requirements of benchmark tool, cross check tool, IE Python API (#5199)
* align pypi deps of benchmark, cross check tool, python API

* move cython from python API requirements to requirements-dev

* change requirements to >= for most packages

* update requirements

* set pinned numpy major version in wheel requirements

* set more strict pip requirements-dev in wheel

* change scikit-image version to 0.17
2021-05-14 16:05:38 +03:00
Gleb Kazantaev b4565b7b4f
Add Model Optimizer --transform option (#5504)
* Execute MO stages inside subprocess to have single IE check

* Add --transform key

* Updated ofline transformations to execute user specified passes; updated logic to raise when --transform is used

* Parametrize LowLatency transformation with num_iterations key

* Fixed MO and IE versions comparision

* Use subprocess for offline transformations execution to catch errors

* remove ie_is_available from IR; fixed typo

* Fix for old IE versions

* Update parse_transform key unit tests

* Show available transformations

* Fixed typo

* Fix review comments

* Fix python2 compatibility

* Fixed review comments

* Fixed __main__ import
2021-05-12 18:42:56 +03:00
Andrey Zaytsev 5e4cd1127b
Integrate UAT fixes (#5517)
* Added info on DockerHub CI Framework

* Feature/azaytsev/change layout (#3295)

* Changes according to feedback comments

* Replaced @ref's with html links

* Fixed links, added a title page for installing from repos and images, fixed formatting issues

* Added links

* minor fix

* Added DL Streamer to the list of components installed by default

* Link fixes

* Link fixes

* ovms doc fix (#2988)

* added OpenVINO Model Server

* ovms doc fixes

Co-authored-by: Trawinski, Dariusz <dariusz.trawinski@intel.com>

* Updated openvino_docs.xml

* Edits to MO

Per findings spreadsheet

* macOS changes

per issue spreadsheet

* Fixes from review spreadsheet

Mostly IE_DG fixes

* Consistency changes

* Make doc fixes from last round of review

* integrate changes from baychub/master

* Update Intro.md

* Update Cutting_Model.md

* Update Cutting_Model.md

* Fixed link to Customize_Model_Optimizer.md

Co-authored-by: Trawinski, Dariusz <dariusz.trawinski@intel.com>
Co-authored-by: baychub <cbay@yahoo.com>
2021-05-06 15:37:13 +03:00
Ilya Lavrenov 49c9f2e6b0
Removed IE API version print (#5502) 2021-05-04 20:43:04 +03:00
Gleb Kazantaev b291ca8cfa
Use Serialization as a default engine in MO (#5347)
* Use Serialization as a default engine in MO

* Added cmd option to use old serialization

* Added mapping file generation

* Test mapping file generation

* Fix setBatchsize parameters order; fix mapping file generation

* Added FrameworkNode; added method to read models with custom ops but without extensions

* Added python API for read_network_without_extensions function; updated mo not to use IECore

* Added read_model_without_extensions to IReader and IParser

* Fix V7 IR reader

* Fix pword value

* Fix dllexport macro usage

* Add metainfo to IR

* Fix nGraph code style

* Fix license header

* Restore prepare_emit_ir behaviour

* Fix compare_function to resolve situation when Result input port has multiple names

* Update Compare Functions

* Fix FrameworkNode validation

* Self-review

* CodeStyle check

* --use_fallback -> --use_legacy_ir_generation

* Sort imports in main.py

* --path_to_model -> --input_model

* Use logging instead of print

* Code simplifucation&cleanup

* Fix offline_Transformations key

* Fix GeneraeMappingFile comments

* Use Extension approach to work with custom ops

* Fix versions check

* Code clean-up

* Moved FrameworkNode to inference_engine_transformations library

* Fix FrameworkNode includes

* Code clean-up
2021-05-04 16:40:20 +03:00
Ilya Lavrenov 768aec9d92
Trying to fix MSVC compilation (#5453) 2021-04-29 12:53:14 +03:00
Kate Generalova 10f3d7e065
feat: linters for IE Py API, wheel, samples (#5352)
* feat: linters for IE Py API, wheel, samples

* fix indent after auto-formatter

* ignore formatting for argument parsing
2021-04-28 13:52:03 +03:00
Sergey Lyubimtsev 7d5fd3d51c
MO Transformation configs are missing in openvino-dev package (#5302)
* MO Transformation configs are missing in openvino-dev package

* fix pylint issues

* add escape

Co-authored-by: Roman Donchenko <roman.donchenko@intel.com>

* add escape

Co-authored-by: Roman Donchenko <roman.donchenko@intel.com>

* add mo_caffe.proto

* Add MO package_data to openvino-dev package

Co-authored-by: Roman Donchenko <roman.donchenko@intel.com>
2021-04-28 10:15:22 +03:00
Sergey Lyubimtsev 6d28be7411
Enable CPack for Python samples (#5406)
* Enable Python samples for CI & CPack

* remove external dependency for CMakeLists file
2021-04-27 18:53:55 +03:00
Ilya Lavrenov 6c83e0f8a5
Small refactoring in TEMPLATE plugin (#5398)
* Small refactoring in TEMPLATE plugin

* Fixed compilation on Windows

* Fixed code style
2021-04-27 18:52:45 +03:00