Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

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

@TuHechiceroFavorito

Description

@TuHechiceroFavorito

Not any expert in the field, so I feel very lost.

I get this error when I try to run it on the CPU.

I followed the instructions and checked every step and I don't see where I made a mistake, if any. I have also reinstalled OpenVINO with no luck.

Here is the full output:

32/person-detection-retail-0013.xml -sm ../resources/worker-safety-mobilenet/FP32/worker_safety_mobilenet.xml
Application running in Async mode
/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 "./safety_gear_detector.py", line 464, in <module>
    main()
  File "./safety_gear_detector.py", line 272, in main
    infer_network.load_model(conf_modelLayers, targetDevice, 1, 1, 2, cpu_extension)
  File "/home/atmos/safety-gear-detector-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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions