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

Cannot run Image Classification sample application

After installing the OpenVino Toolkit and verifying installation so far, I run into trouble when running the image classification sample application:

https://docs.openvinotoolkit.org/2019_R2/_docs_install_guides_installing_openvino_windows.html#run-t...

 

Launching classification_sample.exe as described there, results in the following dump:

[ INFO ] InferenceEngine:
        API version ............ 2.0
        Build .................. 27579
        Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\demo\car.png
[ INFO ] Loading plugin

        API version ............ 2.0
        Build .................. 27579
        Description ....... MKLDNNPlugin
[ INFO ] Loading network files:
        C:\Users\[name]\Documents\squeezenet_FP16\squeezenet1.1.xml
        C:\Users\[name]\Documents\squeezenet_FP16\squeezenet1.1.bin
[ INFO ] Preparing input blobs
[ ERROR ] Data is empty!

 

Why is data empty and how to resolve that?

0 Kudos
3 Replies
Highlighted
Employee
23 Views

Dear Maye, Oliver,

In OpenVino 2019R2 we have:

http://docs.openvinotoolkit.org/latest/_inference_engine_samples_classification_sample_async_README....

http://docs.openvinotoolkit.org/latest/_inference_engine_ie_bridges_python_sample_classification_sam...

http://docs.openvinotoolkit.org/latest/_inference_engine_samples_hello_classification_README.html

http://docs.openvinotoolkit.org/latest/_inference_engine_ie_bridges_python_sample_classification_sam...

http://docs.openvinotoolkit.org/latest/_inference_engine_samples_hello_nv12_input_classification_REA...

My guess is that you are trying to run the Python one, this one:

http://docs.openvinotoolkit.org/latest/_inference_engine_ie_bridges_python_sample_classification_sam...

For these samples, please read the documentation carefully and pass in the correct arguments. As the documentation says you should run it something like :

python3 classification_sample.py -i <path_to_image>/cat.bmp -m <path_to_model>/alexnet_fp32.xml

Also it looks like you are running setupvars.bat or you wouldn't have made it so far in the test (based on the output that you've posted)

Thanks,

Shubha

0 Kudos
Beginner
23 Views

Dear Shubha,

thanks for the response. No, I just followed the instruction given at the link posted earlier:
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_windows.html#run-th...

which is placed quite prominently in a guide on how to install OpenVino under Windows.

There, the C-program classification_sample.exe located under the C:\Users\... directory, is to be run. This fails with the output given above.

After investigating the issue, I found the classification_sample.py Python script under the C:\Program Files (x86)\IntelSWTools\... directory. It finally worked as expected.

So, if the C-exe is outdated, the documentation should be updated to guide the user in running the Python script, instead.

Best

Oliver.

0 Kudos
Highlighted
Employee
23 Views

Dearest Maye, Oliver,

Please understand that with each new release of OpenVino you should delete your build directory and always rebuild the C++ samples and demos. Samples and demos built with a previous version of OpenVino will not work with the new OpenVino. Of course two releases can co-exist side by side, but if you choose to keep 2 releases then you must rename the old build directory into a new name so that the OpenVino 2019 R2 build will not over-write it.

Hope it helps. Glad you got everything working.

Shubha

 

 

 

0 Kudos