training.py 文件源码

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

项目:DeepNet 作者: hok205 项目源码 文件源码
def draw_network(model, image_path):
    """ Draw a network and save the graph in the specified image path

        Args:
            model (str): path to the prototxt file (model definition)
            image_path (str): path where to save the image
    """

    net = caffe_pb2.NetParameter()
    text_format.Merge(open(model).read(), net)
    caffe.draw.draw_net_to_file(net, image_path, 'BT')


# In[ ]:
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号