This repository was archived by the owner on Jun 13, 2024. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: MSVC/caffe.vcxproj +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 | <ProjectGuid>{537EF951-4B02-4103-A310-52A6F7C8D748}</ProjectGuid> |
15 | 15 | <Keyword>Win32Proj</Keyword> |
16 | 16 | <RootNamespace>caffe</RootNamespace> |
17 | | - <ProjectName>Caffe</ProjectName> |
| 17 | + <ProjectName>caffe</ProjectName> |
18 | 18 | </PropertyGroup> |
19 | 19 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
20 | 20 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
|
69 | 69 | <SubSystem>Console</SubSystem> |
70 | 70 | <GenerateDebugInformation>true</GenerateDebugInformation> |
71 | 71 | <AdditionalLibraryDirectories>lib\$(Configuration);..\3rdparty\lib;..\3rdparty\lib;$(CUDA_PATH)\lib\$(PlatformName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
72 | | - <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> |
| 72 | + <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> |
73 | 73 | </Link> |
74 | 74 | <PreBuildEvent /> |
75 | 75 | <PostBuildEvent> |
@@ -98,7 +98,7 @@ exit 0</Command> |
98 | 98 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
99 | 99 | <OptimizeReferences>true</OptimizeReferences> |
100 | 100 | <AdditionalLibraryDirectories>lib\$(Configuration);..\3rdparty\lib;..\3rdparty\lib;$(CUDA_PATH)\lib\$(PlatformName);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> |
101 | | - <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> |
| 101 | + <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> |
102 | 102 | </Link> |
103 | 103 | <PostBuildEvent> |
104 | 104 | <Command>robocopy ..\3rdparty\bin $(SolutionDir)bin\$(Configuration) /xo /xn |
|
Collapse file
Copy file name to clipboardExpand all lines: MSVC/caffelib.vcxproj +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 | <ProjectGuid>{7F271127-D68A-4B9B-ACCE-1369394ED6E5}</ProjectGuid> |
15 | 15 | <Keyword>Win32Proj</Keyword> |
16 | 16 | <RootNamespace>caffe</RootNamespace> |
17 | | - <ProjectName>CaffeLib</ProjectName> |
| 17 | + <ProjectName>caffe.lib</ProjectName> |
18 | 18 | </PropertyGroup> |
19 | 19 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
20 | 20 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
|
45 | 45 | <LinkIncremental>true</LinkIncremental> |
46 | 46 | <OutDir>lib\$(Configuration)\</OutDir> |
47 | 47 | <TargetExt>.lib</TargetExt> |
48 | | - <TargetName>$(ProjectName)</TargetName> |
| 48 | + <TargetName>caffe</TargetName> |
49 | 49 | <IntDir>obj\$(ProjectName)\$(Configuration)\</IntDir> |
50 | 50 | </PropertyGroup> |
51 | 51 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
52 | 52 | <LinkIncremental>false</LinkIncremental> |
53 | 53 | <OutDir>lib\$(Configuration)\</OutDir> |
54 | 54 | <TargetExt>.lib</TargetExt> |
55 | 55 | <IntDir>obj\$(ProjectName)\$(Configuration)\</IntDir> |
| 56 | + <TargetName>caffe</TargetName> |
56 | 57 | </PropertyGroup> |
57 | 58 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
58 | 59 | <ClCompile> |
|
268 | 269 | <ImportGroup Label="ExtensionTargets"> |
269 | 270 | <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 7.5.targets" /> |
270 | 271 | </ImportGroup> |
271 | | -</Project> |
| 272 | +</Project> |
Collapse file
Copy file name to clipboardExpand all lines: README.md +18-3Lines changed: 18 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Caffe |
2 | 2 |
|
| 3 | +[](https://travis-ci.org/BVLC/caffe) |
| 4 | +[](LICENSE) |
| 5 | + |
3 | 6 | Caffe is a deep learning framework made with expression, speed, and modularity in mind. |
4 | 7 | It is developed by the Berkeley Vision and Learning Center ([BVLC](http://bvlc.eecs.berkeley.edu)) and community contributors. |
5 | 8 |
|
@@ -12,10 +15,22 @@ Check out the [project site](http://caffe.berkeleyvision.org) for all the detail |
12 | 15 |
|
13 | 16 | and step-by-step examples. |
14 | 17 |
|
15 | | -## Setup |
16 | | - |
| 18 | +## Windows Setup |
| 19 | +**Requirements**: Visual Studio 2013 and CUDA 7.5 |
| 20 | + |
| 21 | +Once the requirements are satisfied, run these commands |
| 22 | +``` |
| 23 | + |
| 24 | +cd caffe |
| 25 | + |
| 26 | +``` |
| 27 | +Now, you should be able to build `caffe.sln` |
| 28 | + |
| 29 | +## Development |
17 | 30 |
|
18 | | -For development in Windows, also run `git clone [email protected]:MSRDL/wincaffe-3rdparty.git 3rdparty` from the `caffe` folder. |
| 31 | +### Common issues when pulling new commits from BVLC's branch |
| 32 | +- 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. |
| 33 | +- If linking fails: it's likely that there are new `cpp` files that need to be added to the `caffelib` project. |
19 | 34 |
|
20 | 35 | ## License and Citation |
21 | 36 |
|
|
Collapse file
Copy file name to clipboard File renamed without changes.
Collapse file
Copy file name to clipboardExpand all lines: scripts/GeneratePB.bat +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ if exist "../src/caffe/proto/caffe.pb.h" ( |
2 | 2 | echo caffe.pb.h remains the same as before |
3 | 3 | ) else ( |
4 | 4 | echo caffe.pb.h is being generated |
5 | | - "../3rdparty/tools/protoc" -I="../src/caffe/proto" --cpp_out="../src/caffe/proto" "../src/caffe/proto/caffe.proto" |
| 5 | + ..\3rdparty\tools\protoc -I="../src/caffe/proto" --cpp_out="../src/caffe/proto" "../src/caffe/proto/caffe.proto" |
6 | 6 | copy "..\src\caffe\proto\caffe.pb.h" "..\include\caffe\caffe.pb.h" |
7 | 7 | ) |
8 | 8 |
|