Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Update project file and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0n committed Nov 15, 2015
1 parent 66c6b3e commit 26c6874
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
6 changes: 3 additions & 3 deletions MSVC/caffe.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ProjectGuid>{537EF951-4B02-4103-A310-52A6F7C8D748}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>caffe</RootNamespace>
<ProjectName>Caffe</ProjectName>
<ProjectName>caffe</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
Expand Down Expand Up @@ -69,7 +69,7 @@
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>lib\$(Configuration);..\3rdparty\lib;..\3rdparty\lib;$(CUDA_PATH)\lib\$(PlatformName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>caffelib.lib;cudnn.lib;opencv_core249d.lib;opencv_calib3d249d.lib;opencv_contrib249d.lib;opencv_flann249d.lib;opencv_highgui249d.lib;opencv_imgproc249d.lib;opencv_legacy249d.lib;opencv_ml249d.lib;opencv_gpu249d.lib;opencv_objdetect249d.lib;opencv_photo249d.lib;opencv_features2d249d.lib;opencv_nonfree249d.lib;opencv_stitching249d.lib;opencv_video249d.lib;opencv_videostab249d.lib;cudart.lib;cuda.lib;nppi.lib;cufft.lib;cublas.lib;curand.lib;gflagsd.lib;libglog.lib;libopenblas.dll.a;libprotobufd.lib;libprotoc.lib;leveldbd.lib;lmdbd.lib;libhdf5_D.lib;libhdf5_hl_D.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>caffe.lib;cudnn.lib;opencv_core249d.lib;opencv_calib3d249d.lib;opencv_contrib249d.lib;opencv_flann249d.lib;opencv_highgui249d.lib;opencv_imgproc249d.lib;opencv_legacy249d.lib;opencv_ml249d.lib;opencv_gpu249d.lib;opencv_objdetect249d.lib;opencv_photo249d.lib;opencv_features2d249d.lib;opencv_nonfree249d.lib;opencv_stitching249d.lib;opencv_video249d.lib;opencv_videostab249d.lib;cudart.lib;cuda.lib;nppi.lib;cufft.lib;cublas.lib;curand.lib;gflagsd.lib;libglog.lib;libopenblas.dll.a;libprotobufd.lib;libprotoc.lib;leveldbd.lib;lmdbd.lib;libhdf5_D.lib;libhdf5_hl_D.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PreBuildEvent />
<PostBuildEvent>
Expand Down Expand Up @@ -98,7 +98,7 @@ exit 0</Command>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalLibraryDirectories>lib\$(Configuration);..\3rdparty\lib;..\3rdparty\lib;$(CUDA_PATH)\lib\$(PlatformName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>caffelib.lib;cudnn.lib;opencv_core249.lib;opencv_flann249.lib;opencv_imgproc249.lib;opencv_highgui249.lib;opencv_legacy249.lib;opencv_video249.lib;opencv_ml249.lib;opencv_calib3d249.lib;opencv_objdetect249.lib;opencv_stitching249.lib;opencv_gpu249.lib;opencv_nonfree249.lib;opencv_features2d249.lib;cudart.lib;cuda.lib;nppi.lib;cufft.lib;cublas.lib;curand.lib;gflags.lib;libglog.lib;libopenblas.dll.a;libprotobuf.lib;libprotoc.lib;leveldb.lib;lmdb.lib;libhdf5.lib;libhdf5_hl.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>caffe.lib;cudnn.lib;opencv_core249.lib;opencv_flann249.lib;opencv_imgproc249.lib;opencv_highgui249.lib;opencv_legacy249.lib;opencv_video249.lib;opencv_ml249.lib;opencv_calib3d249.lib;opencv_objdetect249.lib;opencv_stitching249.lib;opencv_gpu249.lib;opencv_nonfree249.lib;opencv_features2d249.lib;cudart.lib;cuda.lib;nppi.lib;cufft.lib;cublas.lib;curand.lib;gflags.lib;libglog.lib;libopenblas.dll.a;libprotobuf.lib;libprotoc.lib;leveldb.lib;lmdb.lib;libhdf5.lib;libhdf5_hl.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>robocopy ..\3rdparty\bin $(SolutionDir)bin\$(Configuration) /xo /xn
Expand Down
7 changes: 4 additions & 3 deletions MSVC/caffelib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ProjectGuid>{7F271127-D68A-4B9B-ACCE-1369394ED6E5}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>caffe</RootNamespace>
<ProjectName>CaffeLib</ProjectName>
<ProjectName>caffe.lib</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
Expand Down Expand Up @@ -45,14 +45,15 @@
<LinkIncremental>true</LinkIncremental>
<OutDir>lib\$(Configuration)\</OutDir>
<TargetExt>.lib</TargetExt>
<TargetName>$(ProjectName)</TargetName>
<TargetName>caffe</TargetName>
<IntDir>obj\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>lib\$(Configuration)\</OutDir>
<TargetExt>.lib</TargetExt>
<IntDir>obj\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>caffe</TargetName>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
Expand Down Expand Up @@ -268,4 +269,4 @@
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 7.5.targets" />
</ImportGroup>
</Project>
</Project>
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Caffe

[![Build Status](https://travis-ci.org/BVLC/caffe.svg?branch=master)](https://travis-ci.org/BVLC/caffe)
[![License](https://img.shields.io/badge/license-BSD-blue.svg)](LICENSE)

Caffe is a deep learning framework made with expression, speed, and modularity in mind.
It is developed by the Berkeley Vision and Learning Center ([BVLC](http://bvlc.eecs.berkeley.edu)) and community contributors.

Expand All @@ -12,10 +15,22 @@ Check out the [project site](http://caffe.berkeleyvision.org) for all the detail

and step-by-step examples.

## Setup
`git clone git@github.com:MSRDL/caffe.git`
## Windows Setup
**Requirements**: Visual Studio 2013 and CUDA 7.5

Once the requirements are satisfied, run these commands
```
git clone git@github.com:MSRDL/caffe.git
cd caffe
git clone git@github.com:MSRDL/wincaffe-3rdparty.git 3rdparty
```
Now, you should be able to build `caffe.sln`

## Development

For development in Windows, also run `git clone git@github.com:MSRDL/wincaffe-3rdparty.git 3rdparty` from the `caffe` folder.
### Common issues when pulling new commits from BVLC's branch
- If compilation fails: regenerate `caffe.pb.h` and `caffe.pb.cc` files. This can be done by removing `src\caffe\proto\caffe.pb.h` file. The build process will regenerate if this file is missing.
- If linking fails: it's likely that there are new `cpp` files that need to be added to the `caffelib` project.

## License and Citation

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/GeneratePB.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if exist "../src/caffe/proto/caffe.pb.h" (
echo caffe.pb.h remains the same as before
) else (
echo caffe.pb.h is being generated
"../3rdparty/tools/protoc" -I="../src/caffe/proto" --cpp_out="../src/caffe/proto" "../src/caffe/proto/caffe.proto"
..\3rdparty\tools\protoc -I="../src/caffe/proto" --cpp_out="../src/caffe/proto" "../src/caffe/proto/caffe.proto"
copy "..\src\caffe\proto\caffe.pb.h" "..\include\caffe\caffe.pb.h"
)

1 comment on commit 26c6874

@zer0n
Copy link
Author

@zer0n zer0n commented on 26c6874 Nov 15, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MSRDL/imgcap I had to roll back caffe to Oct version. There was static linking issue (similar to this) with the latest caffe that I couldn't figure out how to fix. Another weird thing is that it only affects the caffe.exe, which we use in training, and not the caffelib.managed.

Anyway, upgrading caffe is not a priority yet. That's why I gave up.

TL;DR: run git pull :)

Please sign in to comment.