From 67f467b2f3f9a5106023ac4c754736b8e0792477 Mon Sep 17 00:00:00 2001 From: Liubov Talamanova Date: Mon, 19 Dec 2022 09:26:35 +0000 Subject: [PATCH] [POT] Updated Simplified mode documentation (#14545) * [POT] Added image generation doc for Simplified mode * Fix comments * Remove version --- tools/pot/docs/SimplifiedMode.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/tools/pot/docs/SimplifiedMode.md b/tools/pot/docs/SimplifiedMode.md index 19e62040c73..bd17d689af6 100644 --- a/tools/pot/docs/SimplifiedMode.md +++ b/tools/pot/docs/SimplifiedMode.md @@ -8,7 +8,30 @@ Simplified mode is designed to make data preparation for the model optimization ## Usage -To use the Simplified mode, prepare the data and place it in a separate folder. No other files should be present in this folder. There are two options to run POT in the Simplified mode: +To use the Simplified mode, prepare the data and place it in a separate folder. No other files should be present in this folder. + +To apply optimization when there is only a model and no data is available. It is possible to generate a synthetic dataset using Dataset Management Framework (Datumaro) available on [GitHub](https://github.com/openvinotoolkit/datumaro). Currently, data generation is available only for Computer Vision models, it can take time in some cases. + +Install Datumaro: + +``` bash +pip install datumaro +``` +Create a synthetic dataset with elements of the specified type and shape, and save it to the provided directory. + +Usage: + +``` bash +datum generate [-h] -o OUTPUT_DIR -k COUNT --shape SHAPE [SHAPE ...] + [-t {image}] [--overwrite] [--model-dir MODEL_PATH] +``` +Example of generating 300 images with height = 224 and width = 256 and saving them in the `./dataset` directory. +```bash +datum generate -o ./dataset -k 300 --shape 224 256 +``` +After that, `OUTPUT_DIR` can be provided to `--data-source` CLI option or to `data_source` config parameter. + +There are two options to run POT in the Simplified mode: * Using command-line options only. Here is an example for 8-bit quantization: