caffe的python接口学习(3):训练模型(training)

如果不进行可视化,只想得到一个最终的训练model, 那么代码非常简单,如下 :

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

原文链接:caffe的python接口学习(3):训练模型(training)

猜你喜欢

转载自blog.csdn.net/liuweiyuxiang/article/details/80958632