* OV new package structure * Fixes * More fixes * Fixed code style in ngraph tests * Fixes * Paths to setupvars inside demo scripts * Fixed demo_security_barrier_camera.sh * Added setupvars.sh to old location as well * Fixed path * Fixed MO install path in .co * Fixed install of public headers * Fixed frontends installation * Updated DM config files * Keep opencv in the root * Improvements * Fixes for demo scripts * Added path to TBB * Fix for MO unit-tests * Fixed tests on Windows * Reverted arch * Removed arch * Reverted arch back: second attemp * System type * Fix for Windows * Resolve merge conflicts * Fixed path * Path for Windows * Added debug for Windows * Added requirements_dev.txt to install * Fixed wheel's setup.py * Fixed lin build * Fixes after merge * Fix 2 * Fixes * Frontends path * Fixed deployment manager * Fixed Windows * Added cldnn unit tests installation * Install samples * Fix samples * Fix path for samples * Proper path * Try to fix MO hardcodes * samples binary location * MO print * Added install for libopencv_c_wrapper.so * Added library destination * Fixed install rule for samples * Updated demo scripts readme.md * Samples * Keep source permissions for Python samples * Fixed python * Updated path to fast run scripts * Fixed C samples tests * Removed debug output * Small fixes * Try to unify prefix
1.4 KiB
1.4 KiB
Converting a Model to Intermediate Representation (IR)
Use the mo.py script from the <INSTALL_DIR>/tools/model_optimizer directory to run the Model Optimizer and convert the model to the Intermediate Representation (IR):
python3 mo.py --input_model INPUT_MODEL --output_dir <OUTPUT_MODEL_DIR>
You need to have have write permissions for an output directory.
Note
: Some models require using additional arguments to specify conversion parameters, such as
--input_shape,--scale,--scale_values,--mean_values,--mean_file. To learn about when you need to use these parameters, refer to Converting a Model Using General Conversion Parameters.
To adjust the conversion process, you may use general parameters defined in the Converting a Model Using General Conversion Parameters and Framework-specific parameters for: