Commit Graph

144 Commits

Author SHA1 Message Date
Maxim Gordeev
3c93c3e766 Hello classification, classification_async, hello_reshape_ssd python samples with API 2.0 (#9091)
* Hello classification python with API 2.0

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>

* changed linters processing

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* Update samples/python/hello_classification/hello_classification.py

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* updated import

* Moved classification_sample_async to new API 2.0

* moved hello_reshape_ssd sample to new API 2.0

* [classification_sample_async] refactoring

* [hello_classification] refactoring

* [hello_reshape_ssd] refactoring

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>
Co-authored-by: Dmitry Pigasin <dmitry.pigasin@intel.com>
2021-12-21 01:33:12 +03:00
Maxim Gordeev
abcd7486a9 Moving of C++ speech sample to OpenVINO API 2.0 (#9027)
* Moved Speech sample to OpenVINO 2.0

* improved samples's score

* changed code style

* added GNA configs

* renamed function due to new API

* added dynamic batch

* reordered includes

* speech_sample has more than 1 input

* added oname processing

* added multi input

* fixed notes

* removed getFullDeviceName with old api

* getFullDeviceName for benchmark
2021-12-19 20:56:40 +03:00
Fedor Zharinov
e9874ec1d4 Dynamic reshapes (#7788)
* Merged and compiling

* Fix for dynamic shape type

* review fixes

* renamed blob shape to tensor shape, small improvements

* fix code style

* added parsing of multiple shapes

* store latency per group, add isIdleRequestAvailable() to Infer Queue

* added cached random inputs

* redesign pipeline, added new metrics(avg, max, min), added metrics per groups

* fixed code style

* small improvements

* modified tensor parameters parsing

* modified -i parameter parsing: added possibility to specify input names

* implemented image cashing

* added cashed blobs creating

* added -pcseq flag, modified batch filling, changes fps formula

* improvements

* code formatting

* code formatting2

* apply suggestions from review

* replaced Buffer class with InferenceEngine Blobs

* use batch size in blobs filling

* added shared blob allocator to handle blob's data

* fixed warnings & code style

* allocate blobs

* fix for networks with image info input

* added comments & fixed codestyle

* clear data in free() in SharedBlobAllocator

* remove unnecessary check

* Delimeter is changed to ::

* stylefix

* added layout from string function, small improvements

* modified parsing to enable : in input parameters

* small fixes

* small fixes

* added missed blob allocation, fixes

* [TEST]added support for remote blobs

* fix remote blobs

* new inputs/files output format

* removed vectors resize which caused bugs

* made cl::Buffer type under ifdef, fix inputs filling

* changed batch() function to not throwing exceptions

* removed unused var

* fix code style

* replace empty name in input files with name from net input

* restored old behaviour for static models

* fix code style

* fix warning - made const iterator

* fix warning - remove reference in loop variable

* added random and image_info input types to -i, fix problem with layout

* replaced batch() with getBatchSize() in main

* fix layout, shape, tensor shape parameters parsing

* upd help messages for input, tensor shape and pcseq command

* added buffer for cl output blobs, small fixes

Signed-off-by: ivikhrev <ivan.vikhrev@intel.com>

* added legacy mode

* restore setBlob

* code style formatting

* move collecting latency for groups under flag

* removed not applicable layouts

* added hint to error message when wrong input name in -tensor_shape was specified

* added new metrics to statistics report

* Apply suggestions from code review

* fix binary blobs filling when layout is CN

* apply suggestions

* moved file in the right place after rebase

* improved -pcseq output

* updated args and readme

* removed TEMPLATE plugin registration

* fix -shape arg  decsription

* enable providing several -i args as input

* renamed legacy_mode to inference_only and made it default for static models, renamed tensor_shape to data_shape

* upd readme

* use getBlob() in inference only mode

* fix old input type for static case

* fix typo

* upd readme

* move log about benchmark mode to the measuring perfomance step

* added class for latency metrics

* upd readme, fix typos, renamed funcs

* fix warning and upd parsing to avoid error with : in file paths

* fix error on centos : error: use of deleted function ‘std::basic_stringstream<char>::basic_stringstream(const std::basic_stringstream<char>&)

* added check for key in inputs

* renamed input to inputs

* adjust batch size for binary blobs

* replaced warning with exception in bench mode defining

* align measurement cycle with master

Co-authored-by: ivikhrev <ivan.vikhrev@intel.com>
2021-12-17 12:20:43 +03:00
Ilya Lavrenov
e6d08aef5b Don't use EXCLUDE_FROM_ALL with samples targets (#9237) 2021-12-15 21:21:46 +03:00
Vladimir Dudnik
aa457268d4 [IE Samples] make coverity happy (#9203)
* make coverity happy

* apply code style
2021-12-15 17:58:06 +03:00
Pavel Zamelin
a023c588ba Fix parseArgMap for layer names with : (#8826) 2021-12-14 12:36:14 +03:00
Ivan Vikhrev
b6176fa768 [IE Samples] restored support for multiple -i args (#9190)
* restored support for  multiple -i args

* replaced return with break, moved return out of cycle
2021-12-14 11:37:50 +03:00
Vladimir Dudnik
5b25dbee22 ov2.0 IE samples modification (#8340)
* ov2.0 IE samples modification

apply code style

turn off clang style check for headers order

unify samples a bit

add yuv nv12 reader to format_reader, helloe_nv112 sample

hello_reshape_ssd ov2.0

* sync with PR 8629 preprocessing api changes

* fix for slog << vector<int>

* add operator<< for ov::Version from PR-8687

* Update samples/cpp/hello_nv12_input_classification/main.cpp

Co-authored-by: Mikhail Nosov <mikhail.nosov@intel.com>

* apply code style

* change according to review comments

* add const qualifier

* apply code style

* std::ostream for old inference engine version to make VPU plugin tests happy

* apply code style

* revert changes in print version for old api samples

* keep inference_engine.hpp for not ov2.0 yet samples

* fix merge artifacts

* fix compilation

* apply code style

* Fixed classification sample test

* Revert changes in hello_reshape_ssd sample

* rebase to master, sync with PR-9054

* fix issues found by C++ tests

* rebased and sync with PR-9051

* fix test result parsers for classification tests (except unicode one)

* fix mismatches after merge

* rebase and sync with PR-9144

Co-authored-by: Mikhail Nosov <mikhail.nosov@intel.com>
Co-authored-by: antonrom23 <anton.romanov@intel.com>
2021-12-13 11:30:58 +03:00
Ilya Lavrenov
9e519946f0 Integrate JSON libs (#9145)
* Add nlohmann json (Release 3.10.4) as submodule

* Move nlohmann_json lib to json folder, add json_schema validator lib as submodule

* Move BUILD_SHARED_LIBS flag to a separete scope

* Add export of nlohmann_json_schema_validator

* Fix build

* set folder thirdparty

* link lib to offline_transformations and benchmark_app

* suppress shadowing names warning in nlohmann_json lib

* fix include in benchmark_app

* Resolve review comments: add json subdirs to samples cmake

* Fix static build

* Proper json integration

* removed cpp_samples_deps component

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
2021-12-12 20:40:41 +03:00
Ilya Churaev
37b0b6f7c8 Renamed ExecutableNetwork to CompiledModel (#9144)
* Renamed ExecutableNetwork to CompiledModel

* Fixed python

* Fixed comments

* Fixed build

* Fixed code style
2021-12-11 16:11:15 +03:00
Vladimir Dudnik
c85fb74efc ov2.0 cpp hello reshape ssd (#8874)
* OV2.0 API C++ hello_reashe_ssd sample

* clean header

* fix test for changed sample cmd line

* adopt to PR-8898

* sync with PR-9054, simplify code

* apply code_style.diff

* sync with PR-9051
2021-12-10 15:58:23 +03:00
Vladimir Dudnik
96fd5dce0b remove fast sample scripts (#9140) 2021-12-10 13:52:35 +03:00
Dmitry Pigasin
3f96a1bccd [IE C Samples] Implement bmp reader (#8848)
* Implement bmp reader

* Use not os specific functions

* Fix code style

* Move `i` declaration from `for` loop

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>
2021-12-10 13:19:28 +03:00
Ilya Churaev
ec6f57872f Renamed ov::Function to ov::Model (#9051)
* Renamed ov::Function to ov::Model

* Fixed all for macos

* Fixed build

* Fixed build

* Revert changes in GPU plugin

* Fixed ngraphFunctions

* Fixed all for mac

* Fixed new test

* Fixed if for Windows

* Fixed unit tests and renamed Function in python API

* Fixed code style

* Fixed import

* Fixed conflict

* Fixed merge issues
2021-12-10 13:08:38 +03:00
Szymon Irzabek
1c6c7bac2d [GNA] Detect unsupported concat layers (#7599)
* [GNA] Detect unsupported concat layers

* [GNA] Add support for 3D transposes around convolutions and replace exception with user warning
2021-12-10 11:17:29 +03:00
Dmitry Pigasin
c41acdeaf3 [IE Python Sample] Migrate hello_query_device to OV2.0 API (#9029) 2021-12-09 23:01:45 +03:00
Ilya Lavrenov
64367fbca2 Export frontend_common as dev target (#9003) 2021-12-08 17:18:44 +03:00
Dmitry Pigasin
7fa6c42a8c [IE Python Speech Sample] Enable -we option (#8750)
* Enable `-we` option

* Update readme
2021-12-08 13:05:22 +03:00
Mikhail Nosov
20bf5fcc4a Rename "network" to "model" in preprocessing API (#9054) 2021-12-07 19:26:27 +03:00
Mikhail Nosov
4abaef6702 [OV20] ov::Function - get/set batch size (#8955)
* Initial version (no tests)

* Added tests

* Fix centos

* Applied review comments

* Renamed 'ov::util::get_batch_size' to 'ov::pass::get_batch'. For set_batch_size update is the same

* Changed to ov::get_batch and ov::set_batch
2021-12-07 16:40:48 +03:00
Jade Cho
7842b636c9 Fix a bug of benchmark_app for binary input filling. (#8960) 2021-12-07 10:05:17 +09:00
Denis Orlov
371de1e620 [GNA] Fix comments in GNA public header and speech sample (#8395) 2021-12-06 11:00:58 +03:00
Vladimir Dudnik
355fdeec55 rm C/C++ object_detection_sample_ssd (#9020)
* rm C/C++ object_detection_sample_ssd

* fix link
2021-12-06 10:38:40 +03:00
Vladimir Dudnik
642bd07ffa rm python style_transfer_sample (#8881) 2021-12-05 18:00:11 +03:00
Vladimir Dudnik
89282e3f36 remove C++ style_transfer_sample, brings nothing new to educate OV2.0 API (#8906) 2021-12-04 15:51:54 +03:00
Dmitry Pigasin
85f5528cad Fix infer model with non 2d tensors (#8752) 2021-12-02 10:59:53 +03:00
Vladimir Dudnik
bc8fbf530b rm python object_detection_sample_ssd (#8880)
* remove python object_detection_sample_ssd

* rm refs to deleted python sample
2021-12-02 09:51:36 +03:00
Mikhail Nosov
e2172cd38a [OV2.0] Preprocessing api cleanup (#8898)
* Removed 'inline' Preprocessing API

Even though this API provided a way to specify all pre/post-processing in one line - it was considered inconvinient
With 'getters' API preprocessing code looks more clear for user, so old' inline' API is removed

* Fix pyopenvino build issues

* Update after merged PR#8717
2021-11-30 12:30:13 +03:00
Ilya Lavrenov
5719192687 Use ninja multi-config (#8757)
* Use ninja multu-config

* Reused OV_GENERATOR_MULTI_CONFIG

* Try to use config in api_validator post build task

* Fixes

* Revert "[GPU] Fix multi configuration build of onednn_gpu (#8743)"

This reverts commit a862331732.

* Propogate disable deprecated for _RELEASE flags as well
2021-11-27 14:58:24 +03:00
Anton Pankratov
bd3e4fbe78 Added openvino any (#8288) 2021-11-26 12:23:25 +03:00
Anton Romanov
b5134dc459 Fixed part coverity issues in samples (#8744) 2021-11-24 13:17:33 +03:00
Anton Romanov
dd38ffb387 Added samples smoke tests (#1102)
* Added samples smoke tests

Added implementation into azure pipeline

Update copyrights

Added python path

Update common part

modify windows.yml

* resolve conflicts

* New redesign of samples_smoke_tests including adding CMakeLists in order to install smoke tests on system, getting of smoke_tests_data archive

* fixed windows.yaml

* added checking path of samples

* changed path to INSTALL_DIR

* Fixed windows.yml file

* changed IE_APP_PATH

* Updated readme file for smoke tests

* Disable run tests on linux static build

* skipped test with related issue 71298

* change after review

Co-authored-by: Maxim Gordeev <maxim.gordeev@intel.com>
2021-11-23 17:09:11 +03:00
Ilya Lavrenov
7c10998cf8 Removed pointer from ov::get_openvino_version (#8687)
* Removed pointer from ov::get_openvino_version

* Fixed issues with version print

* Clang-format
2021-11-22 15:21:09 +03:00
Ilya Lavrenov
c37521d097 Move fast run scripts for samples to samples folder (#8725) 2021-11-22 12:52:05 +03:00
Ilya Lavrenov
a1e95f4d69 Deprecated SOPointer (#8711)
* Removed SOPointer

* Updates

* Fixed tests, compilation
2021-11-20 18:13:10 +03:00
Ilya Lavrenov
1ca9592d75 Removed WA for CPU interpolate NHWC (#8686) 2021-11-19 11:38:06 +03:00
Ilya Lavrenov
71c28b3f9f Removed samples installation (#8675) 2021-11-18 18:42:45 +03:00
Ilya Churaev
f639e4e902 Moved inference_engine samples to cpp folder (#8615)
* Moved inference_engine samples to cpp folder

* Fixed documentations links

* Fixed installation

* Fixed scripts

* Fixed cmake script

* Try to fix install

* Fixed samples

* Some fix
2021-11-18 10:08:20 +03:00
Karol Trzciński
76994c6ec9 samples: Print verbose error messages to stderr (#7795)
* samples: Print verbose error messages to stderr

Printing error root cause is crucial for efficient debugging.
Moreover `stderr` may have different formatting in comparison
to `stdout` which improves readability.

Signed-off-by: Karol Trzcinski <karolx.trzcinski@intel.com>

* fix code style pre-commit check

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>
2021-11-10 11:42:52 +03:00
Dmitry Pigasin
763859d082 [IE Samples] Enable a custom build output folder (#8263)
* Enable a custom build output folder

* Add the option to set a sample install directory

* Fix code style issues

* Exclude samples_bin from default build

* Make an installation directory dependent on a build type

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>

* Remove old msbuild version support

* Use cmake to build samples

* Use targets to install samples

* Use targets to install dlls: `format_reader` and `opencv_c_wrapper`

* Add `LIBRARY DESTINATION` for `format_reader` and `opencv_c_wrapper` install commands

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>
2021-11-08 14:15:30 +03:00
Ilya Lavrenov
f3ca0a99a8 Fixed some coverity issues (#8334) 2021-11-02 03:04:37 +03:00
Anastasia Kuporosova
3251e0cbc3 [Samples] Move C samples to the new samples directory (#8021)
* [Samples] Move C samples to the new samples directory

* fix samples

* [Samples] Move C samples to the new samples directory

* fix samples

* code reivew inspired fixes

* rename folder to lower case

* move ENABLE_SAMPLES cond level up, fix readmes

* fix ref in doc

* fix install path

* fix install of samples to tests

Co-authored-by: Vladimir Dudnik <vladimir.dudnik@intel.com>
2021-11-01 12:59:09 +03:00
Dmitry Pigasin
054a2f8d9c [IE Python Speech Sample] Add context windows feature (#7801)
* Add `context_window_left` feature

* Add a check of positive context window args

* Add `context_window_right` feature
2021-10-28 00:17:34 +03:00
Anastasia Kuporosova
799be77e33 [Python API] Move samples and docs to the new directory (#7851)
* [Python API] Move samples and docs to the new directory

* move samples to the new directory

* try to fix build and pychecks

* fix links

* fix pychecks

* fix cmake

* fix cpack installation

* Update inference-engine/ie_bridges/python/CMakeLists.txt

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2021-10-14 14:49:35 +03:00