train_mfh_coatt_glove.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:vqa-mfb 作者: yuzcccc 项目源码 文件源码
def get_solver(folder):
    s = caffe_pb2.SolverParameter()
    s.train_net = './%s/proto_train.prototxt'%folder
    s.snapshot = 10000
    s.snapshot_prefix = './%s/'%folder
    s.max_iter = int(config.MAX_ITERATIONS)
    s.display = int(config.VALIDATE_INTERVAL)
    s.type = 'Adam'
    s.stepsize = int(config.MAX_ITERATIONS*0.4)
    s.gamma = 0.25
    s.lr_policy = "step"
    s.base_lr = 0.0007
    s.momentum = 0.9
    s.momentum2 = 0.999
    s.weight_decay = 0.000
    s.clip_gradients = 10
    return s
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号