Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

execution of object-detector.py

idata
Employee
549 Views

Hi

 

I have found /home/pi/ncsdk/examples/caffe/GoogLeNet/object-detector.py. I think this is the

 

source code discussed in the tutorials. Correct?

 

1) I note the source is written for V1 of the NCSDK. I am happy to convert this ( or use the shim method) to enable execution under V2 of the SDK.

 

2) On execution 'utils' is not found ( needed to supply visulaize_output and deserialize_output). Help with locating 'utils' greatly appreciated.

 

Many Thanks jsl
0 Kudos
3 Replies
idata
Employee
393 Views

@jslawton Not quite sure what you are referring to. I don't see object-detector.py at the NCSDK2 branch https://github.com/movidius/ncsdk/tree/ncsdk2/examples/caffe/GoogLeNet or the master branch https://github.com/movidius/ncsdk/tree/master/examples/caffe/GoogLeNet. Can you post your utils error output? Thanks.

0 Kudos
idata
Employee
393 Views

@jslawton, I believe you are referring to https://github.com/movidius/ncappzoo/tree/master/apps/object-detector. If so, just copy https://github.com/movidius/ncappzoo/tree/master/apps/object-detector/utils over to your new project workspace within NCSDK 2.0. Alternatively, you should simply be able to copy the entire https://github.com/movidius/ncappzoo/tree/master/apps/object-detector folder over to your NCSDK 2.0 workspace and make necessary changes to https://github.com/movidius/ncappzoo/blob/master/apps/object-detector/object-detector.py

0 Kudos
idata
Employee
393 Views

Thanks as ever!

 

So far I tried the 'shim' conversion that returned an execution time of 80.22 ms.

 

My direct conversion using the fifo convenience functions returned 97.75 ms.

 

In order to get my direct conversion to run I had to change from FP16 to FP32 and also

 

assign TIME_TAKEN as RO_TIME_TAKEN. I think the specification of FP16 is key to the additional time of execution but haven't managed to figure out how to maintain the specification at FP16, yet.

 

Once again thank you (and for and Tome's) help with this instructive tutorial code.

 

jsl
0 Kudos
Reply