Commit Graph

4271 Commits

Author SHA1 Message Date
Luo Cheng
da8aeec07b
Reference implementations for MulticlassNms and MatrixNms ops (#6264)
* Reference implementations for MulticlassNms and MatrixNms ops

* fix name conflict

* remove unused var
sort_result_across_batch default set to false

* avoid float overflow

* fix clang check error

* info for mac fail

* change testcase due to unstable sort

* nms add 'normalized' attribute

* fixes: 1. normalized support. 2. sort by score before keep_top_k inside a batch.

* fix sort order in matrix_nms

* fix review comments

* use structure for attributes

* avoid centos gcc fail

* avoid centos gcc failed

* Update evaluates_map.cpp

header file alpha-beta order to avoid possible conflict in future.

* use pointer instead of HostTensorVector

* fix review comments

* fix review comments

* use reference pass parameter

* reuse rect,boxinfo,postprocess

* fix compiling fail

* fix review coments

* use TestCase instead Backend

* fix macos case failed

Co-authored-by: jialipen <cecilia.peng@intel.com>
Co-authored-by: Zhang Yi3 <yi3.zhang@intel.com>
Co-authored-by: yuvrgb <yuvrgb@outlook.com>
2021-07-07 11:19:49 +03:00
Ivan Tikhonov
85a5e9beb0
Deformable Convolution v8: transformations (#6533)
* add DeformableConv8to1 transformation

* update deformable conv v8 to v1 transformation

* Update inference-engine/src/transformations/src/transformations/op_conversions/convert_deformable_conv_v8_to_v1.cpp

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>

Co-authored-by: Gleb Kazantaev <gleb.nnstu@gmail.com>
2021-07-07 08:52:38 +03:00
Gabriele Galiero Casay
79f26cea7a
Revise BatchToSpace reference implementation (#6289)
* Add visitor unit test

* BatchToSpace operation class refactored

 * Add RTTI definiton/declaration
 * Add checks in validate_and_infer_types
 * Add input/output checks in evaluate method

* Add type_prop tests covering checks in validate_and_infer_types method

* Fix incorrect variable names to specify crops_begin and crops_end inputs

* Add backend tests

* Use array stl to handle batch to space inputs in type_prop tests

* Add more backend tests

* Clean up manifest

* Address review comments

* Add node validation check for out of bounds crops

* Add validation checks in evaluate method

* Add error message to ngraph checks

* Modify check for input rank to allow rank 4 or greater to align with spec and plugins impl
2021-07-07 08:37:58 +03:00
Edward Shogulin
0d69e7fea2
[nGraph] Visualize attribute custom values (#6529) 2021-07-06 20:35:50 +03:00
Ding Zhang
32897aba57
Fix deformable_convolution (#6393)
* Fix deformable_convolution

* Fix unused-variable

* Change a test case

* Change tests back and add single test case
2021-07-06 19:52:37 +03:00
Rafal Blaczkowski
e46969b4ce
Update jobs names (#6542) 2021-07-06 17:12:30 +03:00
song, bell
bee21b5c5b
revise atan op (#6288)
* revise atan op

* use parametrized vistor API

* use new gtest macros

* Update docs/ops/arithmetic/Atan_1.md

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* Update docs/ops/arithmetic/Atan_1.md

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* Update ngraph/core/src/op/atan.cpp

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>

* update doc to follow the rules

* create type_prop for atan

* drop op_eval to be covered in backend

* add the missing type prop case

* add integer type ref impl

* fix clang issue

Co-authored-by: Gabriele Galiero Casay <gabriele.galiero.casay@intel.com>
2021-07-06 09:45:18 +03:00
Mingyu Kim
e209a33fcc
[IE CLDNN] New debug_config: ShowOclBuildError (#6495) 2021-07-06 08:15:34 +03:00
Andrei Gorbachev
3fcc54a272
[IE CLDNN] Gather8 (#6430) 2021-07-06 08:12:34 +03:00
Anastasiya Ageeva
d830226d7e
Fixed CVS-58871 (#6518) 2021-07-05 21:53:06 +03:00
Tomasz Socha
8f18a4f49f
[nGraph] 🦒 Move ngraph dependencies to submodules (#6304)
* [nGraph] 🦒 Move onnx library to submodule

* [nGraph] 🦒 Move protobuf library to submodule

* [nGraph] 🦒 Move pybind11 library to submodule

* [nGraph] 🦒 Move ittapi library to submodule

* 🛠️ fix extraction of protobuf_VERSION

* Skip shellcheck for pybind11

* WIP I

* Fix condition in protobuf version comparison

* downgrade protobuf to 3.7.1

* Change location of submodules with configs

* Fix

* Update protobuf to v3.9.2

* FIX II

* Style

* FIX III

* switch to tar.gz
2021-07-05 20:06:10 +03:00
Ilya Lavrenov
2803c1b429
Removed debug print (#6504) 2021-07-05 20:05:23 +03:00
Andrey Somsikov
1ffc42ef43
Add ENABLE_UNDEFINED_BEHAVIOR_SANITIZER option (#6385)
Add a configuration for the UndefinedBehavior sanitizer, disabled by default.

Refactor sanitizer configuration to split options which are common across sanitizers.
Unify sanitizer runtime linkage accross sanitizers to use compiler default.
2021-07-05 18:53:11 +03:00
Ilya Lavrenov
8d85b580ed
Hot fix (#6527) 2021-07-05 18:05:52 +03:00
Karol Trzciński
a773c84c7d
fix typos in inference_engine (#6408)
Signed-off-by: Karol Trzcinski <karolx.trzcinski@intel.com>
2021-07-05 17:55:21 +03:00
Daniel Kiss
92cec2367b
Fix an initialization issue in ie_core_create (#6489)
* Fix InferenceEngine::Core initialization. Previously IE::Core was
  default constructed first, then overwritten by another instance.
  This causes problems if the library user attempts to opt-out of the
  default "plugins.xml" plugin loading mechanism.
2021-07-05 17:53:18 +03:00
Ilya Lavrenov
72db14bf6e
Added yocto toolchain (#6522) 2021-07-05 17:40:02 +03:00
Evgeny Kotov
30b4b4881e
GNA add RemoveExtraReshapes tranformation tests (#6461)
* add RemoveExtraReshapes transformation tests
* use clone function instead of creating reference function code duplicate
2021-07-05 16:17:54 +03:00
Bartosz Lesniewski
b231b2b576
Revise PriorBox op (#6363)
* Use ngraph rtti macros

* Check attribute count in visitor test case

* Add priorBox class for SLT

* Add priorBox SSLT

* Add CPU SLT

* moved type_prop tests to type_prop directory

* Add backend tests

* Add PriorBox to trusted ops list

* infer first dimension of size 2
2021-07-05 13:34:09 +03:00
Rafal Blaczkowski
07b0b4ea83
Update openvino-ngraph-onnx Azure check (#6497)
* Add Debug configuration

* Update with matrix

* Add 3 configurations

* Update names and remove Debug tests
2021-07-05 13:18:29 +03:00
Dmitry Pigasin
be947a0b5d
Update demo .bat scripts (#6096)
* Change the build dir for cpp samples

* Add info about `-sample-options` to the help message

* Use `python -m pip` instead of `pip3`

* Add the line of code to update pip

* Update help messages

* Add python venv creation

* Use `model-optimizer/requirements.txt` instead of `install_prerequisites.bat`

* [demo_benchmark_app.bat] Update the help message

* [demo_benchmark_app.bat] Add venv creation

* [demo_benchmark_app.bat] Replace model_optimizer prerequisites with the requirements.txt

* Change the venv location

* Remove the mention of FPGA from the help message

* Fix venv folder path

* Change venv folder to `venv_openvino`
2021-07-05 12:48:54 +03:00
Dmitry Pigasin
860896c4bb
Update demo .sh scripts (#6078)
* Remove sudo package installation from demo scripts

* Change the build_dir path (benchmark_app.sh, squeezenet_download_convert_run)

* Remove redundant pip_binary

* Revert 'inference_engine_samples_build' as the build folder for .bat

* Add check for python 3.8

* Update help messages

* Use `model-optimizer/requirements.txt` instead of `install_prerequisites.sh`

* Add `--user` for python package installation (demo_security_barrier_camera.sh)

* Add python venv creation

* Create venv in $HOME instead of $ROOT_DIR

* Make the step messages look the same as in the .bat scripts

* Make the same changes to demo_benchmark_app.sh as in other .sh scripts

* Remove a mention of FPGA from a help message

* Set venv folder to `venv_openvino`
2021-07-05 12:47:11 +03:00
Anton Chetverikov
8a31e8aafb
Provide keep_output_port attribute to add_opoutput function (#6117)
* Implement way to provide keep_output_port attribute to add_opoutput function

* Update tests

* Update comment

* Fake commit to pictures merge problem

* Change default value

* Add type

* Revert "Fake commit to pictures merge problem"

This reverts commit 41850765e0.
2021-07-05 12:34:44 +05:00
Polina Brzezinskaya
a65828c172
[IE][VPU] Support for constant networks (#6185)
Adds support for constant networks in the Myriad plugin
2021-07-05 10:26:34 +03:00
Bartek Szmelczynski
13de29db97
Revise sinh (#6432)
* update sinh spec

* add rounding for integral type

* refactor ngraph sinh class, add backend, visitors and type_prop tests

* refactor backend test for int32, remove redundant includes, refactor spec, add SLT for ints

* fix style

* add sinh to list of trusted ops

* re-add Sinh to int SLT

* update python modules

* revert update of python modules, and fix the depracated typed_test formula

* fix deprecated typed_test formula
2021-07-05 10:11:02 +03:00
Ilya Lavrenov
50c73e6914
Allow aliased targets for apiValidator check (#6508) 2021-07-05 09:48:05 +03:00
Patryk Elszkowski
d4c2b27100
Space to depth - refactor reference implementation (#6374)
* extract SpaceToDepth implementation from op class to reference file

* move backend test from fused_op.in.cpp to space_to_depth.in.cpp

* Cleanup reference implementation

* Extend SpaceToDepth backend tests

* add SpaceToDepth to verified ops
2021-07-05 09:00:49 +03:00
Maxim Vafin
f1af26dbaf
Add adaptive pool reference implementation (#6317)
* Add adaptive pool reference implementation

* Add forgotten files

* Fix codestyle

* Disable tests

* Add more tests

* Fix build

* Fix comments

* Remove CoordinateTransform usage from AdaptiveAvgPool

* Fix build

* Refactor AdaptiveMaxPool

* Fix codestyle

* Apply review feedback

* Simplify if statement
2021-07-05 08:36:27 +03:00
Ilya Churaev
fea3ada931
Deprecate coordinate transform (#6425)
* Deprecate coordinate transform

* Fix Windows build

* Deprecated index
2021-07-05 08:24:39 +03:00
Alexey Suhov
64cbdb9c22
[MO] exclude MO build artifacts and add unit_tests to cpack (#6507) 2021-07-03 16:50:26 +03:00
Ivan Tikhonov
033274c141
Deformable convolution v8: ngraph part (#6443)
* Deformable convolution: ngraph part

* fix docs

* add visitor api tests

* apply review remarks
2021-07-02 19:31:09 +03:00
Gabriele Galiero Casay
9d9bba62a4
SLTs for BatchToSpace operation (#6417)
* Add Serialization SLT for BatchToSpace operation

* Add operation to list of trusted ops

* Refactor SLTs and extend test cases coverage
2021-07-02 19:07:51 +03:00
Patryk Elszkowski
06013d1596
SpaceToDepth update spec (#6426)
* SpaceToDepth update spec

* fix T to be italic

* add spaces around `/`

* fix **Required.**
2021-07-02 18:22:46 +03:00
Evgeny Lazarev
21d060ac2b
Updated conversion of TF OD API 2.4 SSD models (#6473)
* Updated conversion of TF OD API 2.4 SSD models

* Fixed issue when more Conv2D nodes were selected for weights permutation when converting TF OD API models

* Code style fixes

* Fixed code comments
2021-07-02 17:35:59 +03:00
Ilya Lavrenov
8cc1737b5d
Removed EXPORT_DEPENDENCIES from addIeTarget (#6502)
* Added pugixml as submodule

* CVS-34900: updated pugixml to v1.11.4

* Fixed link with pugixml

* USe pugixml::static

* Try to fix bug

* Removed GITHUB_PULL_REQUEST

* Replaced  OpenVINO_MAIN_SOURCE_DIR -> OpenVINO_SOURCE_DIR

* Removed some usages of IE_MAIN_SOURCE_DIR

* Use ngraph target directly

* Removed EXPORT_DEPENDENCIES
2021-07-02 17:17:44 +03:00
Ivan Tikhonov
00c8ccc9b5
Update LowLatency2 documentation (#6266) 2021-07-02 15:14:40 +03:00
Patryk Elszkowski
de53c40578
bulk change type T to type *T* in spec (#6486)
* bulk change `type T` to `type *T*` in spec

* update all `T` which referee to type to use *T* pattern

* get back with `T` where T is dimension

* fix *T*1 -> *T1*

* Make italic types where was no formating
2021-07-02 13:51:00 +03:00
Svetlana Dolinina
ccf786438b
Kaldi priors (#6258)
* add priors to loader and counts transformation

* fixes in select insertion for case with context gathering - LSTM - context gathering
fix for edge parallel to ReadValue
extend counts option to case of priors inside mdl model file

* fixed tests

* fixed typo

* fixed issue with input names

* fix priors loading + comments

* fix e2e test: error with not found transformation

* print debug info for dependency graph - should be reverted

* should be reverted: debug commit

* Revert "fix e2e test: error with not found transformation"

This reverts commit 8320fa99bf.

* revert debug commits

* fixes after review

* review fixes

* review change

* review changes
2021-07-02 15:18:23 +05:00
Ilya Lavrenov
fc7f80a34e
CVS-34900: updated pugixml to v1.11.4 (#6301)
* Added pugixml as submodule

* CVS-34900: updated pugixml to v1.11.4

* Fixed link with pugixml

* USe pugixml::static

* Try to fix bug

* Removed GITHUB_PULL_REQUEST

* Replaced  OpenVINO_MAIN_SOURCE_DIR -> OpenVINO_SOURCE_DIR

* Removed some usages of IE_MAIN_SOURCE_DIR

* Use ngraph target directly
2021-07-02 11:36:31 +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 Sharikov
c2e4e64079
Updated path of the executable binary for the Python interpreter (#6494) 2021-07-02 10:53:46 +03:00
Szymon Irzabek
0dfe44e465
[GNA] Add transformation of padded to valid convolutions (#6149)
* [GNA] Add transformation of padded convolutions to valid ones

* [GNA] Switch to ngraph matcher pass

* [GNA] Apply review changes

* [GNA] Simplify padding calculation algorithm, fix MaxPool detection, review fixes.
2021-07-02 10:30:40 +03:00
Ilya Lavrenov
0c4c57db27
Improvements in Blob API (#6490) 2021-07-02 10:02:52 +03:00
Andrey Babushkin
38d8cc2112
Revert "[GNA] Passed functional tests removed from the skip list (#6400)" (#6491)
This reverts commit 5323200110.
2021-07-01 23:27:54 +03:00
Vladislav Volkov
94ee9ab7c3
nGraph and CPU plugin opset rtti (#6445) 2021-07-01 21:28:16 +03:00
Victor Kuznetsov
267f9a3b77
Skip test_lstm_simple_precommit on gpu (#6293)
* skip test on gpu

* try to set timeout

* add timeout param

* rename to infer_timeout

* fix infer_timeout
2021-07-01 20:25:27 +03:00
Vitaliy Urusovskij
31907e51e9
Fixed several issues in time_tests (#6481)
* Fixed return in `run_timetest`

* Fixed `parse_stats()` argument type notation

* Pass message from `timetest` exe to test error msg to be uploaded to DB
2021-07-01 16:37:23 +03:00
Vladimir Gavrilov
1d7f81c108
Implement reference nGraph implementation for operation ExperimentalDetectronGenerateProposalsSingleImage (#5881)
* Written header file for the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Small fixes.

* Started to write cpp-file for the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Written the postprocessing function for the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Code style fixes.

* Started to write calculations of the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Written the helper function refine_anchors().

* Written the helper function unpack_boxes().

* Small fix.

* Code style fixes.

* Written calculations of the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Code style fixes.

* Fixed type of one argument of fill_output_blobs().

* Code style fix.

* Written evaluate() for the operation ExperimentalDetectronGenerateProposalsSingleImage (in evaluates_map.cpp).

* Deleted redundant 'using' for typedef.

* Continued to write tests for ExperimentalDetectronGenerateProposalsSingleImage evaluation in the nGraph reference implementation.

* Fixed the reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Deleted commented code. Code style fixes.

* Code style fix.

* Deleted debug prints in the test for an evaluation of the nGraph operation ExperimentalDetectronGenerateProposalsSingleImage.

* Enabled ONNX Importer test for the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Enabled some test.

* Small fix.

* Now postprocessing of the nGraph reference realization of the operation ExperimentalDetectronGenerateProposalsSingleImage throws exception when input data type is not supported.

* Code style fix.

* Written yet another  test for the nGraph reference implementation of the operation ExperimentalDetectronGenerateProposalsSingleImage.

* Reused ProposalBox type from the reference implementation of the operation Proposal.

* Added check for the attribute post_nms_count in the operation ExperimentalDetectronGenerateProposalsSingleImage evaluation.

* Small fixes.
2021-07-01 14:42:51 +03:00
Maksim Derbasov
98e6653aaf
check all symbols in dload, not lazy (#6381) 2021-07-01 14:22:04 +03:00
Mateusz Tabaka
a54b82323a
Add HSigmoidFusionWithClampDiv fusion and remove duplicated patterns … (#5665)
* Add HSigmoidFusionWithClampDiv fusion and remove duplicated patterns in HSwishFusion

* use latest opset
2021-07-01 13:30:58 +03:00