Skip to content

Commit 1cb6fea

Browse files
committed
fix draw_net python script
include caffe.draw for drawing functions.
1 parent 2cb1359 commit 1cb6fea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/draw_net.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
from google.protobuf import text_format
77

8-
import caffe
8+
import caffe, caffe.draw
99
from caffe.proto import caffe_pb2
1010

1111

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

2222

2323
if __name__ == '__main__':

0 commit comments

Comments
 (0)