Skip to content

Commit

Permalink
fix draw_net python script
Browse files Browse the repository at this point in the history
include caffe.draw for drawing functions.
  • Loading branch information
shelhamer committed May 22, 2014
1 parent 2cb1359 commit 1cb6fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/draw_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
from google.protobuf import text_format

import caffe
import caffe, caffe.draw
from caffe.proto import caffe_pb2


Expand All @@ -17,7 +17,7 @@ def main(argv):
net = caffe_pb2.NetParameter()
text_format.Merge(open(sys.argv[1]).read(), net)
print 'Drawing net to %s' % sys.argv[2]
draw_net_to_file(net, sys.argv[2])
caffe.draw.draw_net_to_file(net, sys.argv[2])


if __name__ == '__main__':
Expand Down

0 comments on commit 1cb6fea

Please sign in to comment.