win10+VS2013+CPU配置caffe(windows分支)
阿新 • • 發佈:2019-01-08
參考
【caffe-Windows】微軟官方caffe之 matlab介面配置
【caffe-Windows】caffe+VS2013+Windows無GPU快速配置教程
問題
0.
假如打算使用pycaffe,可以先安裝Anaconda2。後面配置檔案需要使用。
部分配置選項:
1. 將windows分支fork到本地後,按照以上頁面要求做好前期準備包括安裝各種python庫,CUDA,cudnn 2. 用VS2013開啟caffe.sln,使用nuget下載第三方依賴庫 3.編譯中可能出現的錯誤 Q1: I got the error C2220: warning treated as error - no 'object' file generated (....\src\caffe\data_transformer.cpp) when building the libcaffe project.
How can i fix this error?
Thanks.
A1:
雙擊:錯誤 8559 error C2220: 警告被視為錯誤 - 沒有生成“object”檔案:,就會自動跳轉到(..\..\src\caffe\util\math_functions.cpp 重新儲存(Ctrl s)一下就可以了。
Q2:
windows下,matlab執行caffe/matlab/demo/classification_demo.m出錯,錯誤如正文。
未定義函式或變數 'caffe_'。
出錯 caffe.set_mode_cpu (line 5) caffe_('set_mode_cpu'); 出錯 classification_demo (line 70) caffe.set_mode_cpu();
A2:
遇到的就是我說的找不到caffe_的問題了
接下來我把這個\Build\x64\Release\matcaffe\+caffe\private這個資料夾裡面的東西全都拷貝到\matlab\+caffe\private覆蓋。
Q3:在anconda'下使用caffe
A3:需要配置。把D:\caffe\Build\x64\Release\pycaffe下的caffe資料夾拷貝至C:\Users\使用者名稱\Anaconda2\Lib\site-packages資料夾。
1. 將windows分支fork到本地後,按照以上頁面要求做好前期準備包括安裝各種python庫,CUDA,cudnn 2. 用VS2013開啟caffe.sln,使用nuget下載第三方依賴庫 3.編譯中可能出現的錯誤 Q1: I got the error C2220: warning treated as error - no 'object' file generated (....\src\caffe\data_transformer.cpp) when building the libcaffe project.
How can i fix this error?
出錯 caffe.set_mode_cpu (line 5) caffe_('set_mode_cpu'); 出錯 classification_demo (line 70) caffe.set_mode_cpu();