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!

Problem in make examples in NCSDk-2

making compile
mvNCCompile -w bvlc_googlenet.caffemodel -s 12 deploy.prototxt
Traceback (most recent call last):
File "/usr/local/bin/mvNCCompile", line 35, in
from Controllers.Scheduler import load_myriad_config, load_network
File "/usr/local/bin/ncsdk/Controllers/Scheduler.py", line 24, in
from Controllers.Optimizer import postParsingOptimizations, selectImplementations, streamEverythingSchedule, fixTensors, eliminateNoOps
File "/usr/local/bin/ncsdk/Controllers/Optimizer.py", line 25, in
from Controllers.Parsers.Parser.Conversion import Conversion
File "/usr/local/bin/ncsdk/Controllers/Parsers/init.py", line 3, in
from .Caffe import CaffeParser
File "/usr/local/bin/ncsdk/Controllers/Parsers/Caffe.py", line 30, in
import caffe
File "/opt/movidius/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
File "/opt/movidius/caffe/python/caffe/pycaffe.py", line 15, in
import caffe.io
File "/opt/movidius/caffe/python/caffe/io.py", line 2, in
import skimage.io
File "/usr/local/lib/python3.5/dist-packages/skimage/init.py", line 158, in
from .util.dtype import *
File "/usr/local/lib/python3.5/dist-packages/skimage/util/init.py", line 7, in
from .arraycrop import crop
File "/usr/local/lib/python3.5/dist-packages/skimage/util/arraycrop.py", line 8, in
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths'
Makefile:80: recipe for target 'compile' failed
make[4]: *** [compile] Error 1
make[4]: Leaving directory '/home/narveeryadav/ncsdk-2.05.00.02/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/narveeryadav/ncsdk-2.05.00.02/examples/apps/multistick_cpp'
Makefile:13: recipe for target 'multistick_cpp/.' failed
make[2]: *** [multistick_cpp/.] Error 2
make[2]: Leaving directory '/home/narveeryadav/ncsdk-2.05.00.02/examples/apps'
Makefile:12: recipe for target 'apps/.' failed
make[1]: *** [apps/.] Error 2
make[1]: Leaving directory '/home/narveeryadav/ncsdk-2.05.00.02/examples'
Makefile:57: recipe for target 'examples' failed
make: *** [examples] Error 2

Comments

  • 3 Comments sorted by Votes Date Added
  • Hi @Narveer_241

    It looks like you are using on older version of the NCSDK v2. Could you try with version 2.10.01.01?

    git clone -b ncsdk2 https://github.com/movidius/ncsdk.git
    cd <ncs dirrectory>
    make install
    make examples

    Regards,
    Jesus

  • Hi @Jesus_at_Intel ,

    I'm facing the same problem. I followed the instruction as given by you. The only thing I had to change was the if/fi condition in the install.sh that checks for AVX support (lines 42-45 in install.sh) because if was failing with the error "Intel Advanced Vector Extensions support required but not detected". I referred to this post https://ncsforum.movidius.com/discussion/comment/4607/#Comment_4607 on this forum where someone else had this issue and I commented out those lines and it installed successfully.

    But when I go to "make examples" it throws me the same error as given by OP. Specifically, it's giving the "recipe for target X failed" where X is:
    1) googlenet
    2) apps/.
    3) multistick_cpp/.
    3) examples

    (Sorry I'm on a different machine else I would've copy-pasted the error).

    Can you please recommend the path forward. Since it does not give an pre-requisites (e.g. googlenet, TF, Caffee) that need to be installed, I did not install these.

    Thanks

  • Hi @anshulvj

    It's hard to pinpoint what the issue may be without the full error/log. Could you please share the whole error message and the NCSDK version you are installing?

    Give the following a try as I had a similar issue with the make examples.

    Uninstall the current SDK, run the following commands in the NCSDK directory
    make clean && make uninstall

    Remove the NCSDK directory and pull from github again.

    sudo rm -r <NCSDK Dir>
    git clone -b ncsdk2 https://github.com/movidius/ncsdk

    Remove any numpy packages & verify

    pip3 uninstall numpy
    pip3 list | grep numpy

    Install and make examples, run the following commands in the new NCSDK directory.

    make install
    make examples

    Regards,
    Jesus

This discussion has been closed.