- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recently installed OpenVIVO and the demo applications work well.
I get an error when trying to optimize the SSD_GoogleNetV2.caffemodel that is provided by Intel.
Steps followed:
1. Activate environment:
source /opt/intel/computer_vision_sdk_2018.1.249/deployment_tools/model_optimizer/install_prerequisites/../venv/bin/activate
2. Run model optimizer:
python3 mo.py --input_model ~/local/examples/intel_model/SSD_GoogleNetV2.caffemodel --input_proto ~/local/examples/intel_model/SSD_GoogleNetV2_Deploy.prototxt
The following error message is generated:
[ ERROR ] -------------------------------------------------
[ ERROR ] ----------------- INTERNAL ERROR ----------------
[ ERROR ] Unexpected exception happened.
[ ERROR ] Please contact Model Optimizer developers and forward the following information:
[ ERROR ] No module named 'networkx'
[ ERROR ] Traceback (most recent call last):
File "/opt/intel/computer_vision_sdk_2018.1.249/deployment_tools/model_optimizer/mo/main.py", line 222, in main
return driver(argv)
File "/opt/intel/computer_vision_sdk_2018.1.249/deployment_tools/model_optimizer/mo/main.py", line 98, in driver
ret_code = check_requirements(framework=argv.framework)
File "/opt/intel/computer_vision_sdk_2018.1.249/deployment_tools/model_optimizer/mo/utils/versions_checker.py", line 126, in check_requirements
exec("import {}".format(modules[name] if name in modules else name))
File "<string>", line 1, in <module>
ImportError: No module named 'networkx'
[ ERROR ] ---------------- END OF BUG REPORT --------------
[ ERROR ] -------------------------------------------------
I've confirmed that networkx is installed.
Thanks,
Dinesh
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Nair Dinesh,
I'm not sure you did install prerequisites for caffemodel conversion but,
Can you try this?
1. Model optimizer prerequisites installation for caffe model $ sudo apt-get -y install python3-pip virtualenv cmake libpng12-dev libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libgstreamer0.10-dev libswscale-dev libavcodec-dev libavformat-dev python3-yaml $ cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer/install_prerequisites $ sudo ./install_prerequisites.sh $ cd /opt/intel/computer_vision_sdk/deployment_tools/model_optimizer $ source /opt/intel/computer_vision_sdk/bin/setupvars.sh $ source ./venv/bin/activate 2. Model conversion // IR files, FP32 version, will be created in ~/Desktop/IR/FP32 $ python3 ./mo.py --input_model ~/local/examples/intel_model/SSD_GoogleNetV2.caffemodel --output_dir ~/Desktop/IR
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page