restricted-zone-notifier-python icon indicating copy to clipboard operation
restricted-zone-notifier-python copied to clipboard

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

Open ravelwaresigit opened this issue 4 years ago • 0 comments

i got this kind of error when start the application. detail error is like below.

/usr/lib/python3/dist-packages/apport/report.py:13: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat Traceback (most recent call last): File "restricted_zone_notifier.py", line 353, in main() File "restricted_zone_notifier.py", line 233, in main n, c, h, w = infer_network.load_model(args.model, TARGET_DEVICE, 1, 1, 2, args.cpu_extension)[1] File "/home/sigitg/intel-iot/restricted-zone-notifier-python/application/inference.py", line 79, in load_model [l for l in self.net.layers.keys() if l not in supported_layers] AttributeError: 'openvino.inference_engine.ie_api.IENetwork' object has no attribute 'layers'

Could you please tell me how to resolve this error? Thankyou

ravelwaresigit avatar Jul 30 '21 11:07 ravelwaresigit