Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
35 Views

demo_squeezenet_download_convert_run.sh: line 241: 5799 Segmentation fault

Had an error when running the demo code after installation. Can anyone help on finding what might be wrong? Thanks.

 

./demo_squeezenet_download_convert_run.sh -d MYRIAD


target = MYRIAD
./demo_squeezenet_download_convert_run.sh: line 54: [: too many arguments
target_precision = FP32
[setupvars.sh] OpenVINO environment initialized


###################################################

Downloading the Caffe model and the prototxt
Installing dependencies
Run sudo -E apt -y install build-essential python3-pip virtualenv cmake libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libswscale-dev libavcodec-dev libavformat-dev libgstreamer1.0-0 gstreamer1.0-plugins-base
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]        
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                 
Fetched 252 kB in 1s (191 kB/s)                               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
cmake is already the newest version (3.10.2-1ubuntu2).
libgtk2.0-dev is already the newest version (2.24.32-1ubuntu1).
virtualenv is already the newest version (15.1.0+ds-1.1).
gstreamer1.0-plugins-base is already the newest version (1.14.1-1ubuntu1~ubuntu18.04.2).
libcairo2-dev is already the newest version (1.15.10-2ubuntu0.1).
libglib2.0-dev is already the newest version (2.56.4-0ubuntu0.18.04.2).
libgstreamer1.0-0 is already the newest version (1.14.1-1~ubuntu18.04.2).
libpango1.0-dev is already the newest version (1.40.14-1ubuntu0.1).
libavcodec-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libavformat-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libswscale-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpng-dev is already the newest version (1.6.34-1ubuntu0.18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
The directory '/home/shan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/shan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3/dist-packages (from requests)
The directory '/home/shan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/shan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: networkx>=1.11 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 1))
Requirement already satisfied: numpy>=1.12.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 2))
Requirement already satisfied: protobuf==3.6.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))
Requirement already satisfied: test-generator==0.1.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 4))
Requirement already satisfied: defusedxml>=0.5.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 5))
Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=1.11->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 1))
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))

Models have been loaded previously. Skip loading model step.
Model path: /home/shan/openvino_models/models/FP32/classification/squeezenet/1.1/caffe/squeezenet1.1.prototxt


Target folder /home/shan/openvino_models/ir/FP32//classification/squeezenet/1.1/caffe already exists. Skipping IR generation  with Model Optimizer.If you want to convert a model again, remove the entire /home/shan/openvino_models/ir/FP32//classification/squeezenet/1.1/caffe folder. Then run the script again

###################################################

Build Inference Engine samples

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
-- Found InferenceEngine: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (Required is at least version "1.6")
-- Performing Test HAVE_CPUID_INFO
-- Performing Test HAVE_CPUID_INFO - Success
-- Host CPU features:
--   3DNOW not supported
--   3DNOWEXT not supported
--   ABM not supported
--   ADX supported
--   AES supported
--   AVX supported
--   AVX2 supported
--   AVX512CD not supported
--   AVX512F not supported
--   AVX512ER not supported
--   AVX512PF not supported
--   BMI1 supported
--   BMI2 supported
--   CLFSH supported
--   CMPXCHG16B supported
--   CX8 supported
--   ERMS supported
--   F16C supported
--   FMA supported
--   FSGSBASE supported
--   FXSR supported
--   HLE not supported
--   INVPCID supported
--   LAHF supported
--   LZCNT supported
--   MMX supported
--   MMXEXT not supported
--   MONITOR supported
--   MOVBE supported
--   MSR supported
--   OSXSAVE supported
--   PCLMULQDQ supported
--   POPCNT supported
--   PREFETCHWT1 not supported
--   RDRAND supported
--   RDSEED supported
--   RDTSCP supported
--   RTM not supported
--   SEP supported
--   SHA not supported
--   SSE supported
--   SSE2 supported
--   SSE3 supported
--   SSE4.1 supported
--   SSE4.2 supported
--   SSE4a not supported
--   SSSE3 supported
--   SYSCALL supported
--   TBM not supported
--   XOP not supported
--   XSAVE supported
-- TBB include: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/include
-- TBB Release lib: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/lib/libtbb.so
-- TBB Debug lib: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/lib/libtbb_debug.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shan/inference_engine_samples_build
[ 10%] Built target gflags_nothreads_static
[ 20%] Built target format_reader
[ 96%] Built target ie_cpu_extension
[100%] Built target classification_sample


