Article ID: 000094536 Content Type: Error Messages Last Reviewed: 06/14/2023

Encountered: “[Errno 2] No Such File or Directory” When Converting Model Using Model Optimizer for OpenVINO Toolkit

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Troubleshooting steps to convert Intel's or Public pre-trained models using Model Optimizer.

Description
  • Downloaded the yolo-v4-tf model using following command:

    omz_downloader --name yolo-v4-tf  -o ~/Downloads/models

  • Ran the following command to convert the model:

    omz_converter --name yolo-v4-tf -o ~/Downloads/models

  • Encountered the following error:

    /data/venv/openvino_2022.3.0/bin/python3.8: can't open file '/home/user/public/yolo-v4-tf/keras-YOLOv3-model-set/tools/model_converter/convert.py': [Errno 2] No such file or directory

    FAILED:

    yolo-v4-tf

Resolution

Ensure the downloaded model files are located in the current working directory.

Use the -d flag for omz_converter to provide the downloaded model directory if it's not located in the current working directory.

Related Products

This article applies to 1 products