Skip to content
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

BVLC/caffe "windows environment compiles & examples run" #6146

Open
briansune opened this issue Jan 2, 2018 · 2 comments
Open

BVLC/caffe "windows environment compiles & examples run" #6146

briansune opened this issue Jan 2, 2018 · 2 comments
Labels

Comments

@briansune
Copy link

briansune commented Jan 2, 2018

** Issue summary**
BVLC/caffe "windows environment compiles & examples run"

After successfully compiler and install the caffe in windows environment i.e. (Windows 7 64bit), the build files and folder lead to example run files linking issues.
The latest version of Caffe in BVLC/caffe or windows build complete will generate build folder with “build\ “different files” ”.

** Steps to reproduce & Solutions**
Issues (1) running examples in Root\caffe\examples:
In example MNIST:
By running in Git CMD:
cd $CAFFE_ROOT
./data/mnist/get_mnist.sh
./examples/mnist/create_mnist.sh

First command: “./data/mnist/get_mnist.sh“, should run without problems.
Second command end up with an error that pointing to not “convert_mnist_data.bin” file <- this error is due to Linux environment file linkage, while Windows environment would compile “convert_mnist_data.exe” under examples\mnist\Release folder.

The shell code have two major problems:
@ line 17 to 20: the original code is “$BUILD/convert_mnist_data.bin”
It should be “$BUILD/Release/convert_mnist_data.exe”

After modifying the shell code the “./examples/mnist/create_mnist.sh” should run without error.

Besides the initialization of MNIST:
Training and Testing the Model also follows the same issues.
cd $CAFFE_ROOT
./examples/mnist/train_lenet.sh

After running the shell code in “train_lenet.sh”, the error is asking for a correct folder @ line 4.

The original code:
./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt $@

Should modified as:
./build/tools/Release/caffe.exe train --solver=examples/mnist/lenet_solver.prototxt $@

Under the above errors, it is clearly that the build/ install folders are not consistence with the Windows environment.

All example runs or further caffe network runs are problematic due to file linkage issues.


Modification in most shell files in "caffe\examples.." or "caffe\build.." are needed, while most shell files are missing critical exe files link.

System configuration
Operating system: Windows 7 64bit
Compiler: VS2015
CUDA version 8.0
CUDNN version 5.1 @CUDA8.0

@Noiredd Noiredd added the windows label Jan 3, 2018
@LaurentBerger
Copy link

@briansune Can you use absolute path in all prototxt files?

@briansune
Copy link
Author

@LaurentBerger the solutions are posted, but it is not the best way to solve the problem.
The problem aren't the prototxt files, which are the link in the shell files and the compiled folder arrangements.
The best solution is modifing the generated file link and folder link at the beginning of the make script.
However, modification in the original clone caffe is waiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants