openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

Can't import 'model_zoo' package after PR 3907 #3929

Closed jesusrmenchaca closed 7 months ago

jesusrmenchaca commented 8 months ago

Following the instructions from https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/common/python/model_zoo/model_api:

git clone https://github.com/openvinotoolkit/open_model_zoo.git
cd open_model_zoo
git checkout 2024.0.0
pip install demos/common/python

And trying import of any of the model_api models:

...
    25 from model_zoo.model_api.models.open_pose import OpenPoseDecoder
...

I get the error:

Traceback (most recent call last):
 ...
  File "/workspace/sscape/detector.py", line 25, in <module>
    from model_zoo.model_api.models.open_pose import OpenPoseDecoder
ModuleNotFoundError: No module named 'model_zoo'

I also see no model_zoo package in /usr/local/lib/python3.10/dist-packages

In PR 3907 The file 'demos/common/python/openvino/model_zoo/__init__.py' was removed and the file 'demos/common/python/model_zoo/__init__.py' was not added.