Any step by step clear installation guide for caffe?

452 views
Skip to first unread message

Gana Bata

unread,
Nov 26, 2016, 6:37:26 AM11/26/16
to Caffe Users
Caffe installation guide is very messy and complicated to beginners.

I want to install caffe on Windows10 (+ Visual studio 2015 or 2013 + CPU based).

Following guidance of installation on Caffe home page is totally complicated to beginners like me.
I am not judging caffe, i just need help of better installation guide. 

I have VS2010-15 on my Windows10, i have no GeForce GPU so i need to install it for CPU usage.
But do not know how to install it step by step more detail. 



tigros999

unread,
Nov 27, 2016, 4:02:31 AM11/27/16
to Caffe Users
An easy caffe setup was done by Microsoft here https://github.com/Microsoft/caffe

After you've copied .\windows\CommonSettings.props.example to .\windows\CommonSettings.props change CommonSettings.props

        <CpuOnlyBuild>false</CpuOnlyBuild>
        <UseCuDNN>true</UseCuDNN>

to

        <CpuOnlyBuild>true</CpuOnlyBuild>
        <UseCuDNN>false</UseCuDNN>

then you won't need a GPU.

Load windows\Caffe.sln into VS 2013.

Select Debug or Release, suggest Release/X64, and build solution.

Simple as that!

Good luck!

Hossein Hasanpour

unread,
Nov 27, 2016, 2:42:18 PM11/27/16
to Caffe Users
If you dont have nvidia GPU, then try the OpenCL branch of caffe : https://github.com/BVLC/caffe/tree/opencl 
Its on linux only, by the way.  
 

Guillaume Dumont

unread,
Nov 28, 2016, 9:06:03 AM11/28/16
to Caffe Users
Hi, you might want to take another look at the (un)official windows branch at https://github.com/BVLC/caffe/tree/windows.

I just updated the instructions with a batch file that you may find easier to use.

As the readme now says, all you need to do is (the default is to use VS2015 but you can easily change that to VS2013):

C:\Projects> git clone https://github.com/BVLC/caffe.git
C:\Projects> cd caffe
C:\Projects\caffe> git checkout windows
:: Edit any of the options inside build_win.cmd to suit your needs
C:\Projects\caffe> scripts\build_win.cmd

And then you just call

C:\Projects\caffe> call build\libraries\prependpath.bat

So that the required DLLs can be found on your path. In case you encounter an error, post back the output of the commands. I am here to help.


Gana Bata

unread,
Feb 11, 2017, 10:19:03 AM2/11/17
to Caffe Users
Thanks i have followed your instruction and i got error here after i run:

C:\Projects\caffe> scripts\build_win.cmd

I have clonned NINJA into caffe folder or should i put that somewhere else?


Reply all
Reply to author
Forward
Message has been deleted
0 new messages