Files
openvino/tools/pot/configs/data_free_mode_template.json
T
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

35 lines
2.0 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"model": {
"model_name": "model_name", // Model name
"model": "<MODEL_PATH>", // Path to model (.xml format)
"weights": "<PATH_TO_WEIGHTS>" // Path to weights (.bin format)
},
"engine": {
"type": "data_free", // Engine type​
"generate_data": "True", // (Optional) If True, generate synthetic data and store to `data_source`​
// Otherwise, the dataset from `--data-source` will be used'​
"layout": "NCHW", // (Optional) Layout of input data. Supported: ["NCHW", "NHWC", "CHW", "CWH"]​
"shape": "[None, None, None, None]", // (Optional) if model has dynamic shapes, input shapes must be provided​
"data_type": "image", // (Optional) You can specify the type of data to be generated.​
// Currently only `image` is supported.​
// It is planned to add 'text` and 'audio' cases​
"data_source": "PATH_TO_SOURCE" // (Optional) You can specify path to directory​
// where synthetic dataset is located or will be generated and saved​
},
"compression": {
"algorithms": [
{
"name": "DefaultQuantization", // Optimization algorithm name
"params": {
"preset": "performance", // Preset [performance, mixed, accuracy] which control the quantization
// mode (symmetric, mixed (weights symmetric and activations asymmetric)
// and fully asymmetric respectively)
"stat_subset_size": 300 // Size of subset to calculate activations statistics that can be used
// for quantization parameters calculation
}
}
]
}
}