我正在尝试在 pycaffe 上实现 DNN (mnist)。
pretrained_solver = caffe.SGDSolver('mnist/lenet_solver.prototxt')
pretrained_solver = caffe.get_solver('mnist/lenet_solver.prototxt')
上面两行有什么区别? 看来我用任何一行都得到了相同的结果......
最佳答案
根据https://github.com/BVLC/caffe/issues/3033 ,
The first (get_solver) allows you to specify the solver type in the prototxt.
The second (SGDSolver) is less reliable because if you specify a different solver type in the prototxt, then it will still use SGDSolver and not tell you that you have a mismatch.
关于python - pycaffe中SGDSolver和get_solver方法有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40276688/