在Windows平台下搭建Darknet所遇到的问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ali_dongdong/article/details/70176195

1. VS2012 打开 VS2015创建的工程,会报错误:项目文件包含 ToolsVersion="14.0" 设置,但此工具集未知或缺失。您可以通过为此工具集安装相应的 .NET Framework 来解决此问题。将项目视为具有 ToolsVersion="4.0" 设置。

解决办法:1、将属性-常规-平台工具集 选择为VS2012 V110;2、将 xxxx.vcxproj 用写字本打开,将 ToolsVersion="14.0"  修改为  ToolsVersion="4.0"(VS2015对应14.0,VS2012对应4.0)

2. nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

解决办法:Ok, so it seems that I fixed it. Njuffa, following your lead here's what I did: I went into the Project Properties->CUDA C/C++ -> Command Line. At the bottom of the window there's a box that says Additional Options. I copied and pasted this:

  1. -gencode=arch=compute_50,code=\"sm_50,compute_50\"
The warnings went away. Problem solved. Now Visual Studio works just fine.
You definitely steered me in the right direction! Thanks for your help!
PS: I'm just stubborn ... I didn't need to fix this I just don't like to give up. :)
I would have been totally fine using the command line and not waste any time with this Visual Studio shenanigans ... I'm with you in that I prefer classic makefiles myself. Thanks!

3. 在使用Visual Studio 编译代码时,有一个警告很常见warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。这样的警告很烦人,那又怎样才能彻底解决该警告呢?

解决办法:打开引起警告C4819的文件,展开“文件”->“高级保存选项...”;在“高级保存选项”对话框中,设置“编码”的值为“Unicode-代码页1200”;确定后,保存文件,再编译就可以。

4. 自己的修改:在maxpool_layer_kernels.cu文件中加入

const double INFINITY = 1e10;

5. YOLO源码解析http://blog.csdn.net/u014540717/article/list/2

展开阅读全文

没有更多推荐了,返回首页