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

object is not iterable error #3

@hispavista

Description

@hispavista

I get this error when I run the executable:

Initializing plugin for CPU device...
Reading IR...
./store-traffic-monitor.py:321: DeprecationWarning: from_ir() method of IENetwork is deprecated. Please use IENetwork class constructor to create valid IENetwork instance
net = IENetwork.from_ir(model=model_xml, weights=model_bin)
Loading IR to the plugin...
Traceback (most recent call last):
File "./store-traffic-monitor.py", line 530, in
sys.exit(main() or 0)
File "./store-traffic-monitor.py", line 331, in main
n, c, h, w = net.inputs[input_blob]
TypeError: 'openvino.inference_engine.ie_api.InputInfo' object is not iterable

If I change line 331 from n, c, h, w = net.inputs[input_blob] to n, c, h, w = net.inputs[input_blob].shape the error disappears but not detects correctly.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions