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[ ]:
评论列表
文章目录