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.
6552 Discussions

OpenVino interactive face detection demo not working (Windows)

elsospi98
Beginner
1,579 Views

i am trying to execute the "interactive face detection demo".

OpenVino version: 2024.0.0

 

I cloned the repo, then built the demos with the bat file (obv after executing the setup_vars bat file).

the demos build correctly (as far as I know), and the 

 

interactive_face_demo.exe -h

 

command works.

after downloading and converting the models (with the oz and models list file), I try to run this command:

 

interactive_face_detection_demo.exe -i D:\Folder\testingVideo.mp4 -m D:\Folder\demos\interactive_face_detection_demo\cpp\intel\face-detection-adas-0001\FP32\face-detection-adas-0001.xml --mag D:\Folder\demos\interactive_face_detection_demo\cpp\intel\age-gender-recognition-retail-0013\FP32\age-gender-recognition-retail-0013.xml --mem D:\Folder\demos\interactive_face_detection_demo\cpp\intel\emotions-recognition-retail-0003\FP32\emotions-recognition-retail-0003.xml -d GPU

 

 

But the first few times nothing happened (neither the output file), and then an Exception started to appear at every execution:

 

[ INFO ] OpenVINO
[ INFO ] version: 2024.0.0
[ INFO ] build: 2024.0.0-14509-34caeefd078-releases/2024/0
[ INFO ] Reading model: D:\Folder\demos\interactive_face_detection_demo\cpp\intel\face-detection-adas-0001\FP32\face-detection-adas-0001.xml
[ INFO ] Model name: mobilenet_ssd_672x384
[ INFO ] Inputs:
[ INFO ] data, f32, [1,3,384,672], [N,C,H,W]
[ INFO ] Outputs:
[ INFO ] detection_out, f32, [1,1,200,7], [...]
[ ERROR ] Exception from src\inference\src\cpp\core.cpp:109:
Exception from src\inference\src\dev\plugin.cpp:54:
Check 'false' failed at src\plugins\intel_gpu\src\plugin\program_builder.cpp:179:
[GPU] ProgramBuilder build failed!
clGetKernelInfo

 

I swear I followed every step of the demo guide, but I have literally no idea of what to do to fix this problem and to make this demo run on my pc (preferably on my laptop webcam).

GPU drivers are updated, as you can see from the attached screenshot

 

EDIT: tried with -d AUTO, and now the error message is different:

 

[ ERROR ] PdhAddCounterW() failed: unknown error

 

Googling the error didn't fix this issue, as I have a intel core i7 6770HQ (being 6th gen, it should be enough) and 16GB RAM. 

 

(Virus scan in progress ...)
0 Kudos
1 Solution
elsospi98
Beginner
1,520 Views

Eventually I managed to resolve the issue by myself. I will keep this question and answer in case someone will need it in the future.


[ ERROR ] PdhAddCounterW() failed: unknown error

 

This error is generated by the Performance Monitor Windows application. probably if you open it you'll encounter some error when opening it.

 

How to resolve this: 

  1. open cmd as admin
  2. type lodctr /r

I encountered another error: "Error: Unable to rebuild performance counter setting from system backup store, error code is 2"

 

In this case what helped me was this couple of instructions.

  1. open cmd as admin
  2. cd c:\windows\system32
  3. lodctr /R --> hopefully you'll get "Info: Successfully rebuilt performance counter setting from system backup store"
  4. cd c:\windows\sysWOW64
  5. lodctr /R  --> hopefully you'll get "Info: Successfully rebuilt performance counter setting from system backup store"


Now it should work.

View solution in original post

0 Kudos
3 Replies
elsospi98
Beginner
1,521 Views

Eventually I managed to resolve the issue by myself. I will keep this question and answer in case someone will need it in the future.


[ ERROR ] PdhAddCounterW() failed: unknown error

 

This error is generated by the Performance Monitor Windows application. probably if you open it you'll encounter some error when opening it.

 

How to resolve this: 

  1. open cmd as admin
  2. type lodctr /r

I encountered another error: "Error: Unable to rebuild performance counter setting from system backup store, error code is 2"

 

In this case what helped me was this couple of instructions.

  1. open cmd as admin
  2. cd c:\windows\system32
  3. lodctr /R --> hopefully you'll get "Info: Successfully rebuilt performance counter setting from system backup store"
  4. cd c:\windows\sysWOW64
  5. lodctr /R  --> hopefully you'll get "Info: Successfully rebuilt performance counter setting from system backup store"


Now it should work.

0 Kudos
Peh_Intel
Moderator
1,491 Views

Hi elsospi98,


Thank for sharing the solution in the community!



Regards,

Peh




0 Kudos
Peh_Intel
Moderator
1,406 Views

Hi elsospi98,


This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.



Regards,

Peh


0 Kudos
Reply