Community
cancel
Showing results for 
Search instead for 
Did you mean: 
83 Views

How to download pre-trained models to local machine Mac

I am using OpenVINO toolkit and have successfully installed it into my Mac. But I have experienced problems downloading the pre-trained models onto my local machine. After initializing setupvars.sh, when I tried to download the pre-trained models I receive an error message "no module name request". Please I need some help resolving the problem.

 

Thanks 

Godspower 

0 Kudos
2 Replies
83 Views

I am having problem downloading pre-trained models to local machine. I keep receiving the error message 'no module name requested'

 

Last login: Wed Jan 15 05:41:03 on ttys000

[setupvars.sh] OpenVINO environment initialized

godspoweronyenanu@godspowers-mbp ~ % sudo -i

Password:

godspowers-mbp:~ root# source /opt/intel/openvino/bin/setupvars.sh

[setupvars.sh] OpenVINO environment initialized

godspowers-mbp:~ root# cd /opt/intel/openvino/deployment_tools/open_model_zoo/tools/downloader

godspowers-mbp:downloader root# ls

README.md downloader.py requirements-pytorch.in

__pycache__ info_dumper.py requirements.in

common.py license.txt

converter.py pytorch_to_onnx.py

godspowers-mbp:downloader root# gedit ./.bash_profile

        

godspowers-mbp:downloader root# 

godspowers-mbp:downloader root# gedit ./.zshrc

 

godspowers-mbp:downloader root# 

godspowers-mbp:downloader root# gedit ./downloader.py

godspowers-mbp:downloader root# sudo ./downloader.py --name human-pose-estimation-0001 -o /Users/godspoweronyenanu/openvino_models 

Traceback (most recent call last):

  File "./downloader.py", line 22, in <module>

    import requests

ModuleNotFoundError: No module named 'requests'

godspowers-mbp:downloader root# 

 

David_C_Intel
Employee
83 Views

Hello Godspower,

Thank you for reaching out.

In order to run the model downloader tool successfully, please check this guide. After installing prerequisites, go to the model_downloader tool folder located in: <OpenVINO_INSTALL_DIR>/deployment_tools/tools/model_downloader.

There you can find the binary file and run the following commands:

1. Displays help menu:

python3 downloader.py --help

2. Install the pre-trained model called "MODEL_NAME" in the OUTPUT_DIRECTORY specified:

python3 downloader.py --name MODEL_NAME -o OUTPUT_DIRECTORY

If you have more questions, let us know.

 

Best regards,

David

Reply