How can i train my datas? ths
Closed this issue · 5 comments
Lenovo caffe-cvprw15-master-image-retrieval-test # sh examples/cvprw15-cifar10/train_48.sh
examples/cvprw15-cifar10/train_48.sh: 1: examples/cvprw15-cifar10/train_48.sh: ../../build/tools/caffe: not found
Go to the folder /examples/cvprw15-cifar10
, and run the training script:
$ cd /examples/cvprw15-cifar10
$ ./train_48.sh
Hi @sunyinhui
Do you mean you want to train with CPU? Two things you need to do.
1.Modify the solver
$ vi solver_CIFAR10_48.prototxt
<<<<<<<<<<<<<<<<<<<< before
14 snapshot_prefix: "KevinNet_CIFAR10_48"
-------------------------------------------
14 snapshot_prefix: "KevinNet_CIFAR10_48"
15 solver_mode: CPU
>>>>>>>>>>>>>>>>>>>>> after
2.Modify the training script
$ vi train_48.sh
<<<<<<<<<<<<<<<<<<<< before
../../build/tools/caffe ..... -gpu 0 2>&1 | tee log.txt
-------------------------------------------
../../build/tools/caffe ..... 2>&1 | tee log.txt
>>>>>>>>>>>>>>>>>>>>> after
It works. Thank you for your enthusiastic