Caffe Windows Install


Sep 1, 2016 - git clone cd caffe git checkout windows:: Added path to Python directory on my machine and added -DCUDNN_ROOT=C: Program Files NVIDIA GPU Computing Toolkit CUDA v8.0 ^ where I have copied cuDNN in CUDA directory. Scripts build_win.cmd. Install Anaconda, make sure you select Register Anaconda as system path for Python 3. Selenium Webdriver Tutorial Java With Examples Pdf there. 5; Install and activate Matlab using your Matlab licence (only if you need to build matcaffe). Open command window in the desired folder 'C: Projects' (Shift+RightClick and Open Command Window here). Enter the following commands. One of the easiest ways to install the CAFFE framework on windows!
Caffe is a deep learning framework popular in Linux with Python or Matlab interface. I just managed to compile Caffe in Windows, and I think it’s worth sharing. Was of great help. This repository is organized in a way that future update merging from would be very straight forward. For quick setup and usage go to my. For quick and dirty start, go to, where I’ll provide 1) the modified file that can be compiled in windows right away; 2) the vs2013 project that I’m currently using. Below is my step by step record to compile Caffe from source in Windows 8.1 + vs2013 + OpenCV 2.4.9 + CUDA 6.5.
• Download source from and unzip. • Create a new project in Visual Studio 2013. • File ->New ->Project • Choose Win32 Console Application • Set location to the root of Caffe • Change Name to caffe (the generated exe file later is named after the project name, so please use this low case word) • Click OK • Check Empty project, and then Finish • Change the platform from Win32 to • Build ->Configuration Manager ->Active solution platform ->new ->x64 ->OK • An empty project called caffe is generated into the root of Caffe now. To compile big project like Caffe, good practice is to compile a few *.cpp files first and figure out dependencies one by one.
• Drag files in caffe/src/caffe to Source Files in VS. • Let’s set some directories of the project. • In Property Manager, both Debug x64 and Release x64 need to be set: • In Configuration Properties ->Craps Dealer Training Manual. General, set Output Directory to ‘./bin’. The generated exe files will be easy to use later.
Change for both Debug and Release mode. • In Configuration Properties ->C/C++ ->General, edit Additional Include Directories (Both Debug and Release) to include:./include;./src; • Make sure to check Inherit from parent or project defaults. • Now let’s fix dependencies one by one: (My pre-built 3rdparty folder can be downloaded:, if you are using Windows 64bit + vs2013) • CUDA 6.5 • Download and install (You have to have a GPU on your PC lol) • OpenCV 2.4.9 + CUDA 6.5 • OpenCV libraries should work. If you want to build OpenCV with CUDA to enable OpenCV’s GPU support such as GpuMat, a tutorial can be found. Seems it’s not required by Caffe though. • Boost • ones works fine. • OpenBLAS • ones works fine. • Update: required 3 dll files (libgcc_s_seh-1.dll, libgcc_s_sjlj-1. Download Leftsider For Windows 8. dll, libgfortran-3.dll, libquadmath-0.dll) can be found here: (x64) • Add OpenCV + CUDA + Boost into the project: • I used to put these 3 libraries outside Caffe folder because they are so useful.
• Add include path to Additional Include Directories: (Both Debug and Release) $(CUDA_PATH_V6_5) include $(OPENCV_X64_VS2013_2_4_9) include $(OPENCV_X64_VS2013_2_4_9) include opencv $(BOOST_1_56_0) • CUDA_PATH_V6_5 is added by CUDA initialization. OPENCV_X64_VS2013_2_4_9 and BOOST_1_56_0 need to be added to the Environment Variables Also, the bin (e.g. /to/opencv-2.4.9/x64-vs2013/bin) folder of OpenCV need to be added to Path. You may need to log off to enable them. I have some problem when building your code on x64 debug mode. Can you help me solve the two problems? 1>common.obj: error LNK2019: unresolved external symbol “__declspec(dllimport) void __cdecl google::InstallFailureSignalHandler(void)” (__imp_?InstallFailureSignalHandler@google@@YAXXZ) referenced in function “void __cdecl caffe::GlobalInit(int *,char * * *)” (?GlobalInit@caffe@@YAXPEAHPEAPEAPEAD@Z) 1>data_layer.obj: error LNK2019: unresolved external symbol “class boost::shared_ptr,class caffe::Datum,struct caffe::dataset_internal::DefaultCoder >,struct caffe::dataset_internal::DefaultCoder >>__cdecl caffe::DatasetFactory,class caffe::Datum>(enum caffe::DataParameter_DB const &)”.