store-traffic-monitor-python icon indicating copy to clipboard operation
store-traffic-monitor-python copied to clipboard

object is not iterable error

Open hispavista opened this issue 6 years ago • 0 comments

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

hispavista avatar Feb 06 '19 12:02 hispavista