###################################################

Run Inference Engine classification sample

Run ./classification_sample -d MYRIAD -i /opt/intel/openvino/deployment_tools/demo/car.png -m /home/shan/openvino_models/ir/FP32//classification/squeezenet/1.1/caffe/squeezenet1.1.xml

[ INFO ] InferenceEngine:
    API version ............ 1.6
    Build .................. custom_releases/2019/R1_ebce9728578ef3131f2f282b3fbc3232109c598e
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino/deployment_tools/demo/car.png
[ INFO ] Loading plugin

    API version ............ 1.6
    Build .................. 23224
    Description ....... myriadPlugin
[ INFO ] Loading network files:
    /home/shan/openvino_models/ir/FP32//classification/squeezenet/1.1/caffe/squeezenet1.1.xml
    /home/shan/openvino_models/ir/FP32//classification/squeezenet/1.1/caffe/squeezenet1.1.bin
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
E: [ncAPI] [    789032] ncDeviceOpen:799    Failed connection to device (1.3-ma2480) with error 5
./demo_squeezenet_download_convert_run.sh: line 241:  5799 Segmentation fault      (core dumped) ./classification_sample -d $target -i $target_image_path -m "${ir_dir}/${model_name}${model_version}.xml" ${sampleoptions}
Error on or near line 241; exiting with status 1

0 Kudos
4 Replies
Highlighted
Moderator
35 Views

Hi Shane,

Thank you for reaching out, I apologize for the trouble the NCS has caused. When you installed the OpenVINO toolkit, did you follow the Getting started Guide for the Neural Compute Stick? Did you configure the USB Driver by running ./install_NCS_udev_rules.sh and logged out?

Please try to connect the Neural Compute Stick to another USB port and check that the system detects the USB device. Run lsusb | grep 03e7, you should see the device id 03e7:2150 or 03e7:2485.

The error you are seeing right now is due to the device not being detected. However, there is a known bug that you will run into once the device is detected. Modify the demo_squeezenet_download_convert_run.sh script with the following changes.

Change Line #146 from: 

if [ "$target" = "MYRIAD" or "$target" = "HDDL" ]; then

to:

if [ "$target" = "MYRIAD" -o "$target" = "HDDL" ]; then

 

Regards,

Jesus

 

 

 

0 Kudos
Highlighted
Employee
35 Views

Dear chen, shane,

I just noticed something - are you using Ubuntu 18 ? Or Ubuntu 16.04 ? Because OpenVino currently has been tested only on Ubuntu 16.04, as this system requirements doc indicates. There are community members that have made OpenVino work on 18.04 tough, as the below forum link discusses:

https://software.intel.com/en-us/forums/computer-vision/topic/797939

Hope it helps. 

Thanks for using OpenVino !

Shubha

 

0 Kudos
Highlighted
Beginner
35 Views

Thanks Jesus.

I did install all the packages you mentioned. I tried the Lsusb command, and got exactly the same result as you suggested.

After I made the change to the demo_squeezenet_download_convert_run.sh, I got a slightly different result (still failed):

 

 

./demo_squeezenet_download_convert_run.sh -d MYRIAD
target = MYRIAD
target_precision = FP16
[setupvars.sh] OpenVINO environment initialized


###################################################

Downloading the Caffe model and the prototxt
Installing dependencies
Run sudo -E apt -y install build-essential python3-pip virtualenv cmake libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libswscale-dev libavcodec-dev libavformat-dev libgstreamer1.0-0 gstreamer1.0-plugins-base
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                                                          
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                               
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]        
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]       
Fetched 252 kB in 1s (213 kB/s)                                                                 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
40 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
cmake is already the newest version (3.10.2-1ubuntu2).
libgtk2.0-dev is already the newest version (2.24.32-1ubuntu1).
virtualenv is already the newest version (15.1.0+ds-1.1).
gstreamer1.0-plugins-base is already the newest version (1.14.1-1ubuntu1~ubuntu18.04.2).
libcairo2-dev is already the newest version (1.15.10-2ubuntu0.1).
libglib2.0-dev is already the newest version (2.56.4-0ubuntu0.18.04.2).
libgstreamer1.0-0 is already the newest version (1.14.1-1~ubuntu18.04.2).
libpango1.0-dev is already the newest version (1.40.14-1ubuntu0.1).
libavcodec-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libavformat-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
libswscale-dev is already the newest version (7:3.4.6-0ubuntu0.18.04.1).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-47 linux-headers-4.15.0-47-generic linux-image-4.15.0-47-generic linux-modules-4.15.0-47-generic
  linux-modules-extra-4.15.0-47-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpng-dev is already the newest version (1.6.34-1ubuntu0.18.04.2).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-47 linux-headers-4.15.0-47-generic linux-image-4.15.0-47-generic linux-modules-4.15.0-47-generic
  linux-modules-extra-4.15.0-47-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
The directory '/home/shan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/shan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python3/dist-packages (from requests)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/lib/python3/dist-packages (from requests)
The directory '/home/shan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/shan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: networkx>=1.11 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 1))
Requirement already satisfied: numpy>=1.12.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 2))
Requirement already satisfied: protobuf==3.6.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))
Requirement already satisfied: test-generator==0.1.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 4))
Requirement already satisfied: defusedxml>=0.5.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 5))
Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=1.11->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 1))
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino/deployment_tools/demo/../model_optimizer/requirements_caffe.txt (line 3))

Run /opt/intel/openvino_2019.1.133/deployment_tools/tools/model_downloader/downloader.py --name squeezenet1.1 --output_dir /home/shan/openvino_models/models/FP16


###############|| Downloading topologies ||###############

========= Downloading /home/shan/openvino_models/models/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.prototxt
... 100%, 9 KB, 30299 KB/s, 0 seconds passed

========= Downloading /home/shan/openvino_models/models/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.caffemodel
... 100%, 4834 KB, 4948 KB/s, 0 seconds passed


###############|| Post processing ||###############

========= Changing input dimensions in squeezenet1.1.prototxt =========


###################################################

Install Model Optimizer dependencies

Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease                                                                                        
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease                                                                                               
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                              
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                     
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]      
Fetched 252 kB in 2s (151 kB/s)                                                                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
40 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgfortran3 is already the newest version (6.5.0-2ubuntu1~18.04).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1).
python3-venv is already the newest version (3.6.7-1~18.04).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-47 linux-headers-4.15.0-47-generic linux-image-4.15.0-47-generic linux-modules-4.15.0-47-generic
  linux-modules-extra-4.15.0-47-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
The directory '/home/shan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/shan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: networkx>=1.11 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 1))
Requirement already satisfied: numpy>=1.12.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 2))
Requirement already satisfied: protobuf==3.6.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 3))
Requirement already satisfied: test-generator==0.1.1 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 4))
Requirement already satisfied: defusedxml>=0.5.0 in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 5))
Requirement already satisfied: decorator>=4.3.0 in /usr/local/lib/python3.6/dist-packages (from networkx>=1.11->-r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 1))
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 3))
Requirement already satisfied: six>=1.9 in /usr/lib/python3/dist-packages (from protobuf==3.6.1->-r /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/../requirements_caffe.txt (line 3))
[WARNING] All Model Optimizer dependencies are installed globally.
[WARNING] If you want to keep Model Optimizer in separate sandbox
[WARNING] run install_prerequisites.sh venv {caffe|tf|mxnet|kaldi|onnx}


###################################################

Convert a model with Model Optimizer

Run python3 /opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/mo.py --input_model /home/shan/openvino_models/models/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.caffemodel /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe --data_type FP16

Model Optimizer arguments:
Common parameters:
    - Path to the Input Model:     /home/shan/openvino_models/models/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.caffemodel
    - Path for generated IR:     /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe
    - IR output name:     squeezenet1.1
    - Log level:     ERROR
    - Batch:     Not specified, inherited from the model
    - Input layers:     Not specified, inherited from the model
    - Output layers:     Not specified, inherited from the model
    - Input shapes:     Not specified, inherited from the model
    - Mean values:     Not specified
    - Scale values:     Not specified
    - Scale factor:     Not specified
    - Precision of IR:     FP16
    - Enable fusing:     True
    - Enable grouped convolutions fusing:     True
    - Move mean values to preprocess section:     False
    - Reverse input channels:     False
Caffe specific parameters:
    - Enable resnet optimization:     True
    - Path to the Input prototxt:     /home/shan/openvino_models/models/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.prototxt
    - Path to CustomLayersMapping.xml:     Default
    - Path to a mean file:     Not specified
    - Offsets for a mean file:     Not specified
Model Optimizer version:     2019.1.0-341-gc9b66a2
[ WARNING ]  
Detected not satisfied dependencies:
    protobuf: installed: 3.0.0, required: 3.6.1

Please install required versions of components or use install_prerequisites script
/opt/intel/openvino_2019.1.133/deployment_tools/model_optimizer/install_prerequisites/install_prerequisites_caffe.sh
Note that install_prerequisites scripts may install additional components.

[ SUCCESS ] Generated IR model.
[ SUCCESS ] XML file: /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml
[ SUCCESS ] BIN file: /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.bin
[ SUCCESS ] Total execution time: 2.78 seconds.


###################################################

Build Inference Engine samples

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
-- Found InferenceEngine: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (Required is at least version "1.6")
-- Performing Test HAVE_CPUID_INFO
-- Performing Test HAVE_CPUID_INFO - Success
-- Host CPU features:
--   3DNOW not supported
--   3DNOWEXT not supported
--   ABM not supported
--   ADX supported
--   AES supported
--   AVX supported
--   AVX2 supported
--   AVX512CD not supported
--   AVX512F not supported
--   AVX512ER not supported
--   AVX512PF not supported
--   BMI1 supported
--   BMI2 supported
--   CLFSH supported
--   CMPXCHG16B supported
--   CX8 supported
--   ERMS supported
--   F16C supported
--   FMA supported
--   FSGSBASE supported
--   FXSR supported
--   HLE not supported
--   INVPCID supported
--   LAHF supported
--   LZCNT supported
--   MMX supported
--   MMXEXT not supported
--   MONITOR supported
--   MOVBE supported
--   MSR supported
--   OSXSAVE supported
--   PCLMULQDQ supported
--   POPCNT supported
--   PREFETCHWT1 not supported
--   RDRAND supported
--   RDSEED supported
--   RDTSCP supported
--   RTM not supported
--   SEP supported
--   SHA not supported
--   SSE supported
--   SSE2 supported
--   SSE3 supported
--   SSE4.1 supported
--   SSE4.2 supported
--   SSE4a not supported
--   SSSE3 supported
--   SYSCALL supported
--   TBM not supported
--   XOP not supported
--   XSAVE supported
-- TBB include: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/include
-- TBB Release lib: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/lib/libtbb.so
-- TBB Debug lib: /opt/intel/openvino_2019.1.133/deployment_tools/inference_engine/external/tbb/lib/libtbb_debug.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shan/inference_engine_samples_build
[ 10%] Built target format_reader
[ 20%] Built target gflags_nothreads_static
[ 96%] Built target ie_cpu_extension
[100%] Built target classification_sample


###################################################

Run Inference Engine classification sample

Run ./classification_sample -d MYRIAD -i /opt/intel/openvino/deployment_tools/demo/car.png -m /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml

[ INFO ] InferenceEngine:
    API version ............ 1.6
    Build .................. custom_releases/2019/R1_ebce9728578ef3131f2f282b3fbc3232109c598e
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino/deployment_tools/demo/car.png
[ INFO ] Loading plugin

    API version ............ 1.6
    Build .................. 23224
    Description ....... myriadPlugin
[ INFO ] Loading network files:
    /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.xml
    /home/shan/openvino_models/ir/FP16//classification/squeezenet/1.1/caffe/squeezenet1.1.bin
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
E: [ncAPI] [    858383] ncDeviceOpen:799    Failed connection to device (1.2-ma2480) with error 5
./demo_squeezenet_download_convert_run.sh: line 241: 29677 Segmentation fault      (core dumped) ./classification_sample -d $target -i $target_image_path -m "${ir_dir}/${model_name}${model_version}.xml" ${sampleoptions}
Error on or near line 241; exiting with status 1

0 Kudos
Highlighted
Beginner
35 Views

Hi Shubha,

 

Thanks for the response. Will check it out.

0 Kudos