caffe's python interface learning (3) training model training

 If you don't want to visualize and just want to get a final training model, then the code is very simple, as follows:

import caffe
caffe.set_device(0)
caffe.set_mode_gpu()
solver = caffe.SGDSolver('/home/xxx/data/solver.prototxt') solver.solve()

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325312520&siteId=291194637