构建movidius神经计算棒的示例时出现意外问题(ncsdk)

时间:2017-12-26 15:44:53

标签: linux ncsdk

最近我买了Movidius Neural Compute Stick,我开始在网站上提供教程。 安装无任何问题。但是,尽管遵循了一些确切的步骤,但在运行制作示例时,我仍然遇到同样的错误:

mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016

Failed to include caffe_pb2, things might go wrong!
Traceback (most recent call last):
File "/usr/local/bin/mvNCCompile", line 118, in 
create_graph(args.network, args.inputnode, args.outputnode, args.outfile, args.nshaves, args.inputsize, args.weights)
File "/usr/local/bin/mvNCCompile", line 100, in create_graph
from Controllers.CaffeParser import parse_caffe
File "/usr/local/bin/ncsdk/Controllers/CaffeParser.py", line 29, in 
import caffe
File "/opt/movidius/caffe/python/caffe/init.py", line 4, in 
from .proto.caffe_pb2 import TRAIN, TEST
File "/opt/movidius/caffe/python/caffe/proto/caffe_pb2.py", line 17, in 
serialized_pb='\n\x0b\x63\x61\x66\x66\x65.proto\x12\x05\x63(...most likely not important here...)
File "/usr/local/lib/python3.5/dist-packages/google/protobuf/descriptor.py", line 829, in new
return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: expected bytes, str found
Makefile:80: recipe for target 'compile' failed
make[4]: *** [compile] Error 1
make[4]: Leaving directory '/home/sebastian/Development/movidius_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/sebastian/Development/movidius_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/sebastian/Development/movidius_workspace/ncsdk/examples/apps'
Makefile:12: recipe for target 'apps/.' failed
make[1]: *** [apps/.] Error 2
make[1]: Leaving directory '/home/sebastian/Development/movidius_workspace/ncsdk/examples'
Makefile:51: recipe for target 'examples' failed
make: *** [examples] Error 2

我的配置如下:

sebastian@linux:~$ python --version
Python 2.7.12
sebastian@linux:~$ echo $PYTHONPATH
:/opt/movidius/caffe/python
sebastian@linux:~$ lscpu | grep "Model name"
Model name: Intel(R) Celeron(R) CPU N2840 @ 2.16GHz
sebastian@linux:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

我很欣赏我需要做些什么才能成功构建示例。

1 个答案:

答案 0 :(得分:2)

我们在安装过程中没有发现任何问题。我们的配置如下:

movidius@osboxes:~$ python --version
  

Python 2.7.12

movidius@osboxes:~$ echo $PYTHONPATH
  

中:/ opt / movidius / CAFFE /蟒

movidius@osboxes:~$ lscpu | grep "Model name"
  

型号名称:Intel(R)Core(TM)i5-5300U CPU @ 2.30GHz

movidius@osboxes:~$ lsb_release -a
  

没有可用的LSB模块   经销商ID:Ubuntu
  描述:Ubuntu 16.04.3 LTS
  发布:16.04
  代号:xenial

是否可以运行make clean命令,然后使用make install重新安装,然后执行make examples

如果您仍然遇到任何问题,请参阅以下链接:

  1. https://developer.movidius.com/start

  2. https://movidius.github.io/ncsdk/install.html