Changing the solver parameters in Caffe through pycaffe
问题 How can I change the solver parameter in Caffe through pycaffe? E.g. right after calling solver = caffe.get_solver(solver_prototxt_filename) I would like to change the solver's parameters (learning rate, stepsize, gamma, momentum, base_lr, power, etc.), without having to change solver_prototxt_filename . 回答1: Maybe you can create a temporary file. First of all, load your solver parameters with from caffe.proto import caffe_pb2 from google.protobuf import text_format solver_config = caffe_pb2