opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
78.16k stars 55.72k forks source link

RuntimeError: Failed to create plugin MKLDNNPlugin.dll for device CPU #16557

Closed ghost closed 4 years ago

ghost commented 4 years ago
System information (version)
Detailed description

Importing model face-detection-adas-0001 Throws an error saying

Traceback (most recent call last): File "feed_network.py", line 50, in load_to_IE('C:\Users\ra\Desktop\projects\Entertainment\age-gender-face -detection-project\models\face-detection-adas-0001\FP16\face-detection-adas- 0001.xml') File "feed_network.py", line 45, in load_to_IE plugin.load_network(net, device_name='CPU') File "ie_api.pyx", line 134, in openvino.inference_engine.ie_api.IECore.load_n etwork File "ie_api.pyx", line 141, in openvino.inference_engine.ie_api.IECore.load_n etwork RuntimeError: Failed to create plugin C:\Program Files (x86)\IntelSWTools\openvi no\deployment_tools\inference_engine\bin\intel64\Release\MKLDNNPlugin.dll for de vice CPU Please, check your environment Cannot load library 'C:\Program Files (x86)\IntelSWTools\openvino\deployment_too ls\inference_engine\bin\intel64\Release\MKLDNNPlugin.dll': 3221225501 from cwd: C:\Users\ra\Desktop\projects\Entertainment\age-gender-face-detection-project\han dling_inference

Steps to reproduce

My code is

#def load_to_IE(model_xml):
    ##load the inference engine api
    plugin = IECore()
    #Load  IR files into their related class
    model_bin = os.path.splitext(model_xml)[0] + '.bin'
    net = IENetwork(model=model_xml, weights=model_bin)
    #load the network in the inference engine
    plugin.load_network(net, device_name='CPU')
    print("IR loaded successfully")

    return

load_to_IE('C:\\Users\\ra\\Desktop\\projects\\Entertainment\\age-gender-face-detection-project\\models\\face-detection-adas-0001\\FP16\\face-detection-adas-0001.xml')
alalek commented 4 years ago

Invalid like #16540 This can't be fixed from OpenCV side.


Please, check your environment

How is the progress?

ghost commented 4 years ago

Weeks passed problem has not been solved. Progress is down :( . Before older version of openvino says RuntimeError: unsupported primitive of type: PriorBox name: fc7_mbox_priorbox , After new installation 2020.1 , where there is no cpu extension specific, Giving another error RuntimeError: Failed to create plugin MKLDNNPlugin.dll for device CPU . Before that , while running demo in windows installation throws error " could not find any instance of Visual Studio 15 2017." But i have properly installed many times visual studio 2017 , also 2019 , searched and used, all didnt worked. Help!! @alalek