I started to use Movidius on ubuntu ver. 17.10,
The error that I get is on: skimage.io.imshow( IMAGE_PATH )
Dispite adding thIs line:
according to the not of "AshwinVijayakumar edited November 2017 "
amirm@t460s:~/~workspace/ncappzoo/apps/image-classifier$ make run
\making ilsvrc12
(cd ../../data/ilsvrc12; make;)
make[1]: Entering directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
make[1]: Leaving directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
making gendernet
(cd ../../caffe/GenderNet; make compile;)
make[1]: Entering directory '/home/amirm/~workspace/ncappzoo/caffe/GenderNet'
make[2]: Entering directory '/home/amirm/~workspace/ncappzoo/data/age_gender'
make[2]: Leaving directory '/home/amirm/~workspace/ncappzoo/data/age_gender'
test -f deploy.prototxt || (wget -P .
https://raw.githubusercontent.com/GilLevi/AgeGenderDeepLearning/master/gender_net_definitions/deploy.prototxt; awk 'NR <2 {print}' < deploy.prototxt > temp; cat input_shape.prototxt >> temp; awk 'NR > 6 {print}' < deploy.prototxt >> temp; mv temp deploy.prototxt)
test -f gender_net.caffemodel || wget -P . -N
https://github.com/GilLevi/AgeGenderDeepLearning/raw/master/models/gender_net.caffemodel
mvNCCompile -w gender_net.caffemodel -s 12 deploy.prototxt
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
/usr/local/lib/python3.6/dist-packages/skimage/__init__.py:60: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/bin/ncsdk/Controllers/
FileIO.py:52: UserWarning: You are using a large type. Consider reducing your data sizes for best performance
"Consider reducing your data sizes for best performance\033[0m")
make[1]: Leaving directory '/home/amirm/~workspace/ncappzoo/caffe/GenderNet'
making googlenet
(cd ../../caffe/GoogLeNet; make compile;)
make[1]: Entering directory '/home/amirm/~workspace/ncappzoo/caffe/GoogLeNet'
making prereqs
(cd ../../data/ilsvrc12; make)
make[2]: Entering directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
make[2]: Leaving directory '/home/amirm/~workspace/ncappzoo/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
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
/usr/local/lib/python3.6/dist-packages/skimage/__init__.py:60: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Layer inception_3b/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_3b/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_4a/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_4a/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_4b/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_4b/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_4c/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_4c/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_4d/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_4d/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_4e/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_4e/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_5a/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_5a/pool_proj forced to im2col_v2, because its output is used in concat
Layer inception_5b/1x1 forced to im2col_v2, because its output is used in concat
Layer inception_5b/pool_proj forced to im2col_v2, because its output is used in concat
/usr/local/bin/ncsdk/Controllers/
FileIO.py:52: UserWarning: You are using a large type. Consider reducing your data sizes for best performance
"Consider reducing your data sizes for best performance\033[0m")
make[1]: Leaving directory '/home/amirm/~workspace/ncappzoo/caffe/GoogLeNet'
making squeezenet
(cd ../../caffe/SqueezeNet; make compile;)
make[1]: Entering directory '/home/amirm/~workspace/ncappzoo/caffe/SqueezeNet'
making prereqs
(cd ../../data/ilsvrc12; make)
make[2]: Entering directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
make[2]: Leaving directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
LICENSE file already exists
making prototxt
Prototxt file already exists
making caffemodel
caffemodel file already exists
making compile
mvNCCompile -w squeezenet_v1.0.caffemodel -s 12 deploy.prototxt
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
/usr/local/lib/python3.6/dist-packages/skimage/__init__.py:60: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/bin/ncsdk/Controllers/
FileIO.py:52: UserWarning: You are using a large type. Consider reducing your data sizes for best performance
"Consider reducing your data sizes for best performance\033[0m")
make[1]: Leaving directory '/home/amirm/~workspace/ncappzoo/caffe/SqueezeNet'
making alexet
(cd ../../caffe/AlexNet; make compile;)
make[1]: Entering directory '/home/amirm/~workspace/ncappzoo/caffe/AlexNet'
making prereqs
(cd ../../data/ilsvrc12; make)
make[2]: Entering directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
make[2]: Leaving directory '/home/amirm/~workspace/ncappzoo/data/ilsvrc12'
chmod +x
run.py
making prototxt
Prototxt file already exists
making caffemodel
caffemodel file already exists
making compile
mvNCCompile -w bvlc_alexnet.caffemodel -s 12 deploy.prototxt
mvNCCompile v02.00, Copyright @ Movidius Ltd 2016
/usr/local/lib/python3.6/dist-packages/skimage/__init__.py:60: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/bin/ncsdk/Controllers/
FileIO.py:52: UserWarning: You are using a large type. Consider reducing your data sizes for best performance
"Consider reducing your data sizes for best performance\033[0m")
make[1]: Leaving directory '/home/amirm/~workspace/ncappzoo/caffe/AlexNet'
Running
image-classifier.py
python3
image-classifier.py
/usr/local/lib/python3.6/dist-packages/skimage/__init__.py:60: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/lib/python3.6/dist-packages/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
------- predictions --------
prediction04 0 is n02123159 tiger cat
prediction04 1 is n02123045 tabby, tabby cat
prediction04 2 is n02124075 Egyptian cat
prediction04 3 is n02127052 lynx, catamount
Traceback (most recent call last):
File "
image-classifier.py", line 98, in <module>
skimage.io.imshow( IMAGE_PATH )
File "/usr/local/lib/python3.6/dist-packages/skimage/io/_io.py", line 156, in imshow
return call_plugin('imshow', arr, plugin=plugin, **plugin_args)
File "/usr/local/lib/python3.6/dist-packages/skimage/io/manage_plugins.py", line 198, in call_plugin
raise RuntimeError(msg % kind)
RuntimeError: No suitable plugin registered for imshow.
You may load I/O plugins with the `skimage.io.use_plugin` command. A list of all available plugins are shown in the `
skimage.io` docstring.
Makefile:32: recipe for target 'run' failed
make: *** [run] Error 1
amirm@t460s:~/~workspace/ncappzoo/apps/image-classifier$