Locating The Output of A Training Session
Hi there!
We trained Caffe on a binary classification problem, following the general approach on the ImageNet Training Recipe Page. We represented the information from the jpg sources in the leveldb format that caffe uses and wrote structurally sound {solver,train,test} prototxt net structures. We ran build/tools/train_net.bin solver.prototxt and the program correctly output solverstates according to our snapshot parameter. So far so good. However, we can't use the python module's caffe.Classifier without a "model" file. I see no model file output by Caffe as a result of train_net and solver.prototxt, the only input, made no reference to a model file. In the examples on the website, we were just directed to download the models. What should we do?
Any help or insight into training Caffe for a binary classification problem is greatly appreciated!
In solver.prototxt you will be able to define the snapshot prefix:
snapshot_prefix: "caffe_imagenet_train"
When you run the program, every few iterations (specified by snapshot) the trainer will dump parameters to the folder you are running the trainer from, with names like caffe_imagenet_train_460000. These are the model files you'll use for future classification.
Using those numbered output files worked great, thanks for your quick response!