Unable to Locate Model Optimizer. This error occurs when the converter.py script cannot locate the OpenVINO™ Model Optimizer in the current environment.
In legacy OpenVINO installations (installer-based), converter.py locates Model Optimizer (mo.py) using environment variables set by setupvars.sh. In this case, initialize the environment before running the conversion:
source <OPENVINO_INSTALL_DIR>/bin/setupvars.sh
Alternatively, explicitly specify the path to Model Optimizer when running converter.py:
python3 converter.py --name aclnet --mo <OPENVINO_INSTALL_DIR>/model_optimizer/mo.py
In current OpenVINO releases installed via Python packages, Model Optimizer is integrated into the OpenVINO tooling and may not exist as a standalone mo.py file. In such cases:
There are two methods to set the path to the Model Optimizer.
The converter.py script is part of the Open Model Zoo automation tools and relies on Model Optimizer availability. Legacy documentation may reference mo.py explicitly, while current OpenVINO releases integrate model conversion functionality differently depending on installation method.