This is a C++ example using caffe to train with a dataset and test using the trained model.
-
Populate the
data
directory- Refer this README.md for how to.
-
Configure ex_model.prototxt and ex_solver.protoxt files
- set
net:
snapshot_prefix:
params of ex_solver.prototxt - set
source
for train and test data input layers in the ex_model.prototxt
- set
-
Edit the following variables in ODCNNTrainerTest.cpp
- set
solver_file
,train_data_dir
andtest_data_dir
- set
-
Build the project
-
Run ODCNNTrainerTest.cpp