openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.21k stars 2.25k forks source link

[ERROR] PdhAddCounterW() failed: unknown error #11622

Closed workah0lic closed 2 years ago

workah0lic commented 2 years ago
System information (version)
Detailed description

I try to start the interactive demo:

interactive_face_detection_demo ^ --loop ^ -m "C:\Intel\face-detection-adas-0001\FP16\face-detection-adas-0001.xml"

[ INFO ] OpenVINO [ INFO ] version: 2022.1.0 [ INFO ] build: 2022.1.0-7019-cdb9bec7210-releases/2022/1 [ INFO ] Reading model: C:\Intel\face-detection-adas-0001\FP16\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}, [...] [ INFO ] The model C:\Intel\face-detection-adas-0001\FP16\face-detection-adas-0001.xml is loaded to CPU [ INFO ] Device: CPU [ INFO ] Number of streams: 1 [ INFO ] Number of threads: AUTO [ ERROR ] PdhAddCounterW() failed: unknown error

Steps to reproduce

Follow the tutorial on https://docs.openvino.ai/latest/omz_demos.html#doxid-omz-demos Download needed models Start face_detection_interactive_demo.exe

brmarkus commented 2 years ago

Can you describe your environment, please? Which OS in which version are you running? Which underlying SOC/CPU do you use?

The mentioned error sounds like a MS-Windows performance-counter-API error.

workah0lic commented 2 years ago

Surface Pro 4 OS: Microsoft Windows 10 Pro Version 10.0.19043 Build 19043 Prozessor Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2496 MHz, 2 Kern(e), 4 logische(r) Prozessor(en) RAM: 4GB openvino_2022.1.0.643 4.5.5-90-gc3d60a6ca (OpenVINO/2022.1) Visual Studio 16 2019

jgespino commented 2 years ago

@workah0lic I am not able to replicate your issue on my Intel 8th generation system. I have the same software versions as you mentioned. I noticed you also posted the same question on Stack Overflow and received a recommendation. Are you still running into this issue or have you solved it?

https://stackoverflow.com/questions/72111498/pdhaddcounterw-failed-unknown-error-when-starting-a-demo

C:\Users\user\Documents\Intel\OpenVINO\omz_demos_build\intel64\Release>interactive_face_detection_demo ^ --loop ^ -m intel\face-detection-adas-0001\FP16\face-detection-adas-0001.xml
[ INFO ] OpenVINO
[ INFO ]        version: 2022.1.0
[ INFO ]        build: 2022.1.0-7019-cdb9bec7210-releases/2022/1
[ INFO ] Reading model: intel\face-detection-adas-0001\FP16\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}, [...]
[ INFO ] The model intel\face-detection-adas-0001\FP16\face-detection-adas-0001.xml is loaded to CPU
[ INFO ]        Device: CPU
[ INFO ]                Number of streams: 1
[ INFO ]                Number of threads: AUTO
MFX: Unsupported extension: 0
[ INFO ] Metrics report:
[ INFO ]        Latency: 219.1 ms
[ INFO ]        FPS: 12.3
[ INFO ] Resources usage:
[ INFO ]        Mean core utilization: 45.6% 12.5% 23.0% 28.4% 32.2% 14.1% 24.5% 19.3%
[ INFO ]        Mean CPU utilization: 25.0%
[ INFO ]        Memory mean usage: 11.9 GiB
[ INFO ]        Mean swap usage: 0.4 GiB