Skip to content

Commit

Permalink
[pycaffe] classifier + detector only have one input
Browse files Browse the repository at this point in the history
  • Loading branch information
shelhamer committed Mar 8, 2015
1 parent 3f68c51 commit 0b39892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/caffe/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, model_file, pretrained_file, image_dims=None,
# configure pre-processing
in_ = self.inputs[0]
self.transformer = caffe.io.Transformer(
{in_: self.blobs[in_].data.shape for in_ in self.inputs})
{in_: self.blobs[in_].data.shape})
self.transformer.set_transpose(in_, (2,0,1))
if mean is not None:
self.transformer.set_mean(in_, mean)
Expand Down
2 changes: 1 addition & 1 deletion python/caffe/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, model_file, pretrained_file, mean=None,
# configure pre-processing
in_ = self.inputs[0]
self.transformer = caffe.io.Transformer(
{in_: self.blobs[in_].data.shape for in_ in self.inputs})
{in_: self.blobs[in_].data.shape})
self.transformer.set_transpose(in_, (2,0,1))
if mean is not None:
self.transformer.set_mean(in_, mean)
Expand Down

0 comments on commit 0b39892

Please sign in to comment.