Commit Graph
623 Commits
Author SHA1 Message Date
Maciej Smyk c1a9152d1c default_quantization_flow (#14848) 2023-01-20 14:24:27 +04:00
Anastasiia Pnevskaia 993686b266 convert_model() slow conversion time fix (#14666)
* Removed input_model from meta data dictionary.

* Added test.

* Changed check for more general case.

* Test fixed.

* Temporarily added debug print.

* Fixed test.

* Code corrections.

* Small correction.

* Added type check.

* Added comments, small corrections.

* Refactored MO convert_model() to have single parse_args().

* Small correction.

* Fixed PyTorch converting.

* Small correction.

* Code refactoring, added tests.
2023-01-20 14:01:53 +04:00
Sebastian Golebiewski ffdf31fba8 DOCS: Update doxygen version (#15210)
* Update build_doc.yml

* fixing references

* fix refs

* fix branch.hpp
2023-01-20 13:22:30 +04:00
Ilya Naumov 32fce5cb40 Fix Python benchmark_app crash in case of binary input and batch > 1 (#15114) 2023-01-18 16:16:22 +04:00
Ilya LavrenovandYuan Xu c4eeecfec5 Remove myriad plugin (#15131)
* Removed Intel MYRIAD plugin

* Removed Intel MYIAD from CI files

* Removed Intel MYRIAD from cmake folder

* Removed MYRIAD, HDDL from samples

* Removed MYRIAD, HDDL from scripts folder

* Removed MYRIAD from bindings folder (C and Python API)

* Removed MYRIAD tests

* Removed MYRIAD from tests folder

* Removed MYRIAD from tools folder

* Removed HDDL (VAD), MYRIAD (NSC2) from documentation

* Fixed build for AUTO unit tests

* Fixed clang code style

* Fixed comments and issues

* removed MYRIAD from AUTO tests

* Disabled MULTI tests in CI

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/OV_Runtime_UG/deployment/local-distribution.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-18 15:19:44 +04:00
Pavel Esir 1d5fa360d4 fix check for data nodes in emitter.py (#14802)
* fix checking if there are data nodes for operations with several outputs

* added unit-test

* added ports explicitly, removed redundant lambda

* typo in port
2023-01-17 16:11:57 +04:00
daf9f0fbbf Update vpu.json (#14612)
Update POT tool configs to use unified scales for concat by default.

Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
Co-authored-by: Liubov Talamanova <liubov.talamanova@intel.com>
2023-01-17 12:26:36 +04:00
Ilya Churaev 0c9abf43a9 Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Przemyslaw Wysocki cfac7e4ee4 [PyOV] Update requirements for Python 3.11 (#15072)
* Update reqs

* update license whitelist

* Revert gast

* Bump distro package
2023-01-13 14:49:55 +04:00
Alexander Kozlov ded9156b98 Added ignored pattern for Stable Diffusion Unet (#14925) 2023-01-13 12:51:27 +04:00
Pavel EsirandRoman Kazantsev 9e3b52eee0 remove deprecated cli arguments from MO (#14937)
* removed deprecated cli arguments from MO

* removed deprecated options from docs

* Update tools/legacy/benchmark_app/README.md

* removed ConcatOptimization.py, removed deprecated args from unit-tests, renamed tensorflow_use_custom_operations_config -> transformations_config; replaced using or cmd_params.data_type -> cmd_params.compress_to_fp16

* added comment why we set internal 'data_type' always to 'FP32' after introducing 'compress_to_fp16'

* removed openvino_docs_MO_DG_prepare_model_Model_Optimization_Techniques from MO_DevGuide

* returned back --data_type argument

* leftovers from recovering

* returned back to package_BOM.txt; fixed NHWC by default for TF

* recovered --disable_nhwc_to_nchw to MO args

* reverted removing --tensorflow_use_custom_operations_config

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-12 21:12:56 +00:00
Liubov Talamanova b8d51a9e1b [POT] Add transformer block pattern (#15044) 2023-01-12 15:37:21 +04:00
f4ff1cbdf3 [BENCHMARK_APP] Align pc reports, revert format print to previous, excel friendly (#14644)
* [Python] Align pc output in Python benchmark, update sorted output to new headers, print floats with 6-digit precision, fix date format printing to excel-friendly

* [PYTHON/C++] Change precision of raports and pc counters report, simplify code

* [C++] Align C++ benchamrk_app report to Python's by setting the precision value to 3

* [C++] Fix CsvDumper precision

* [C++/PYTHON] Align pcand pcsort outputs, merge C++ printSort methods into one

* Update samples/cpp/common/utils/include/samples/common.hpp

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* Update samples/cpp/common/utils/include/samples/common.hpp

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
2023-01-11 12:38:37 +04:00
Roman KazantsevandIlya Lavrenov 35ed485d82 [MO] Activate pylint checker in CI (#15012)
* Fixed mo workflow

* Update pylint config with import os

* Update .github/workflows/mo.yml

* Install extras for pylint checker

* Fix pylint reported errors

* Add torch to the environment

* Add torch into whitelist

* Ignore torch

* Localize torch code

* Fix syntax error

* Remove MO unit-test from Pylint flow

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-11 08:07:57 +04:00
Roman Kazantsev 87d777c192 [MO][Install] Clean up setup (#15011)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-10 00:13:15 +04:00
Roman Kazantsev 80f0ffbb49 [Tools][MO] Clean up requirements for default installation (#14992)
* [Tools][MO] Clean up requirements for default installation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update azure config files with extras

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-09 15:05:37 +04:00
Alexander Kozlov 893da35826 [POT]: Requirements clean up (#14630)
* Cleaned up requirements in POT

* Fixed issue

* Removed pandas usage from POT

* Update setup.py

* Removed the upperbound for numpy in the case of Python < 3.11

* Removed numpy logic
2023-01-09 09:44:09 +00:00
Zlobin VladimirandIlya Lavrenov 6c8f8df518 uint32->uint64 for RedHat gflags 2.1 failing at runtime (#14724) (#14978)
* uint32->uint64 for RedHat gflags 2.1 failing at runtime

* tools/legacy/benchmark_app: uint32->uint64 for RedHat gflags 2.1 failing at runtime

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-01-06 17:57:36 +00:00
Maxim Vafin 51fb4fd2e3 Fix ResultRename transformation to preserve output order (#14956)
* Fix ResultRename transformation to preserve output order

* Apply review feedback
2023-01-06 17:48:13 +04:00
Liubov TalamanovaandAlexander Kozlov ddd4f050c7 [POT] Fix precommit tests (#14972)
Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
2023-01-06 13:44:54 +00:00
Zlobin Vladimir 7fab95fef2 Relax OpenCV dependency (#14968)
Close https://github.com/openvinotoolkit/openvino/issues/14875
2023-01-06 14:42:43 +03:00
Tomasz Dołbniak 13d01d969b [BENCHMARK_APP] Help message cleanup (#14786) 2023-01-05 14:21:09 +01:00
Sebastian Golebiewski 3017c8d123 DOCS: Fixing broken links in documentation. (#14935) 2023-01-05 11:25:03 +04:00
Karol Blaszczak f31ebd4947 Release doc updates_port (#14784) 2023-01-04 11:12:11 +00:00
Liubov TalamanovaandAlexander Kozlov 39ff705a3e [POT] Update CI branch (#14916)
Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
2023-01-03 17:26:36 +00:00
Ilya Lavrenov 0e544e44a1 Renamed requirements.in file (#14863) 2022-12-30 18:00:36 +04:00
Roman Kazantsev 0be53a66d2 [MO][TF FE] Top-up TensorFlow Version in requirements files (#14842)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-28 16:31:25 +04:00
Liubov TalamanovaandAlexander Kozlov 6dd86506cd Remove openpyxl dependency (#14764)
Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
2022-12-26 14:24:55 +00:00
Piotr Krzemiński f9796ee06a [BENCHMARK_APP] Add warning if performance mode is not set to max on Windows (#14616)
* [C++] Display a warning if Power Mode is not 'Max Performance' - rebase from master

* [C++] Prevent std::max from colliding with windows.h max macro

* [PYTHON/C++] Update README docs to reflect possible inaccuracies from optimization settings

* [C++] Cleanup windows optimizations
2022-12-23 06:37:57 +01:00
Pavel Esir a7b3ae6a9d [MO] tmp IR cleanup if serialization or fem.load_by_framework fails (#14712)
* cleanup tmp IR files after unexpected failures

* separated catching during tmp serialize and fe.load

* updated file path specification

* moved base MO arguments into utils

* removed redundant 'except' blocks

* shortened specifying MO args

* calling unit-tests from subprocess; joined 2 try/except block into a single one

* changed postfix so that test is run without duplications only once
2022-12-22 22:35:13 +03:00
Roman Kazantsev 0b2f3347f6 [Tools] Support NumPy 1.24 (#14728)
* [Tools] Avoid use of NumPy deprecated types

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert "[Tools] Avoid use of NumPy deprecated types"

This reverts commit 21ffc167d1.

* Move to 1.24 Numpy

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-19 23:51:34 -08:00
Liubov Talamanova 67f467b2f3 [POT] Updated Simplified mode documentation (#14545)
* [POT] Added image generation doc for Simplified mode

* Fix comments

* Remove version
2022-12-19 13:26:35 +04:00
Zlobin VladimirandAndrei Kochin 787ba3de4f replace benchmark_app imean and iscale parameters (#14621)
* replace benchmark_app imean and iscale parameters

Tickets 80777 and 80900

* Warn about difference with imean and iscale, note that in help

* Clang format

* Clang format

* mean->scale

* Keep mean scale empty if not set

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-12-19 09:27:39 +04:00
Andrei Kochin 1a4117b855 [MO] remove deprecated mean_file option (#14137)
Signed-off-by: andrei.kochin <andrei.kochin@intel.com>

Signed-off-by: andrei.kochin <andrei.kochin@intel.com>
2022-12-17 15:23:54 +04:00
Maxim VafinandRoman Kazantsev fce4641a25 Preserve input constant in Squeeze and Unsqueeze shape infer (#14432)
* Preserve input constant when Squeeze and Unsqueeze shape infer is sone in MO IR Reader

* Fix bom test

* Add tests

* Fix value

* Fix test

* Apply suggestions from code review

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-12-16 15:08:28 +04:00
Ilya Naumov a0ce891915 benchmark_app python: fix incorrect -i argument parsing for wavernn-rnn input names (#14349)
* benchmark_app python: fix incorrect -i argument parsing for wavernn-rnn input names

* fix for Windows paths
2022-12-15 19:20:14 +03:00
Maxim Vafin 7df9031411 Support Dilated convolution in dynamic case (#14615)
* Add Mod evaluate method

* Fix mo transformation for dynamic case

* Fix build
2022-12-15 14:52:15 +00:00
Alexander Kozlov bc685ac8a0 [Documentation]: Added description for NNCF PTQ (#14437) 2022-12-15 16:10:40 +03:00
Maciej Smyk ece0341377 DOCS: Quantization doc rewrites - port to master (#14374) 2022-12-15 13:55:06 +01:00
befbae28ca Add warning of benchmark_app about disabling auto batching (#13907)
* merge master

* reset original format

* remove AUTO

* Update tools/benchmark_tool/openvino/tools/benchmark/main.py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>

* delete condition

* delete condition in py

Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-12-15 10:51:57 +08:00
Karol Blaszczak 2f95de3239 DOCS-menu-recreate-structure-step5 (#14636)
port https://github.com/openvinotoolkit/openvino/pull/14637
Shift to separating the Workflow section, including moving Run and Optimize inference inside Deploy locally

change several article and menu titles
minor additional restructuring
minor content tweaks
remove optimization introduction (may be brought back in parts later)
* several link fixes
* additional link fixes
2022-12-14 18:33:19 +01:00
Roman KazantsevandMaxim Vafin 79e34ccbb3 [TF FE] Add info messages in Model Optimizer (#14586)
* [TF FE] Add info messages in Model Optimizer and the preliminary user documentation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add test model with future operation

* Update docs/MO_DG/prepare_model/TensorFlow_Frontend.md

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Apply code-review feedback: Recover use of dict

* Fix the rest of feedback

* Remove User documentation for TF FE

* Correct tests to provide required arguments

* Handle argv without framework argument in deduce_framework function

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-12-13 11:01:24 +00:00
Artyom AnokhovandIlya Lavrenov 4705f54c68 [Deployment Manager Configs] Updated with actual 2022.3.0 structure (#14322)
* Deployment Manager Configs: Updated with actual 2022.3.0 structure

* Deployment Manager cfgs: filled with symlinks for macos and linux. Fixed naming for Python

* Update tools/deployment_manager/configs/linux.json

* Update tools/deployment_manager/configs/darwin.json

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-12-12 22:10:16 +04:00
e9e05e508a [ONNX FE] Support value freezing without specifying type (#14481)
* [ONNX FE] Support value freezing without specifying type

Implement gete_element_type method for ONNX InputModel.
Implement tests with freezing integer input and float models

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Return only element type for model inputs and add ONNX FE tests

* Rename variable in the test

* Add syntax mark

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-12-11 14:58:55 +04:00
Anastasiia PnevskaiaandEkaterina Aidova 60bb9e7b7c Fixed type check in convert_model(). (#14472)
* Fixed passing Path to convert_model().

* Update tools/mo/openvino/tools/mo/convert_impl.py

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

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2022-12-08 12:51:11 +04:00
Anastasiia Pnevskaia 20bd062d5e Fix of double printing of errors in MO (#14224)
* Fix of double printing of errors.

* Added log test.

* Small correction.

* Test fix.
2022-12-07 18:27:16 +04:00
Liubov Talamanova 7ceb8bfce0 [POT] Update test references (#14318)
* Update references

* Update GNA references

* Rebase branch
2022-12-07 14:05:03 +04:00
Roman Kazantsev d3fa858fcc [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault (#14450)
* [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault

Also, this PR contains reorganization of python unit tests for TF FE that
covers conversion and inference of different models in pbtxt.
This mini-infrastructure will be used in the future for TF FE support.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert debug info

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-07 12:13:10 +04:00
Nikita MalininandAlexander Kozlov 4171f258b2 [POT] Update GNA3-3.5 configs & passes (#14429)
* Update gna3.json

* Update GNA-related transformations

* Added all GNA devices into one list

Co-authored-by: Alexander Kozlov <alexander.kozlov@intel.com>
2022-12-06 16:25:29 +00:00
Maxim Vafin 3b86f12c37 Revert "Fix squeeze shape infer to not change axis value (#13975)" (#14430)
This reverts commit 580c0c6b90.
2022-12-06 17:32:56 +04:00