Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5762 Discussions

ModuleNotFoundError: No module named 'models'

ColemanJeffrey
Beginner
482 Views

By Running the # Object Detection Python\* Demo after moving complete folder from initial location (/opt/intel/openvino_2021/deployment_tools/inference_engine/demos/python_demos/object_detection_demo/object_detection_demo.py) => and running the script everything works perfect 

 

By Running the # Object Detection Python\* Demo after moving complete folder from initial location (/opt/intel/openvino_2021/deployment_tools/inference_engine/demos/python_demos/object_detection_demo/object_detection_demo.py) on other location (/home/mircea/projects/object_detection_demo/object_detection_demo.py)  and running the script I'm getting  this error: 

import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
File "/home/mircea/projects/object_detection_demo/object_detection_demo.py", line 32, in <module>
from models import *
ModuleNotFoundError: No module named 'models'

0 Kudos
3 Replies
Syamimi_Intel
Moderator
449 Views

Hi Coleman Jeffrey,

I've duplicated the same method as you and I got the same error ModuleNotFoundError: No module named 'models'.

To solve this error, you need to copy the 'common' folder inside directory <INSTALL_DIR>\Intel\openvino_2021\deployment_tools\open_model_zoo\demos together with the object_detection_pythons. Then, you can try to rerun the demo.

 

 

Regards,

Syamimi

 

Syamimi_Intel
Moderator
411 Views

Hi Coleman Jeffrey,

This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.



Regards,

Syamimi


ColemanJeffrey
Beginner
407 Views

I don't know, I'll find it.

Thank you! 

Reply