python - pycaffe中SGDSolver和get_solver方法有什么区别?

标签 python caffe pycaffe

我正在尝试在 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/

相关文章:

machine-learning - TensorFlow:训练好的模型存储在哪里以及如何访问?

tensorflow - 通过finetuning训练全卷积网络时如何处理BatchNorm层?

python - 构建pycaffe时找不到hdf5库

python - 当我在没有 MKL 的情况下安装 pycaffe 时出现导入错误

python - 无法将 PyQT 设计器文件编译为 Python

python - 无法在 Pandas 中创建折线图

python - 在python源代码中查找非ascii字节串

c++ - 在caffe中只编译一层文件

python 访问返回的变量

python - 如何根据值从列表中选择实例?