Intel® Compute Stick
Discussions Regarding Intel® Compute Sticks and Cards
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
547 Discussions

Cant build ncappszoo apps with 2020.2 kit. Intel's Neural compute Stick 2 not supported any more?

tarocal
Beginner
728 Views

Hello,

(First post, sorry for mistakes)

Device: VM Machine Xubuntu 18.04.5 LTS x86_64

CPU: Intel i5-8365U

I recently purchased a neural compute stick 2. I have models from Intel's model zoo (both .xm and .bin files)[1]. How do I deploy them on the Stick?

Going throught the Installtion guide[2], I neeed to be able to 'make run' on the directory of nc-apps[3]. But the make fails every time[4-error for gender_age app]. All of the instructions are a bit wrong and outdated (from 2019 R1 version which isn't avilable in the usual place). Is this not a Supported product anymore?

I can personally download the new version of the model using the ../tools/model_downloader/download.py. But this is not going to work for simple_classify_py_camera[5]

From what I understand: I need the IEPlugin from the openvino inferencce engine. But it has been depreciated.

Is there a way I can install the Python API mvnc, as like pip install mvnc? I can save me, and others, a lot of trouble, than downloading and building it from scratch evertime.

Thanks in advance,

tarocal.

 

[1]: https://github.com/openvinotoolkit/open_model_zoo/tree/master/models/intel

[2]: https://software.intel.com/content/www/us/en/develop/articles/get-started-with-neural-compute-stick.html

[3]: https://github.com/movidius/ncappzoo

[4]:  (when building the gender_age app)

 


gender_age: Downloading IRs...
- Age/Gender IR files do not exist in project directory.
- Making Age/Gender IRs...
make[1]: Entering directory '/home/tarocal/ncappzoo/networks/age_gender_net'

age_gender_net: Making model zoo...
(cd ../../omz; make all;)
make[2]: Entering directory '/home/tarocal/ncappzoo/omz'

open_model_zoo: Checking requirements...
Checking pyyaml...
- pyyaml already installed.


open_model_zoo: Making dependencies...

open_model_zoo: Downloading required data...
Open model zoo already exists. No need to clone.
make[2]: Leaving directory '/home/tarocal/ncappzoo/omz'

age_gender_net: Downloading IRs...
- Model files already exists in the open model zoo.
- IR files already exist in project directory. No need to copy IRs.
make[1]: Leaving directory '/home/tarocal/ncappzoo/networks/age_gender_net'
- Copying Age/Gender IR files to current folder...
- Face detection model IR files do not exist in project directory.
- Making Face detection IRs...
make[1]: Entering directory '/home/tarocal/ncappzoo/networks/face_detection_retail_0004'

face_detection_retail_0004: Cloning model zoo...
(cd ../../omz; make all;)
make[2]: Entering directory '/home/tarocal/ncappzoo/omz'

open_model_zoo: Checking requirements...
Checking pyyaml...
- pyyaml already installed.


open_model_zoo: Making dependencies...

open_model_zoo: Downloading required data...
Open model zoo already exists. No need to clone.
make[2]: Leaving directory '/home/tarocal/ncappzoo/omz'

face_detection_retail_0004: Downloading IRs...
- Model files already exists in open model directory.
- IR files already exist in project directory. No need to copy IRs.
make[1]: Leaving directory '/home/tarocal/ncappzoo/networks/face_detection_retail_0004'
- Copying Face IR files to current folder...

gender_age: Making dependencies...

gender_age: No data required.

gender_age: Building the sample...
Intel OpenVINO environment is already set!
(mkdir -p build; cd build; cmake ..; make;)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tarocal/ncappzoo/apps/gender_age/build
make[1]: Entering directory '/home/tarocal/ncappzoo/apps/gender_age/build'
make[2]: Entering directory '/home/tarocal/ncappzoo/apps/gender_age/build'
make[3]: Entering directory '/home/tarocal/ncappzoo/apps/gender_age/build'
make[3]: Leaving directory '/home/tarocal/ncappzoo/apps/gender_age/build'
make[3]: Entering directory '/home/tarocal/ncappzoo/apps/gender_age/build'
[ 50%] Building CXX object CMakeFiles/gender_age.dir/cpp/run.cpp.o
[100%] Linking CXX executable gender_age
make[3]: Leaving directory '/home/tarocal/ncappzoo/apps/gender_age/build'
[100%] Built target gender_age
make[2]: Leaving directory '/home/tarocal/ncappzoo/apps/gender_age/build'
make[1]: Leaving directory '/home/tarocal/ncappzoo/apps/gender_age/build'

gender_age: Running the sample...
(cd build; ./gender_age; cd ..;)
[ WARN:0] global ../opencv/modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
terminate called after throwing an instance of 'InferenceEngine::details::InferenceEngineException'
what(): The support of IR v6 has been removed from the product. Please, convert the original model using the Model Optimizer which comes with this version of the OpenVINO to generate supported IR version.
Aborted (core dumped)

 

 

 

[5]: Error for simple_classify_py_camera app

simple_classifier_py: Compiling the model to IR...
- squeezenet IR files found. No need to compile.

simple_classifier_py: Making dependencies...

simple_classifier_py: Making the required data...
make[1]: Entering directory '/home/tarocal/ncappzoo/data/ilsvrc12'

Making all for ilsvrc data...
make[1]: Leaving directory '/home/tarocal/ncappzoo/data/ilsvrc12'

simple_classifier_py: Running the sample...
Intel OpenVINO environment is already set!
python3 run.py --ir=squeezenet1.0.xml --labels=../../data/ilsvrc12/synset_labels.txt

Please make sure your OpenVINO environment variables are set by sourcing the setupvars.sh script found in <your OpenVINO install location>/bin/ folder.

Makefile:61: recipe for target 'run_py' failed
make: *** [run_py] Error 1

0 Kudos
3 Replies
DeividA_Intel
Moderator
704 Views

Hello tarocal,  

  


Thank you for posting on the Intel® communities.   

  


I will proceed to check the issue internally and post back soon with more details. 


  


Best regards, 


Deivid A.  

Intel Customer Support Technician 


Wan_Intel
Moderator
677 Views

Hi Tarocal,

 

Thanks for reaching out to us and thank you for using Intel® Neural Compute Stick 2.

 

We have transitioned from Intel® Movidius™ Neural Compute SDK (NCSDK) to the Intel® Distribution of OpenVINO Toolkit.

Refer here for more information.

 

As for support for projects in ncappzoo, we would like to bring your attention to the following note available here:

 

The projects in the ncappzoo work with both flavors of the OpenVINO™ Toolkit and unless otherwise specified in a project's README.md file all projects are targeted for the OpenVINO™ Toolkit 2020.1 release”. 

 

As such, ncappzoo projects are not compatible with OpenVINO 2020.2 onwards.

 

On the other hand, Intel® Distribution of OpenVINO Toolkit provides optimized deep learning models and a set of demos in Open Model Zoo.

The models can be obtained from here.

The models can be downloaded via Model Downloader “<install_dir>/deployment_tools/open_model_zoo/tools/downloader”.

 

The demos are available after installation in the following directory:

“<install_dir>/deployment_tools/open_model_zoo/demos”.

 

The demos can also be obtained from the Open Model Zoo GitHub repository.

 

For your information, gender_age app in ncappzoo is similar to Open Model Zoo’s Interactive_face_detection_demo, while simple_classify_py_camera is similar to Classification_demo.

 

You can go through the README.md pages from each repository to run the demos.

 

 

Regards,

Wan


Wan_Intel
Moderator
640 Views

Hi Tarocal,


This thread will no longer be monitored since we have provided a solution. If you need any additional information from Intel, please submit a new question.



Regards,

Wan


Reply