solver not found - wrong path?

449 views
Skip to first unread message

Bene

unread,
Dec 10, 2016, 12:13:20 PM12/10/16
to Caffe Users
Hello everyone,

for now one week i am trying to install caffe on my windows10 machine.
Thank god, i found you.
I got a llitlebit into struggle right now, at least i can type "caffe" into cmd and it seems to start.

But when I type:

caffe train --solver=examples/mnist/lenet_solver.prototxt

it says:
F1210 18:08:08.594794  6152 io.cpp:41] Check failed: fd != -1 (-1 vs. -1) File not found: examples/mnist/lenet_solver.prototxt
*** Check failure stack trace: ***

Which path should i add, that it will work? 
Because when i copy the lenet_solver.prototxt to the folder where the caffe.exe is (the added path works because i can start it) it says:

F1210 18:11:18.733867 11584 solver.cpp:438] Cannot write to snapshot prefix 'examples/mnist/lenet'.  Make sure that the directory exists and is writeable.
*** Check failure stack trace: ***

Can you help me?

Cheers and have good weekend,

ben

Fil K.

unread,
Dec 10, 2016, 7:39:05 PM12/10/16
to Caffe Users
Have you tried putting absolute path to your prototxt file?

Muthu Senthil

unread,
Sep 8, 2017, 4:56:49 AM9/8/17
to Caffe Users
Dear everyone,

Same problem is coming for me but 

C:\caffe-master\Build\x64\Release>caffe train -solver=c:/caffe-master/examples/mnist/lenet_solver.prototxt
I0908 17:52:41.175027  8064 caffe.cpp:211] Use CPU.
I0908 17:52:41.175027  8064 solver.cpp:48] Initializing solver from parameters:
test_iter: 100
test_interval: 500
base_lr: 0.01
display: 100
max_iter: 100
lr_policy: "inv"
gamma: 0.0001
power: 0.75
momentum: 0.9
weight_decay: 0.0005
snapshot: 5000
snapshot_prefix: "examples/mnist/lenet"
solver_mode: CPU
net: "examples/mnist/lenet_train_test.prototxt"
train_state {
  level: 0
  stage: ""
}
F0908 17:52:41.175027  8064 solver.cpp:438] Cannot write to snapshot prefix 'examples/mnist/lenet'.  Make sure that the directory exists and is writeable.

Gary

unread,
Sep 19, 2017, 8:01:22 AM9/19/17
to Caffe Users
I also meet this problem. Have you solve this problem already?
If you did, please help me. Thank you very much.

Bene於 2016年12月11日星期日 UTC+8上午1時13分20秒寫道:
Reply all
Reply to author
Forward
0 new messages