frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Error importing Caffe , when typing the command 'make examples' . Using intel neural stick 2

Hi ,
I'm using the intel neural stick 2 along with raspberry pi with a camera attached for object detection.
I install and clone the ncsdk v. 1 and run make install and it installs fine.

When i run the command make examples I get the following error

What should i do to remove this error, please help !

`make examples
./install-opencv.sh

OpenCV already setup for python


make examples starting.
(cd examples; make)
make[1]: Entering directory '/home/pi/workspace/ncsdk/examples'
make -C apps/. 
make[2]: Entering directory '/home/pi/workspace/ncsdk/examples/apps'
make -C hello_ncs_py/. 
make[3]: Entering directory '/home/pi/workspace/ncsdk/examples/apps/hello_ncs_py'
nothing to make, use 'make run' to run.
make[3]: Leaving directory '/home/pi/workspace/ncsdk/examples/apps/hello_ncs_py'
make -C multistick_cpp/. 
make[3]: Entering directory '/home/pi/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/pi/workspace/ncsdk/examples/caffe/GoogLeNet'

making prereqs
(cd ../../data/ilsvrc12; make)
make[5]: Entering directory '/home/pi/workspace/ncsdk/examples/data/ilsvrc12'
--2019-03-22 09:00:32--  https://raw.githubusercontent.com/BVLC/caffe/master/data/ilsvrc12/get_ilsvrc_aux.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 587 [text/plain]
Saving to: ‘get_ilsvrc_aux.sh’

get_ilsvrc_aux.sh                       100%[=============================================================================>]     587  --.-KB/s    in 0s      

2019-03-22 09:00:32 (4.28 MB/s) - ‘get_ilsvrc_aux.sh’ saved [587/587]

Downloading...
--2019-03-22 09:00:33--  http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)... 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17858008 (17M) [application/octet-stream]
Saving to: ‘caffe_ilsvrc12.tar.gz’

caffe_ilsvrc12.tar.gz                   100%[=============================================================================>]  17.03M  5.12MB/s    in 4.0s    

2019-03-22 09:00:37 (4.26 MB/s) - ‘caffe_ilsvrc12.tar.gz’ saved [17858008/17858008]

Unzipping...
Done.
--2019-03-22 09:00:41--  https://raw.githubusercontent.com/BVLC/caffe/master/python/caffe/imagenet/ilsvrc_2012_mean.npy
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572944 (1.5M) [application/octet-stream]
Saving to: ‘ilsvrc_2012_mean.npy’

ilsvrc_2012_mean.npy                    100%[=============================================================================>]   1.50M  3.93MB/s    in 0.4s    

2019-03-22 09:00:41 (3.93 MB/s) - ‘ilsvrc_2012_mean.npy’ saved [1572944/1572944]

make[5]: Leaving directory '/home/pi/workspace/ncsdk/examples/data/ilsvrc12'

making prototxt
Downloading Prototxt file
--2019-03-22 09:00:42--  https://raw.githubusercontent.com/BVLC/caffe/master/models/bvlc_googlenet/deploy.prototxt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35862 (35K) [text/plain]
Saving to: ‘./deploy.prototxt’

deploy.prototxt                         100%[=============================================================================>]  35.02K  --.-KB/s    in 0.02s   

2019-03-22 09:00:42 (1.61 MB/s) - ‘./deploy.prototxt’ saved [35862/35862]

Adding input shape to prototxt file.

making caffemodel
Downloading caffemodel file
--2019-03-22 09:00:42--  http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel
Resolving dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)... 169.229.222.251
Connecting to dl.caffe.berkeleyvision.org (dl.caffe.berkeleyvision.org)|169.229.222.251|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53533754 (51M) [application/octet-stream]
Saving to: ‘./bvlc_googlenet.caffemodel’

bvlc_googlenet.caffemodel               100%[=============================================================================>]  51.05M  5.47MB/s    in 21s     

2019-03-22 09:01:03 (2.48 MB/s) - ‘./bvlc_googlenet.caffemodel’ saved [53533754/53533754]


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

Error importing caffe
make[4]: Leaving directory '/home/pi/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/pi/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/pi/workspace/ncsdk/examples/apps'
Makefile:12: recipe for target 'apps/.' failed
make[1]: *** [apps/.] Error 2
make[1]: Leaving directory '/home/pi/workspace/ncsdk/examples'
Makefile:57: recipe for target 'examples' failed
make: *** [examples] Error 2

Comments

  • 1 Comment sorted by Votes Date Added
  • Hi @Osama1995 ,

    Thanks for reaching out. Unfortunately the NCSDK does not have support for the NCS2, to be able to use the NCS2 you may need to download and install the OpenVINO toolkit. You can find all the relevant information and links to the getting-started guide on this post here. Please let me know if you have any additional questions.

    Regards,
    @Luis_at_Intel

This discussion has been closed.