This is the script that I need to convert to batch file in windows :
#!/usr/bin/env sh TOOLS=./build/tools $TOOLS/caffe train \ --solver=examples/cifar10/cifar10_full_relu_solver_bn.prototxt
this is the script I came up with so far:
REM go to the caffe root cd ../../Build/x64/Release caffe.exe train --solver=../../../examples/cifar10/cifar10_full_relu_solver_bn.prototxt pause
This executes the executable (
caffe.exe) and passes the needed argument file as needed, but the problem is the argument file itself is pointing to another file which is relative to itself, and this second file is not found.
This is how the second file inside our argument file addressed :
To make things more clear, the hierarchy of the folders is like this :
|Build |--X64 |--Release |--caffe.exe |Examples |--Cifar10 |-- cifar10_full_relu_solver_bn.prototxt |-- Cifar10_train_test.prototxt |-- other files as well
my question is, Is there a way that I can use so that I dont need to change all relative file addresses as well ?