intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 42 forks source link

Face Recognition Example is failing with WebNN built #1241

Open maheshpalkar opened 4 years ago

maheshpalkar commented 4 years ago

Hi,

  1. Built chromium for Webnn support.
  2. Installed openvino 2020.2.120.

System configuration : Operating system: Linux (Ubuntu 18.04) Processor Generation: 8 Openvino Version: 2020.2.120

Issue : I have executed built with out/Default/chrome --no-sandbox --use-inference-engine Tried Face Recognition Example shows Prediction Failed with an error create execution fails. I have attached a screenshot of the issue.

Expected Result : Face Recognition Example having FaceNet and Face Reidentification mode should work with openvino as an inference engine WebNN support.

face recoginizationerror

Christywl commented 4 years ago

Hi, @maheshpalkar , SUSTAINED_SPEED backend on inference engine requires Intel Graphics, if not Intel Graphics, the examples will fail with the error createExecution fails:5 and you can see the logs like:

Terminal log: [IE] exception failed to create engine: clGetPlatformIDs error

Besides, Face Recognition isn't supported on inference engine backends currently because broadcasting isn't supported, please see the wiki WebML-Examples-Results-on-Different-Backends-and-Platforms.

maheshpalkar commented 4 years ago

Hi @Christywl, I am having intel graphics installed in my ubuntu machine. I am using a NUC machine. I have attached the system configuration screenshot. Still I am getting the same error "createExecution fails:5" for SUSTAINED_SPEED backend.

But when I select FAST_SINGLE_ANSWER then it shows "finishfails" and in terminal it shows broadcasting isn't supported.

system configuration

Christywl commented 4 years ago

Could you please post the logs in your terminal for SUSTAINED_SPEED backend?

maheshpalkar commented 4 years ago

Could you please post the logs in your terminal for SUSTAINED_SPEED backend?

Hi @Christywl,

Please find the attached screenshot of the terminal logs.

sustenedspeedError

Christywl commented 4 years ago

The build contains an old inference engine which doesn't support this device. We're upgrading inference engine now, please try it again after https://github.com/otcshare/chromium-src/pull/27 is merged. Thanks for trying WebNN.

maheshpalkar commented 4 years ago

The build contains an old inference engine which doesn't support this device. We're upgrading inference engine now, please try it again after otcshare/chromium-src#27 is merged. Thanks for trying WebNN.

Hi @Christywl, Thank you for providing the link of updated chromium source code. Is there a solution for the broadcasting issue?

huningxin commented 4 years ago

According to IE doc, Add and Multiply support broadcasting. We may need to revisit #751 and #725.