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

AttributeError: 'openvino.inference_engine.ie_api.IENetwork' object has no attribute 'layers'

aicha
Novice
1,376 Views

Hi Intel,
I am new at using OpenVino and NCS2 .. I am now trying to run the face_recognition_demo that I got from the open model zoo on windows10 . Iam using version 2021.2 of openvino toolkit.

But I get this error everytime i try to do so ( error below).

I  would be very greatful to you if you help me. Thank you in advance.

C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo>python face_recognition_demo.py
[ INFO ] 2021-03-25 11:28:55,451 Loading models
[ INFO ] 2021-03-25 11:28:55,451 Loading the model from 'C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\models\face-detection-retail-0004\FP16\face-detection-retail-0004.xml'
[ INFO ] 2021-03-25 11:28:55,476 Model is loaded
[ INFO ] 2021-03-25 11:28:55,476 Loading the model from 'C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\models\landmarks-regression-retail-0009\FP16\landmarks-regression-retail-0009.xml'
[ INFO ] 2021-03-25 11:28:55,492 Model is loaded
[ INFO ] 2021-03-25 11:28:55,493 Loading the model from 'C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\models\face-reidentification-retail-0095\FP16\face-reidentification-retail-0095.xml'
[ INFO ] 2021-03-25 11:28:55,562 Model is loaded
C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\face_detector.py:52: DeprecationWarning: 'inputs' property of IENetwork class is deprecated. To access DataPtrs user need to use 'input_data' property of InputInfoPtr objects which can be accessed by 'input_info' property.
assert len(model.inputs) == 1, "Expected 1 input blob"
detector
C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\landmarks_detector.py:44: DeprecationWarning: 'inputs' property of IENetwork class is deprecated. To access DataPtrs user need to use 'input_data' property of InputInfoPtr objects which can be accessed by 'input_info' property.
assert len(model.inputs) == 1, "Expected 1 input blob"
landmarks
C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\face_identifier.py:45: DeprecationWarning: 'inputs' property of IENetwork class is deprecated. To access DataPtrs user need to use 'input_data' property of InputInfoPtr objects which can be accessed by 'input_info' property.
assert len(model.inputs) == 1, "Expected 1 input blob"
identifier
Traceback (most recent call last):
File "face_recognition_demo.py", line 444, in <module>
main()
File "face_recognition_demo.py", line 439, in main
visualizer = Visualizer(args)
File "face_recognition_demo.py", line 238, in __init__
self.frame_processor = FrameProcessor(args)
File "face_recognition_demo.py", line 150, in __init__
self.face_detector.deploy(args.d_fd, context)
File "C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\ie_module.py", line 75, in deploy
self.model, device, self.max_requests)
File "C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\ie_module.py", line 48, in deploy_model
self.check_model_support(model, device)
File "C:\Program Files (x86)\IntelSWTools\openvino_2021\face_recognition_demo\ie_module.py", line 35, in check_model_support
not_supported_layers = [l for l in net.layers.keys() \
AttributeError: 'openvino.inference_engine.ie_api.IENetwork' object has no attribute 'layers'

0 Kudos
3 Replies
Peh_Intel
Moderator
1,351 Views

Hi Aicha,

 

I observed that you’ve posted the same issue before in this thread and you also confirmed that your issue has been solved.

 

I would like to check with you that anything else I can further assist you with.

 

 

Regards,

Peh


0 Kudos
aicha
Novice
1,331 Views

Hi @Peh_Intel , 

I my problem was solved thanks to your help, the demo runs perfectly.

Thanks a lot .

regards.

0 Kudos
Peh_Intel
Moderator
1,318 Views

Hi Aicha,


Glad to hear this from you. 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