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

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

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值