Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix caffe importer (#5415)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbodenstein authored and mli committed Mar 15, 2017
1 parent ec19e4d commit 2f201fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/caffe_converter/caffe_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def read_caffemodel(prototxt_fname, caffemodel_fname):
return (layers, layer_names)
else:
proto = caffe_pb2.NetParameter()
with open(fname, 'rb') as f:
with open(caffemodel_fname, 'rb') as f:
proto.ParseFromString(f.read())
return (get_layers(proto), None)

Expand Down

0 comments on commit 2f201fa

Please sign in to comment.