net_surgery.py 文件源码

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

项目:ifp 作者: morris-frank 项目源码 文件源码
def pre_transplant(inp_proto, inp_model, fcn_proto, fcn_model):
    state = caffe.TRAIN
    net = caffe.Net(inp_proto, inp_model, state)

    new_net = caffe.Net(fcn_proto, inp_model, state)

    new_net = transplant(new_net, net, '-deconv')
    new_net.save(fcn_model)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号