mmphego/face_mask_detection_openvino

Unsupported layers found IECore OpenVINO MYRIAD

Omar-AE opened this issue · 4 comments

Everything works perfectly when I run the following on cpu, but when I choose MYRIAD: --device 'MYRIAD', the following exception is raised:


~/mask-openvino/face_mask_detection_openvino$ python3 main.py     --face-model models/face-detection-adas-0001.xml     --mask-model models/face_mask.xml     --debug     -i resources/mask.mp4 --device 'MYRIAD'
Traceback (most recent call last):
  File "main.py", line 221, in <module>
    infer_on_stream(args)
  File "main.py", line 137, in infer_on_stream
    device=args.device,
  File "/home/nvr/mask-openvino/face_mask_detection_openvino/inference.py", line 72, in load_model
    raise RuntimeError(msg)
RuntimeError: Unsupported layers found: ['data'], Check whether extensions are available to add to IECore.

I am using:
ubuntu 18 LTS
Python 3.6.9

I would appreciate a quick help for this.

I never tested the code with the NCS2 but you can try commenting out these lines: https://github.com/mmphego/face_mask_detection_openvino/blob/master/inference.py#L60+L72

Also, you might want to try a lower precision model FP16. Not sure if the NCS2 support the heterogenous plugin...

Try: --device HETERO:MYRIAD,CPU

Goodluck

I tried your suggestions.
Now I am getting the following exception:


~/mask-openvino/face_mask_detection_openvino$ python3 main.py     --face-model models/face-detection-adas-0001.xml     --mask-model models/face_mask.xml     --debug     -i resources/mask.mp4
Traceback (most recent call last):
  File "main.py", line 221, in <module>
    infer_on_stream(args)
  File "main.py", line 141, in infer_on_stream
    device=args.device,
  File "/home/nvr/mask-openvino/face_mask_detection_openvino/inference.py", line 56, in load_model
    network=self.network, device_name=device
  File "ie_api.pyx", line 178, in openvino.inference_engine.ie_api.IECore.load_network
  File "ie_api.pyx", line 187, in openvino.inference_engine.ie_api.IECore.load_network
RuntimeError: Can not init Myriad device: NC_ERROR

Cannot reproduce therefore closing issue.