duangenquan / YoloV2NCS

This project shows how to run tiny yolo v2 with movidius stick.
148 stars 63 forks source link

Getting Error when running Detection xample #23

Open hanumanhojo opened 6 years ago

hanumanhojo commented 6 years ago

Hi, I running the original ncsdk on a PC with Ubuntu 16.04 as the OS. When I run the Detection Example, this is the error I'm getting:

developer@developer-desktop:~/Movidius/YoloV2NCS$ python3 ./detectionExample/Main.py --video 0 Traceback (most recent call last): File "./detectionExample/Main.py", line 5, in from ObjectWrapper import * File "/home/developer/Movidius/YoloV2NCS/detectionExample/ObjectWrapper.py", line 17, in class ObjectWrapper(): File "/home/developer/Movidius/YoloV2NCS/detectionExample/ObjectWrapper.py", line 18, in ObjectWrapper mvnc.global_set_option(mvnc.GlobalOption.RW_LOG_LEVEL, 2) AttributeError: module 'mvnc.mvncapi' has no attribute 'global_set_option'

alekcastillo commented 6 years ago

You're using NCSDK 1. You must use NCSDK 2: https://github.com/movidius/ncsdk/tree/ncsdk2

Anvesh-1 commented 6 years ago

Hi, I am using the NCSDK2 provided by you in the comment above but i am still getting the same error,

Traceback (most recent call last): File "./detectionExample/Main.py", line 5, in from ObjectWrapper import * File "/home/YoloV2NCS/detectionExample/ObjectWrapper.py", line 17, in class ObjectWrapper(): File "/home/YoloV2NCS/detectionExample/ObjectWrapper.py", line 18, in ObjectWrapper mvnc.global_set_option(mvnc.GlobalOption.RW_LOG_LEVEL, 2) AttributeError: module 'mvnc.mvncapi' has no attribute 'global_set_option'

PINTO0309 commented 6 years ago

$ cd ncsdk $ make uninstall

$ cd ~ $ git clone -b ncsdk2 http://github.com/Movidius/ncsdk $ cd ncsdk $ make install