caffe中solver配置文件的解读

刚刚步入caffe,对solver进行解读,用caffe中例子cifar-10的cifar10_quick_solver.prototxt文件进行演示:


# reduce the learning rate after 8 epochs (4000 iters) by a factor of 10



# The train/test net protocol buffer definition,网络架构文件,包含卷积网络中的层次定义,例如卷积层,relu层,softmax层等
net: "examples/cifar10/cifar10_quick_train_test.prototxt"
# test_iter specifies how many forward passes the test should carry out.
# In the case of MNIST, we have test batch size 100 and 100 test iterations,

# covering the full 10,000 testing images. 

#每次测试都投入全部的test图片,并且分成100批(test_iter:100)投入,

#因此(full 10,000 testing images)= (test_iter: 100)* (test的batch_size: 100)

test_iter: 100
# Carry out testing every 500 training iterations.每隔500次训练进行一次测试
test_interval: 500
# The base learning rate, momentum and the weight decay of the network.学习率、动量、权重衰减
base_lr: 0.001  
momentum: 0.9
weight_decay: 0.004
# The learning rate policy
lr_policy: "fixed"
# Display every 100 iterations,每隔100次训练,输出一次迭代结果
display: 100
# The maximum number of iterations,最大训练次数
max_iter: 4000
# snapshot intermediate results,每隔4000次保存一次当前训练的结果,并生成为模型文件
snapshot: 4000
snapshot_format: HDF5
snapshot_prefix: "examples/cifar10/cifar10_quick"
# solver mode: CPU or GPU,选择CPU或GPU训练
solver_mode: GPU
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值