Skip to content

Commit b48432d

Browse files
committed
Fix for Python 3
1 parent ef87816 commit b48432d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kaffe/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def __init__(self, def_path, phase='test'):
142142
def load(self):
143143
'''Load the layer definitions from the prototxt.'''
144144
self.params = get_caffe_resolver().NetParameter()
145-
with open(self.def_path, 'rb') as def_file:
145+
with open(self.def_path, 'r') as def_file:
146146
text_format.Merge(def_file.read(), self.params)
147147

148148
def filter_layers(self, layers):

0 commit comments

Comments
 (0)