Commit Graph

75 Commits

Author SHA1 Message Date
Nikita Malinin
0c855ee8b2 [POT] Renaming NXModel (#10168)
* NXModel -> CompressedModel renaming

* Update references & remove Dicts

* Pylint fixes
2022-02-08 14:07:12 +03:00
Indira Salyahova
f17c26506f Update utils.py (#10186) 2022-02-08 13:51:29 +03:00
Indira Salyahova
da02951d67 [POT] Fix get layout from model (#10018)
* fix: layout pot

* layout

* fix: layout

* pylint

* add logger

* Update image_loader.py

* pylint

* repeat layout in data free

* resolve conflicts

* sample

* resolve comments
2022-02-04 11:46:54 +03:00
Liubov Talamanova
b4206fe0a1 Supported Simplified mode without provided config (#10049)
* Support Simplified mode without provided config

* Change data-source default location
2022-02-03 10:56:25 +03:00
Eugeny Volosenkov
e7d8284e4d fix pot (#9980) 2022-02-03 10:47:31 +03:00
Nikita Malinin
04f5b233f2 [POT] Introduce saturation_fix option (#9940)
* Introduce statiration_fix option

* Pylint fix

* Update namings and pipelilne

* Change node_input target
2022-02-02 13:46:20 +03:00
Anastasia Kuporosova
70f65bdb74 [Python API] Rename configuration API + update tests/tools (#9927)
* [Python API] Rename configuration API + update tests/tools

* keep old api for compatibility

* add deprecation warnings

* apply comments to query sample

* remove convert to pyobject

* use Any instead of string

* update tests

* update set_property

* fix sample

* update test + try-except for pot

* add docstrings

* fix codestyle for pot
2022-02-02 11:28:41 +03:00
Liubov Talamanova
ca09ddd123 [POT] Implement DataFreeEngine (#9484)
* [POT] Implement DataFreeEngine

* Add CLI

* Updated CLI

* Moved logic to SynteticImageLoader

* Fix bug with draw modes

* Fix bug in DataFreeEngine

* Fix multiprocessing

* Fix pylint

* Add DataFreeEngine test

* Download models

* Fill background

* Fix test

* Fix args

* Support config option for DataFree mode

* Minor fixes

* Add data_free config

* Add more test cases

* Enable RCNN models quantization
2022-02-01 15:15:20 +03:00
Pavel Finashov
ab3207a81b POT: Fixed command line to convert models for Windows platform. (#10024)
* For testing purpose

* Fixed command line for windows: removed re-writing PYTHOPATH

* Changed command line for re-writing PYTHONPATH
2022-02-01 10:31:16 +03:00
Indira Salyahova
6145cb736e [POT] Update patterns with transpose (#9555)
* fix: update pot patterns with transpose

* add tests

* delete tests

* updatereference metrics tf model

* Update test_sanity.py
2022-01-31 14:30:28 +03:00
Nikolay Tyukaev
622027bee5 fix errors in documentation (#9384)
* add sphinx log parsing

* fix

* fix log

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* doxygen-xfail

* fixes

* fixes

* fixes

* fixe

* fixes

* fixes

* fix pot

* add pot check

* fixes

* fixes

* Fixed POT docs

* Fixed POT docs

* Fixes

* change heading markup

* fixes

Co-authored-by: azaytsev <andrey.zaytsev@intel.com>
2022-01-27 19:39:49 +03:00
Milana Shhanukova
aa518282b0 updat gna configs (#9920) 2022-01-27 08:50:15 +03:00
Indira Salyahova
17c394c8fe [POT] Update patterns (#9786)
* Update special_patterns.py

* add pattern in docs
2022-01-26 14:59:51 +03:00
Indira Salyahova
cf49cd6ce8 fix: check batch bias shape equal one in fbc (#9907) 2022-01-26 14:37:43 +03:00
Nikita Malinin
1524ff898a Update IEEngine with annotation for async (#9909) 2022-01-26 11:13:01 +03:00
Milana Shhanukova
d81d7f15a1 do not change shape for scalars (#9751) 2022-01-25 19:37:34 +03:00
Indira Salyahova
0ecbe50bf5 [POT] Optimize quantization scheme for SPR/ATS (#9564)
* feat: delete fq from branch

* delete transformation

* pylint

* delete gpu_ats

* add tests

* pylint
2022-01-25 17:37:45 +03:00
Nikita Malinin
6927547f9c [POT] Update IEEngine with raw output processing (#9777)
* Update IEEngine with raw output processing

* Update ieengine output layers naming

* Pylint fixes

* Update replace with the regex method

* utils.py newline

* Pylint fix
2022-01-25 17:37:12 +03:00
Liubov Talamanova
b738983c1f [POT] Change version.txt location (#9715)
* Change POT version.txt location

* Update version

* Added version.txt to wheel

* Fix install requires
2022-01-24 11:22:12 +03:00
Nikita Malinin
5fe10299ab [POT] Small references update (#9831)
* Update golds and tolerance

* Disable mtcnn at sanity
2022-01-23 12:27:30 +03:00
Nikita Malinin
ed634bd18e [POT] Tests & References update (#9694)
* Enable disabled tests

* Update references

* Update references

* Update passes.py for FP16 graph

* Update precision for nightly mobilenet

* Update references

* Update refs and disable model

* Update nightly refs

* Update nightly

* Revert mbv2 sanity gold
2022-01-20 16:23:00 +03:00
Alexey Suhov
a79830cb55 Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
Indira Salyahova
0082c7a286 [POT] set shape in FBC if undefined dimension in model (#9532)
* fix: set shape in fbc if undefined dimension in model

* Update tools/pot/openvino/tools/pot/algorithms/quantization/fast_bias_correction/algorithm.py

Co-authored-by: Liubov Talamanova  <piccione-mail@yandex.ru>

* Apply suggestions from code review

Co-authored-by: Liubov Talamanova  <piccione-mail@yandex.ru>

* update shape in bc id dynamic shape

Co-authored-by: Liubov Talamanova  <piccione-mail@yandex.ru>
2022-01-18 17:48:30 +03:00
Anastasia Kuporosova
8f12b72f46 [Python API] Rename offline_transformations in the new api (#9634)
* [Python API] Rename offline_transformations in the new api

* remove comments

* one more place to rename

* fix mo building

* fix after merge

* fix for pot import
2022-01-17 11:57:00 +03:00
Maksim Proshin
ec0dd6051a [POT] Minor correction about OpenSource (#9625)
* Update README.md

* Update README.md
2022-01-13 20:10:34 +03:00
Liubov Talamanova
cde61f2411 [POT] Fix bug with git (#9604)
* [POT] Fix bug with git

* Add UNKNOWN_VERSION constant
2022-01-13 19:56:18 +03:00
Nikita Malinin
0166cb8f5c [POT] New IE API integration (#9004)
* Initial commit for integration

* Apply latest updates

* Update ie_engine for multi input models

* Update reference, pylint fixed, method replacement

* Change for AC 2.0 support

* Update aac_engine with raw data processing

* Update for pylint

* Update model utils

* Disable pylint check

* Update ac_engine with the processing

* Using tensor names instead of friendly names

* Tensor names for all statistics

* BiasCorrection with tensor names

* Remove debug info usage

* Fix for sequential stats

* Fix for the scalar stats

* Update with comments

* Update tests & builder

* Update tests

(cherry picked from commit 5022ce4a4fac230ac11db68f14cd58971fe9b2a2)

* Executable_model -> compiled_model

(cherry picked from commit 0d447ff4917f764df76d9c0c0068277e5e090f3b)

* Update with PartialShapes for reshape

* Update async mode

* Update refs

* Update BC Parameter dtype

* Update simplified with inferqueue

* Disable ssd512 nightly

* BC renaming

* Revert OMZ commit

* Update references

* Update BC algo with the parameter selection

* Update AC config filter

* Pylint fixes

* Update async data

* Update pylint for ie_engine

* Update ie_engine

* Revert refs changes

(cherry picked from commit 4d3530216b3d79c33c3437a7dfcc1140693320c8)

* Update OMZ submodule
2022-01-13 19:21:37 +03:00
Indira Salyahova
c597bc8928 [POT] requirements install telemetry library (#9605)
* Update telemetry.py

* Update setup.py

* Update test_telemetry.py

* Update telemetry.py
2022-01-13 03:30:58 +03:00
Nikita Malinin
cf344a3b73 Change rename_node for fq (#9599) 2022-01-12 12:44:58 +00:00
Anastasia Kuporosova
8fe5484645 [Python API] Remove offline transformations from old python api (#9121)
* [Python API] Remove offline transformations from old python api

* try to fix import error

* try to fix pylint

* try to fix pylint2

* Use new api in graph_utils

* Fix pylint

* Try to fix pylint

* Use serialize from pass manager

* try to skip tests

* try to use new ir

Co-authored-by: AlexeyLebedev1 <alexey.lebedev@intel.com>
2022-01-10 17:32:55 +03:00
Anton Chetverikov
adce58d126 [MO] Add check for Python version to NetworkX dependency (#9226)
* Add check for python version to networkx dependency

* Update condition, task CVS-72806

* Update check to not break old Python versions support

* Update POT NetworkX dependency

* Allign requirements list format with setuptools documentation
2021-12-29 16:26:40 +03:00
Nikita Malinin
010877d06c [POT] Update dtype for BC Parameters (#9468) 2021-12-29 15:11:56 +03:00
Milana Shhanukova
3cef513495 [POT] Check type for layers' renaming (#9276)
* change in installation

* develop mode

* change in install guide

* style change

* change declare

* add type checking

* revert changes

* rename directly in nx_model

* Update README_dev.md
2021-12-28 18:08:36 +03:00
Liubov Talamanova
bc5da8d522 [POT] Handle exception (#9405) 2021-12-24 12:34:23 +03:00
Ilya Lavrenov
4eea535e78 Includes in frontends (#9378)
* Used full paths in public includes

* Fixed install of ONNX include
2021-12-23 11:37:06 +03:00
Liubov Talamanova
7e85ada7e4 Handle exception with version (#9376) 2021-12-22 16:45:08 +00:00
Milana Shhanukova
eb90272331 [POT] Remove gitlab mention (#9079)
* change in installation

* develop mode

* change in install guide

* style change

* change declare
2021-12-22 13:45:37 +00:00
Liubov Talamanova
e20a97acbc Support old import system in POT (#9331)
* Support old import system in POT

* Fixed comments

* Update imports in samples
2021-12-22 14:55:48 +03:00
Indira Salyahova
0100060cd9 Update README.md (#9337) 2021-12-21 11:16:41 +00:00
Milana Shhanukova
0262d05a77 [POT] Ports in input nodes in BC (#8643)
* Make ports visible in names in BC algo

* mistypes

* updates in regards to lstm

* lstm update

* delete code dublication

* mistype in get_node_data_type
2021-12-21 10:58:20 +03:00
Liubov Talamanova
a847e1f7fa [POT] Added printing IE, MO and POT versions during POT launch (#8679)
* Add POT version print

* Changed version in setup.py

* Add version to setup.py

* Update imports
2021-12-20 13:09:22 +03:00
Liubov Talamanova
4564867a44 Update POT tests for OMZ location in openvino/thirdparty (#9171)
* Move OMZ to thirdparty/open_model_zoo

* Improve diagnostic of issues

* Update path to OMZ in the Python wheel setup.py

* Update POT tests for OMZ location in openvino/thirdparty

* fix mo path

Co-authored-by: azhogov <alexander.zhogov@intel.com>
2021-12-20 09:10:39 +03:00
Liubov Talamanova
ad10edbd2e Set fullname instead of name in fq_configuration (#9281) 2021-12-17 18:46:57 +03:00
Indira Salyahova
0644aaa947 [POT] Add new special metrics in aa (#9251)
* Update utils.py

* Update utils.py
2021-12-17 12:05:27 +03:00
Ekaterina Aidova
012e513f75 update POT submodule (#8740)
* update POT submodule

* update tests
2021-12-16 19:05:36 +03:00
Indira Salyahova
ea3f34c351 Temporary revert test layout (#9242)
* Update test_image_loading.py

* Update test_image_loading.py
2021-12-16 08:51:24 +03:00
Indira Salyahova
2f07b98251 [POT] Support layout in pot (#9060)
* support layout pot

* pylint
2021-12-15 09:12:54 +00:00
Nikita Malinin
950fc508ad [POT] Update tests references (#9187)
* Update test utils with the new MO

* Update references

* Refs update

* Disabled few tests & update refs

* Change model data_type

* Added TODOs
2021-12-14 12:15:49 +03:00
Milana Shhanukova
38600949fa [POT] Remove tpe algo (#8929)
* remove tpe

* delete unused object_dump.py

* delete tpe reference

* tpe removal in optimization

* deleted benchmark

* docs changes

* tunable quantization changes

* mistype in sentence
2021-12-08 11:43:39 +03:00
Pavel Esir
980904c9ec [MO] Align MO namespaces (#7708)
* Moved and merged mo/ and extensions/ into openvino/tools/mo

* edited imports

* edited docs to use mo script from entry_point

* edited MO transformations list loading and setup.py

* changed full path -> 'mo' entry point in docs (leftovers)

* corrected package_BOM

* updated resolving --transformation_config in cli_parser.py

* pkgutil-style __init__.py, added summarize_graph into entry points

* updated DOCs for the new --transformations_config

* fix select

* updated install instructions, fixed setup.py for windows and python_version < 3.8

* fixed typo in requirements.txt

* resolved conflicts

* removed creating custom __init__.py from setup.py

* corrected folder with caffe proto

* corrected loading user defined extensions

* fix openvino.tools.mo import in serialize.py

* corrected layer tests for new namespace

* fix in get_testdata.py

* moved model-optimizer into tools/

* renamed import in POT

* corrected mo.yml

* correct CMakeLists.txt for the newest tools/mo

* corrected find_ie_version.py

* docs and openvino-dev setup.py update for the newest tools/mo

* miscellaneous leftovers and fixes

* corrected CI files, pybind11_add_module in CMakeLists.txt and use of tools/mo path instead of tools/model_optimizer

* add_subdirectory pybind11 for tools/mo

* POT path fix

* updated setupvars.sh setupvars.bat

* Revert "updated setupvars.sh setupvars.bat"

This reverts commit c011142340.

* removed model-optimizer env variables from setupvars

* updated CMakeLists.txt to pack MO properly with tests component

* corrected left imports, corrected loading requirements for layer tests

* mo doc typo correction

* minor corrections in docs; removed summarize_graph from entry_points

* get_started_windows.md, MonoDepth_how_to.md corrections, mo path corrections
2021-12-08 08:53:53 +03:00