openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.34k stars 2.29k forks source link

Unexpected Exception happened: No module named 'generator' #82

Closed rainfld closed 5 years ago

rainfld commented 5 years ago

I encountered a problem when using model-optimizer to convert the alexnet caffe model to the format which can be taken by inference-engine.

Any suggestions are appreciated.

Command I use: python3.5 mo.py --framework caffe --input_model ../../open_model_zoo/model_downloader/classification/alexnet/caffe/alexnet.caffemodel

OUTPUT: Model Optimizer arguments: Common parameters:

[ ERROR ] ---------------- END OF BUG REPORT -------------- [ ERROR ] -------------------------------------------------

sevhabert commented 5 years ago

Install the following Python packages: coverage, m2r, pyenchant, pylint, Sphinx, safety, test-generator . In the current version, we are missing one requirement file that enables the unit tests.

rainfld commented 5 years ago

That works for me. Thanks!

portgasray commented 4 years ago

python3 -m pip install coverage m2r pyenchant pylint Sphinx safety test-generator

xingshuojing commented 4 years ago

thanks

esmirno commented 4 years ago

python3 -m pip install coverage m2r pyenchant pylint Sphinx safety test-generator

please note that pyenchant for x64 platform cannot be easily installed, havechecked on my side that pyenchant and pylint can be skipped in order to fix issue.

psyhtest commented 4 years ago

In my case, only the test-generator was truly needed for successfully converting SSD-MobileNet for MLPerf Inference:

$ python3.6 -m pip show coverage m2r pyenchant pylint Sphinx safety test-generator
WARNING: Package(s) not found: Sphinx, coverage, m2r, pyenchant, pylint, safety
Name: test-generator
Version: 0.1.2
Summary: Generator is a helper for generating test methods for nose while still using unittest
Home-page: https://github.com/kevinastone/generator
Author: Kevin Stone
Author-email: kevinastone@gmail.com
License: ISCL
Location: /usr/local/lib/python3.6/dist-packages
Requires: six
Required-by: