Commit Graph

31 Commits

Author SHA1 Message Date
Liubov Talamanova
be6a3c34f1 [POT] Throw exception for IRv10 (#10345)
* [POT] Throw exception for IRv10

* Update reference models

* Updated AC framework name from dldt to openvino
2022-02-17 10:54:08 +03:00
Nikita Malinin
c8ce93290e [POT] Sync mode only for gna_sample (#10355)
* Sync mode only for gna_sample

* Disable test
2022-02-16 11:00:13 +03:00
Indira Salyahova
f1557c06de [POT] Fix inference sample in fbc when get list prediction (#10159)
* fix: inference sample in fbc when get list prediction

* update reference metrics
2022-02-15 14:42:40 +03:00
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
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
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
Milana Shhanukova
aa518282b0 updat gna configs (#9920) 2022-01-27 08:50:15 +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
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
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
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
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
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
Liubov Batanina
2d0ae6028a [POT] Added quantization inside subgraphs (#8530)
* [POT] Support subgraphs

* Add support for inplace statistics

* Fixed cascade models

* Fixed bug

* Fixed import

* Fix name

* Add test

* Fix comments

* Replace test model

* Replace test model

* Add recursively flag

* Fix pylint

* Updated AA node names

* Fix adding results to node

* Disable subgraph quantization

* Disable recursion search in graph

* Skip test with subgraphs quantization
2021-11-26 12:42:33 +03:00
Nikita Malinin
516d510045 [POT] Added typecast while nodes updating & creation (#8621)
* Update type casting while update

* Fix Pylint

* Update precision setting for FQ values

* Update FQ values precision setting

* Fix scales dump

* Update reference

* Another reference update
2021-11-23 17:13:04 +03:00
Indira Salyahova
29a3f56003 [POT] Add pattern se blocks (#8425)
* fix(patterns): add pattern se_block

* update reference
2021-11-15 12:53:07 +03:00
Tagir Rakipov
ac0582c2d9 [POT] get_num_levels function (#8393)
* added function for calculating the number of discret levels in the input tensors and tests for this function

* added function for calculating the number of discret levels in the input tensors and tests for this function

* fixed pylint issues

* changed the function for delta estimation from mean to min

* added empty delta array processing in get_num_levels func and tests for it
2021-11-10 15:27:09 +03:00
Nikita Malinin
8cb7824c21 [POT] Update for the Results quantization & tests (#8324)
* Update rule for multi-results quantization

(cherry picked from commit d94fe7d758)

* Update tests with lstm cases

(cherry picked from commit 16fe385117)

* Update lstm reference

* Fix pylint issue
2021-11-08 16:28:54 +03:00
Nikita Malinin
ce9a968030 [POT] Update tests with new data (#8209)
* Update POT tests with new data

* Revert package changes

* Remove mobinenet-ssd from POT tests

* Update benchmark.py IE Python API usage
2021-10-27 12:40:19 +03:00
Alexander Kozlov
bbeec714aa Moved Post-training Optimization Tool to open-source (#7940)
* Moved POT to opensource

* Added OMZ as a submodule

* Exclude OMZ from ShellCheck
2021-10-15 16:35:35 +03:00