PINTO0309 / OpenVINO-YoloV3

YoloV3/tiny-YoloV3+RaspberryPi3/Ubuntu LaptopPC+NCS/NCS2+USB Camera+Python+OpenVINO
https://qiita.com/PINTO
Apache License 2.0
538 stars 165 forks source link

Not compatible with 2020.4 since the file libcpu_extension.so is missing #70

Closed RohitKeshari closed 4 years ago

RohitKeshari commented 4 years ago

[Required] Your device (RaspberryPi3, LaptopPC, or other device name):
Mac [Required] Your device's CPU architecture (armv7l, x86_64, or other architecture name):

[Required] Your OS (Raspbian, Ubuntu1604, or other os name):
MacOS 10.14.6 [Required] Details of the work you did before the problem occurred:



[Required] Error message:
RuntimeError: Cannot load library 'lib/libcpu_extension.so': dlopen(lib/libcpu_extension.so, 1): image not found


[Required] Overview of problems and questions:
libcpu_extension.so is removed from the current version of openvino. How it can be compatible with current version.


PINTO0309 commented 4 years ago

I'm busy updating other projects at the moment, so here's an example You can change the parameters to suit your environment. libcpu_extension.so is not required for the latest OpenVINOs.

try:
    from armv7l.openvino.inference_engine import IENetwork, IECore
except:
    from openvino.inference_engine import IENetwork, IECore
model_xml = args["model_path"]
model_bin = os.path.splitext(model_xml)[0] + ".bin"
ie = IECore()
net = ie.read_network(model_xml, model_bin)
input_info = net.input_info
input_blob = next(iter(input_info))
exec_net = ie.load_network(network=net, device_name=args["device"])
RohitKeshari commented 4 years ago

Thanks for your reply. The problem is resolved. I am closing it