zoukankan      html  css  js  c++  java
  • Windows 使用 Visual Studio 编译 caffe

    说明:最近看 caffe 发现在 github 上下载的源码没有windows版本的,需要自己生成项目文件才能用 Visual Studio 编译,这里记录一下生成Windows项目文件的方法以及编译过程

    编译环境:Visual Studio 2015 & CMake 3.11.2

    1、下载 caffe 源码 https://github.com/BVLC/caffe/tree/windows

    2、解压源码,这里是 E:githubcaffe-windows

    3、使用 CMake GUI 加载 E:githubcaffe-windows 并设置 build 路径为 E:githubcaffe-windowswindows
    4、点击 Configure 生成配置信息

    5、将 Ungrouped Entries 下面的 BLAS = Atlas 改成 Open

    6、勾选 Ungrouped Entries下面的 CPU_ONLY

    7、点击 Generate 生成 Visual Studio 2015 的项目文件

    等待生成完毕,就可以进入 E:githubcaffe-windowswindows 可以看到 caffe 的项目文件列表

    使用 Visual Studio 2015 打开 caffe.sln,然后在 CMakeTargates 编译 ALL_BUILD 等待编译完成即可

    等待编译完成后生成的项目保存在这个目录 E:githubcaffe-windowswindows oolsDebug

  • 相关阅读:
    SQLiteDatabase 源码
    SQLiteOpenHelper 源码
    Java同步机制总结--synchronized
    [Swift A]
    [Swift A]-问号&感叹号
    [Swift A]
    [Swift A]
    android 屏幕适配
    2014年度加班时间
    nodejs初学-----helloworld
  • 原文地址:https://www.cnblogs.com/tdhao/p/9078776.html
Copyright © 2011-2022 走看看