trainCaffe.py 文件源码

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

项目:infantSeg 作者: ginobilinie 项目源码 文件源码
def printNetwork(prototxt_filename, caffemodel_filename):
    '''
    Draw the CNN architecture as you want, actually, it may not work property
    '''
    _net = caffe.proto.caffe_pb2.NetParameter()
    f = open(prototxt_filename)
    google.protobuf.text_format.Merge(f.read(), _net)
    caffe.draw.draw_net_to_file(_net, prototxt_filename + '.png' )
    print('Draw CNN finished!')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号