TNTWEN / OpenVINO-YOLOV4

This is implementation of YOLOv4,YOLOv4-relu,YOLOv4-tiny,YOLOv4-tiny-3l,Scaled-YOLOv4 and INT8 Quantization in OpenVINO2021.3
MIT License
239 stars 66 forks source link

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

Closed freedom9393 closed 3 years ago

freedom9393 commented 3 years ago

When I run following line of code:

python object_detection_demo_yolov3_async.py -i cam -m frozen_darknet_yolov4_model.xml -d CPU

I'm getting this error:

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

What does that mean and how to solve it?

TNTWEN commented 3 years ago

@freedom9393 README: image

AND

https://github.com/TNTWEN/OpenVINO-YOLOV4/issues/29

TNTWEN commented 3 years ago

https://github.com/TNTWEN/OpenVINO-YOLOV4/tree/master/pythondemo

freedom9393 commented 3 years ago

@TNTWEN, so you updated demo (py) files ??

TNTWEN commented 3 years ago

Yes! I updated python inference demo for different OpenVINO version.

And OpenVINO already provides C++ inference demo.For windows,You could find it here:C:\Program Files (x86)\Intel\openvino_2021.2.185\inference_engine\demos\multi_channel\object_detection_demo_yolov3. I have tested it,it works well.