- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been using face-detection-retail-0004 with 2020.1 with no issues on CPU, GPU and MYRIAD. This is still the case with GPU (haven't tested MYRIAD yet) but not with the CPU plugin on Windows 10.
Following a demo example I check for unsupported layers when using the CPU plugin:
supported_layers = self.ie_core.query_network(net, device)
not_supported_layers = [
l for l in net.layers.keys() if l not in supported_layers
]
Question 1) Having upgraded to 2021.1, this check reveals that Constant_11092 is not supported. There is no CPU extension DLL since 2020.1 so how do I add support for this layer in one of the Intel provided models?
If I ignore the unsupported layer and carry on execution the model does appear to execute and detect faces.
Question 2) How did the model execute OK with a missing supported layer?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I should have been more clear, I am using the 2021.1 version of the model.
The code for checking supported layers uses methods that are now deprecated. I've rewritten it:
supported_layers = self.ie_core.query_network(net, device)
function = ng.function_from_cnn(net)
ops = function.get_ordered_ops()
not_supported_layers = [
l for l in iter(ops) if l.friendly_name not in supported_layers
]
Which I think is functionally equivalent. The model now loads. So either what I've written doesn't do what I think it does or there is a bug related to the deprecated methods that caused the error.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd recommend to download Open Model Zoo models when you upgrade to the new version of OpenVINO. The reason is that we rebuild Intel pre-trained models IR for each OpenVINO version, so model IR corresponds to OpenVINO runtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I should have been more clear, I am using the 2021.1 version of the model.
The code for checking supported layers uses methods that are now deprecated. I've rewritten it:
supported_layers = self.ie_core.query_network(net, device)
function = ng.function_from_cnn(net)
ops = function.get_ordered_ops()
not_supported_layers = [
l for l in iter(ops) if l.friendly_name not in supported_layers
]
Which I think is functionally equivalent. The model now loads. So either what I've written doesn't do what I think it does or there is a bug related to the deprecated methods that caused the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings,
I'm able to use the face-detection-retail-0004 on windows 10 CPU on both OpenVINO 2021.1 and 2021.2 with no problems.
I downloaded the model through OpenVINO's official model_downloader.
The interactive_face_recognition_demo was used together with some other models.
Please help to refer to my attachments for further details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That code doesn't use query_network() and attempt to validate the results from that call so doesn't actually address the issue. But since rewriting the code to avoid deprecated methods seems to work (although I'm not certain it does exactly the same thing), there is no point digging further.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings,
Glad to know you had found the workaround for your issue.
Intel will no longer monitor this thread since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Sincerely,
Iffa
![](/skins/images/01B58147782A417D64BF0A34EE70FA10/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page