Examples of "independent" OpenVINO R2019_2 version of "super_resolution_demo", to solve the problem due to R2019_2 upgrade caused R2019_1

OpenVINO provides a wealth of examples, in order to facilitate research and use, we need these examples isolated from the original demo directory out, that is "independent" operation, where we choose the simpler super_resolution_demo to illustrate the problem and marked emphasis ; the other on the one hand, due to the OpenVINO upgrade faster, in some of the details may have more changes, due to version upgrades of issues need to pay attention, here also the appropriate comb.
The premise of this blog is "windows platforms , and has been successfully vs2017 example of OpenVINO run through." If this condition is not met you can refer to the official documents and other information.
First, an example of the "independent" OpenVINO R2019_2 version of "super_resolution_demo"
The official name for example: super_resolution_demo
Examples of names we created for: GOVINO_REBUILD 1, create a console program GOVINO_REBUILD
Note that the following operations are 64-bit, first of all we do is Debug mode
 
2, observe the original file header example, open the "General" -> "Additional Include Directories", these are what we need (and already deployed properly in the machine)
Which, gflags and formatreader the two libraries to remove special, because we removed the cumbersome judge gflags
with
After this success should be
3, open the original case "linker" -> "Input" -> "Additional Dependencies" These are what we need (and already deployed properly in the machine)
Among them, about format_reader and gflags remains can be removed, with particular attention cpu_extension.lib to specify the correct location.
The figure is a modified appearance, it should be noted that configurations herein can be a direct copy.
4, items = "Properties =" c / c ++ = "preprocessor =" Click preprocessor define, edit, add _CRT_SECURE_NO_WARNINGS
5, main.cpp and super_resolution_demo.h in the original directory (not generated directory) to be copied to the new project (this step may not be directly transferred to step 6)
 
And added to an existing entry to
This time, you can try to run, and certainly will complain
The gflags and things related format_reader_ptr removed.
Then you also need a lot of interface problems parameter adjustment, the final results of the entire run successfully.
6, or you can directly use GOVINO.cpp, this is after I simplified " super_resolution_demo"
Direct introduction GOVINO.cpp (main.cpp and can be deleted super_resolution_demo.h)
When prompted, add
7, finally began to run
If you report this error, we should know how to solve
There are two solutions, or the directory that contains cpu_extension.dll here is included in the Path to go,
Or find the correct copy together, we note that all dll are copied over
This time, has begun to enter debugging. But you still may encounter some problems, refer to Part 2.
 
Second, to solve the problem due to R2019_2 upgrade caused R2019_1
1, the first clear look at the current identified R2019_1 and R2019_2 two versions differ in terms of grammar and found two
一个是在R2019_1中在调入plugin的地方(天龙8步第1步)被改写为Core ie;
二个是 R2019_2的第4 ,ie.LoadNetwork中,
ie.LoadNetwork(network"CPU");
需要将”CPU"写清楚,这个在 R2019_1中是可以省略的。
2、容易问题的地方和解决提示
 
出现问题的原因大多是因为系统中安装了多个版本的OpenVINO,DLL文件混乱,比如出现下图这种错误
 
 
这里是一些提示
1、程序的目录不要放在有空格和中文的地方
虽然OpenVINO中没有明确说明这个问题,但是这的确是非常容易出现问题的地方:
比如下图中,我通过Depends进行比较,就发现了一些问题
 
2、使用工具、系统思考分析问题原因
 
比如这里出现的问题,程序是可以生成的,但是在Core ie 生成的时候错误,那么我就要去找,Core是什么东西,它来自于inferencePlugin,那么肯定就是cpu_extension.dll 或者 inference_engined.dll 这些库的问题;在使用Depends进行寻找,进一步分析问题。
 
这篇博客中肯定还有很多分析不到位的地方,欢迎留言交流!
感谢阅读至此,希望有所帮助!
 





Guess you like

Origin www.cnblogs.com/jsxyhelu/p/11526313.html