Я пытался настроить библиотеку movidius, созданную Intel, но я застреваю, когда пытаюсь импортировать пакет mvnc.
Чтобы настроить mvnc, я следовал инструкциям здесь: Обнаружение объектов в режиме реального времени с помощью movidius
и когда приходит время проверить, работает ли установка, я запускаю
сделать примеры
, которая выдает эту ошибку всякий раз, когда я ее запускаю.
Traceback (most recent call last):
File "/usr/local/bin/mvNCCompile", line 25, in <module>
from Models.Blob import *
File "/usr/local/bin/ncsdk/Models/Blob.py", line 19, in <module>
from Controllers.MiscIO import *
File "/usr/local/bin/ncsdk/Controllers/MiscIO.py", line 35, in <module>
from mvnc import mvncapi
Так что мне интересно, как можно заставить python распознавать модуль mvnc, чтобы я мог импортировать его в любой мой код. Спасибо за вашу помощь!
Я использую Ubuntu 18.04.1 LTS на виртуальной машине на компьютере с Windows 10
Вот полный вывод командной строки:
./install-opencv.sh
Installing opencv python for non-Raspbian
[sudo] password for odyssey:
Requirement already satisfied: opencv-python in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: numpy>=1.11.3 in /usr/lib/python3/dist-packages (from opencv-python)
Requirement already satisfied: opencv-contrib-python in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: numpy>=1.11.3 in /usr/lib/python3/dist-packages (from opencv-contrib-python)
make examples starting.
(cd examples; make)
make[1]: Entering directory '/home/odyssey/workspace/ncsdk/examples'
make -C apps/.
make[2]: Entering directory '/home/odyssey/workspace/ncsdk/examples/apps'
make -C hello_ncs_py/.
make[3]: Entering directory '/home/odyssey/workspace/ncsdk/examples/apps/hello_ncs_py'
nothing to make, use 'make run' to run.
make[3]: Leaving directory '/home/odyssey/workspace/ncsdk/examples/apps/hello_ncs_py'
make -C multistick_cpp/.
make[3]: Entering directory '/home/odyssey/workspace/ncsdk/examples/apps/multistick_cpp'
making googlenet
(cd ../../caffe/GoogLeNet; make compile; cd ../../apps/multistick_cpp; cp ../../caffe/GoogLeNet/graph ./googlenet.graph;)
make[4]: Entering directory '/home/odyssey/workspace/ncsdk/examples/caffe/GoogLeNet'
making prereqs
(cd ../../data/ilsvrc12; make)
make[5]: Entering directory '/home/odyssey/workspace/ncsdk/examples/data/ilsvrc12'
make[5]: Leaving directory '/home/odyssey/workspace/ncsdk/examples/data/ilsvrc12'
making prototxt
Prototxt file already exists
making caffemodel
caffemodel file already exists
making compile
mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt
Traceback (most recent call last):
File "/usr/local/bin/mvNCCompile", line 25, in <module>
from Models.Blob import *
File "/usr/local/bin/ncsdk/Models/Blob.py", line 19, in <module>
from Controllers.MiscIO import *
File "/usr/local/bin/ncsdk/Controllers/MiscIO.py", line 35, in <module>
from mvnc import mvncapi
ModuleNotFoundError: No module named 'mvnc'
Makefile:80: recipe for target 'compile' failed
make[4]: *** [compile] Error 1
make[4]: Leaving directory '/home/odyssey/workspace/ncsdk/examples/caffe/GoogLeNet'
cp: cannot stat '../../caffe/GoogLeNet/graph': No such file or directory
Makefile:9: recipe for target 'googlenet' failed
make[3]: *** [googlenet] Error 1
make[3]: Leaving directory '/home/odyssey/workspace/ncsdk/examples/apps/multistick_cpp'
Makefile:12: recipe for target 'multistick_cpp/.' failed
make[2]: *** [multistick_cpp/.] Error 2
make[2]: Leaving directory '/home/odyssey/workspace/ncsdk/examples/apps'
Makefile:12: recipe for target 'apps/.' failed
make[1]: *** [apps/.] Error 2
make[1]: Leaving directory '/home/odyssey/workspace/ncsdk/examples'
Makefile:57: recipe for target 'examples' failed
make: *** [examples] Error 2