Pointing Caffe Train to train_val

290 views
Skip to first unread message

Saif Ahmed

unread,
Dec 5, 2015, 3:02:22 PM12/5/15
to Caffe Users
Good Morning All --

I got caffenet training working smoothly last year but i'm having trouble with the latest release of Caffe.  Specifically, I cant seem to point "caffe train" to the train_val.prototxt location.  With the solver.prototxt, there is a switch (--solver) to pass in the exact location of the file:

/home/myusername/caffe/build/tools/caffe train \
    --solver=/home/myusername/caffe/models/bvlc_reference_caffenet/solver.prototxt

However, there is no such switch for the train_val.prototxt.  It seems to be looking in some location, but it isnt clear what commands the location it is looking in...an environment variable?  some default location?  Because of that, the method always fails with File not found: models/bvlc_reference_caffenet/train_val.prototxt

The full error received is below.  How does one point to a specific train_val.prototxt and/or where should one place the train_val.prototxt?

I1205 22:52:03.178410  2741 solver.cpp:54] Initializing solver from parameters: 
test_iter: 1000
test_interval: 1000
base_lr: 0.01
display: 20
max_iter: 450000
lr_policy: "step"
gamma: 0.1
momentum: 0.9
weight_decay: 0.0005
stepsize: 100000
snapshot: 10000
snapshot_prefix: "models/bvlc_reference_caffenet/caffenet_train"
solver_mode: CPU
net: "models/bvlc_reference_caffenet/train_val.prototxt"
I1205 22:52:03.180025  2741 solver.cpp:96] Creating training net from net file: models/bvlc_reference_caffenet/train_val.prototxt
F1205 22:52:03.180097  2741 io.cpp:34] Check failed: fd != -1 (-1 vs. -1) File not found: models/bvlc_reference_caffenet/train_val.prototxt

Vaidyanath Venkitasubramanian

unread,
Dec 7, 2015, 3:45:22 PM12/7/15
to Saif Ahmed, Caffe Users
solver.prototxt has the path to the train_val.prototxt file.

This is the first line of my solver.prototxt file

net: "/path/to/train_val.prototxt"


-V

--
You received this message because you are subscribed to the Google Groups "Caffe Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caffe-users...@googlegroups.com.
To post to this group, send email to caffe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/e4699c35-2272-45c9-97d5-7d6f67f79d62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Wit beyond measure is mans greatest treasure

Reply all
Reply to author
Forward
0 new messages