I was importing face-detection-adas-0001 pretrained model. Previously i had used emotion detection model, it was working fine. But in that model, it gave error like this
Failed to initialize Inference Engine backend: Unsupported primitive of type
I found github link which is solving problem
I have done all two steps all were working fine in Developer command prompt for vs 2019. But when i came to third command
"C:\Program Files\CMake\bin\cmake.exe" ^ -G "Visual Studio 14 Win64" ^ "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\samples"
It gave error and errors
1) Error was telling vs instance not found, but it solved when i used developer prompt
2) Get error, that i was unable to solve,
(base) C:\Users\ra\build>"C:\Program Files\CMake\bin\cmake.exe" ^
More? -G "Visual Studio 14 Win64" ^
More? "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inferenc
CMake Error at CMakeLists.txt:7 (project):
Failed to run MSBuild command:
C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 2/10/2020 8:41:16 AM.
Project "C:\Users\ra\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" on node
1 (default targets).
C:\Users\ra\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj(14,2): error MSB40
19: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Co
mmunity\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" was not found. Co
nfirm that the path in the <Import> declaration is correct, and that the file ex
ists on disk.
Done Building Project "C:\Users\ra\build\CMakeFiles\3.16.4\VCTargetsPath.vcx
proj" (default targets) -- FAILED.
"C:\Users\ra\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj" (default target)
C:\Users\ra\build\CMakeFiles\3.16.4\VCTargetsPath.vcxproj(14,2): error MSB
4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\
Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.Default.props" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file
exists on disk.
Time Elapsed 00:00:05.24
Exit code: 1
-- Configuring incomplete, errors occurred!
See also "C:/Users/ra/build/CMakeFiles/CMakeOutput.log".
I found this error answer in stack overflow , but again it is not solved,
I had tried all version of visual studio but all failing , some telling generator failed some telling like in error 2. :(
Hi paudel, Rajan,
Please provide more details about your setup (OpenVINO version, VS Studio version (w/MSBuild and C++?), CMake, Python, etc.), and any information on how you are loading the pre-trained models. Are you using a sample script or writing your own program? Which plugin are you loading the model on (i.e. CPU, GPU, MYRIAD, etc.). Anything that would help us reproduce the issue would be great.
Thanks for the info, based on the details you have provided I see you are using Windows 7 which is not a supported platform by the tool. With that in mind, there may be some underlying issues that we don't know.
I'd suggest to make sure your installations of Visual Studio include both Desktop development with C++, and MSBuild which looks like you have. I would strongly suggest to verify your installation with the demo scripts prior to use your program.
I have already downloaded desktop enviroment with c++ for visual studio 15 2017. for MSBuild , i had already downloaded bundle tools of c++ and also checked that MSBuild is available,
Weeks passed problem has not been solved. .
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 at importing demo bat file saying "
could not find any instance of Visual Studio 15 2017." But i have properly installed many times visual studio 2017 , also 2019. Nothing working,
How could you help me
I don't have access to Windows 7, and unfortunately this is not a platform that is supported by the toolkit. Also looking at the particular CPU you have (Intel i3 m380) its a legacy processor, this doesn't meet the Hardware requirements (6th-10th Generation Intel® Core™ processors).
I don't have anything else to suggest besides:
- Initialize environment variables (setupvars.bat) prior to running the demo (or permanently set them as mentioned in doc)
- Install all SW dependencies and add them to PATH (Python* & CMake 3.4 or higher 64-bit, unless using VS2019 CMake 3.14 is required)
- Remove/rename any samples/demos build folders in Documents (C:\Users\ra\Documents\Intel\Open\inference_engine_samples_build)
- Re-install Visual Studio* 2017 (reboot once that is completed) with both components previously mentioned
- When building the demos/samples specify the Visual Studio* version:
"C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\demos\build_demos_msvc.bat" VS2017
If the issue persists its most likely due to the usage of an unsupported Operating System and a legacy CPU. Please take a look at the requirements for Windows* here.