-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caffe on Windows #15
Comments
In principle compiling and running on Windows is possible, but we do not have a Makefile for it, nor do we currently plan on supporting it. However, contributions to this end are welcome! |
I have ported Caffe to Windows. It is built by Visual Studio 2012. |
Thank you for porting Caffe! Could you publish your code on your fork? We do not officially support windows yet, but we could direct others interested in running Caffe on windows to your work. |
Yes, I created a new branch named as "windows" on my own repository. You may refer to the installation guide for more details. Look forward to any feedback from all of you. |
@niuzhiheng Can your windows version codes run in a VS2010 environment? |
I am not sure for VS2010, but it has been confirmed that both VS2012 professional and VS2012 express are OK. There are two main concerns for other Visual Studio versions:
|
@niuzhiheng I am wondering could I have your mail ID - I have some questions in building caffe by vs 2010 and would like to get some directions from you. My gmail is liunian228@gmail.com, thanks in advance! |
@niuzhiheng I have downloaded your fork, but i can only find the ".dll" files, no ".h" files and "*.lib" files of "3rdparty." |
@zgxiangyang The dependencies can be download from here You may refer to the installation guide for more details. |
@niuzhiheng I have downloaded it before, there are only several".dll" files. But without the corresponding '.lib" files, I have no way to use it in my projects. I can only run the demo. |
Thanks a lot @niuzhiheng, your windows port works handsomely on windows server 2012 with VS2012. One note for others using the windows branch that took me sometime to figure, they should use the old architecture (the one with explicit padding layers) not the new one. i.e. in order to use the cifar sample, they should use this net architecture, not the one in master. Mnist example in master works smoothly as it does not have any padding layers. |
@aybassiouny you are correct. I am considering to update the windows port to new net architecture and up to date when caffe officially release 1.0 version. |
@niuzhiheng new PR is out! |
Hi, I am planning to compile caffe in win32. It seems the dependencies building is difficult. @niuzhiheng Could you help to build win32 dependencies files and share it. |
Cmake can generate Visual Studio files. |
Not all the dependencies are compatible with Windows. For example, the pthread used by the various data layer to prefetch the data is only available on Linux/Unix. If they are not replaced by boost::thread, you can only simulate Linux with MinGW or Cygwin. In my experiences, they brought up too many unnecessary complications and are not suitable for running complex projects such as Caffe and it's dependencies. If you do want to use Caffe, install the latest version of Ubuntu which is the most popular and the easiest Linux OS. |
@kloudkl is right. The official Linux version is well supported by the Caffe community with frequent updates and discussions. The windows porting currently has many limitations and most importantly it is lacking community support. One may start with this windows porting, if you quite rely on visual studio as your favorite IDE. Once you become familiar with Caffe, you'd better deploy from the official branches. |
I have managed to compile latest caffe using #442, it is kind of a hellish process, but overall I fixed major errors following footsteps of @niuzhiheng's port. I am a total newbie to github, should I submit it as a pull request to to the windows port? |
I am interested in caffe for windows. Could you push your changes to github? Could you create a branch and push it up? @aybassiouny -----Thư Gốc----- I have managed to compile latest caffe using #442, it is kind of a hellish process, but overall I fixed major errors following footsteps of @niuzhiheng's port. |
@aybassiouny my advice is to coordinate with @niuzhiheng, who has kindly A good first step is to push your Windows branch to your own fork and link On Sun, Jun 29, 2014 at 3:47 AM, thuanvh notifications@github.com wrote:
|
You might also want to check with @s-gupta who has experience compiling and using caffe on Windows as part of an internship. |
@niuzhiheng Excuse me, I'm trying to run your code on windows platform. But it seems the download link of the dependencies you gave are not available now...I'm not sure whether it's the problem of my network. Could you please check the download link? Thanks a lot!!! |
I have no problem in downloading dependencies of windows. https://dl.dropboxusercontent.com/u/3466743/caffe-vs2012/dependency.7z |
@thuanvh Well, maybe there's something wrong with my network... I've already got the dependencies through other ways. Thanks!! |
Please use the updated download link if you use my updated code. Up to now, I have three versions, dependency.7z, dependency-20140514.7z, dependency-20140624.7z. |
@aybassiouny and @shelhamer I am also interested in using CMake for windows porting. And I am very glad to have @aybassiouny as a collaborator to my repo if you want. |
Hi everyone, I am the new windows branch maintainer. I just updated the windows branch with a CMake build and associated instructions. You can still find the old VS based build but I am deprecating it in favor of CMake which will be easier to keep up to date with the master branch. This build has successfully been tested by @lunzueta, @PaulDufort and @recheliu. All feedback and contributions are appreciated. Please submit only windows related PRs to the windows branch and submit general (new layers, solvers, etc) to the master branch. I will soon update the windows branch with the latest master changes, CUDA 8, VS 2015 and Python 3.5 support. I will send an update here when this is done. |
Thank you for your hard work @willyd. This is very good news! :-D |
Thanks again @willyd, this will be a big help to a lot of people! |
For those who would like to follow the latest master merge PR, here it is #4854. |
@willyd , This is great. Any chance for Offline compilation support as well? Moreover, Thank You. |
Technically it is possible to build caffe offline. It is just a matter of getting the dependencies, you can either:
If you want python support download the conda packages you need and install them using
I am, but would definitely appreciate some help on this. I have MATLAB at work but I do most of the maintenance on a machine that does not have MATLAB and I am not willing to pay a few K$ for a license. Plus Appveyor does not have MATLAB installed. |
thanks @willyd , I built with Visual C++ 2015 your new windows branch and was successful |
@willyd , I'm using Caffe on MATLAB. One idea is use Octave if they have the same MEX API. I have another idea to assist you with MATLAB. The main issue on Windows + MATLAB is that the training never works. |
@willyd , You are amazing. As for now, the "Train" command in the MEX crashes MATLAB. |
VS 2015 support was merged in windows branch #4884 . |
Matlab support is now merged in the latest windows branch. @RoyiAvital you can test if it works for you. |
Python 3.5 is now officially supported using MSVC 2015. |
Hi everyone, I am seeking some help to port and test the latest parallelism changes that have been merge in the master branch. I created an issue about it here: #5216. If anyone is interested in helping to integrate this change into the windows branch please start a discussion in the mentioned issue. |
@willyd , I can see there are Pre Built binaries. Then I will be able to assist and test for you. Thank You. |
I am afraid that I won't provide prebuilt binaries with MATLAB support anytime soon. The prebuilt binaries are rebuilt automatically on the appveyor CI platform which does not have MATLAB installed. Sorry about that. |
@willyd , 2 things:
If the answer to 2 is yes, how could I contact you? I may be able to assist. Thank You. |
|
Closing as the Windows branch is alive and well thanks to an incredible effort by many community contributors now led by @willyd! |
dev-31752: FRCNN layers should use opencv 3.
hi i have this error -- Build files have been written to: C:/Users/ali alaobali/Downloads/caffe/caffe/build windows 10 64 |
the standalone package could you please check? the proper version of dependencies ( and not current ) is a 'must have" |
If you want to have a customized Caffe build on Windows where you can interactively select which compilers and libraries to use, please try CK workflow for Caffe as described in #5675 (comment) . I just tested it with VS 2015, Cuda 9.1, python 3.5 on Windows 10 and it worked:
After installation, you can detect other VS and CUDA versions as following:
and then rebuild Caffe with new combinations of VS and CUDA as above. You can then use these customized builds from virtual environment as follows:
Hope it's of any help ;) ... |
You can also try to use the conda packages. See #6569 (comment). |
I have successfully run Caffe on Ubuntu 12.04. I am wondering whether Caffe is able to run on Windows system?
The text was updated successfully, but these errors were encountered: