Skip to content

Commit

Permalink
[pycaffe] no need to squeeze output after #1970
Browse files Browse the repository at this point in the history
fix #2041 reported by @dgmp88
  • Loading branch information
shelhamer committed Mar 8, 2015
1 parent 256366b commit fc35930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/caffe/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def predict(self, inputs, oversample=True):
for ix, in_ in enumerate(input_):
caffe_in[ix] = self.transformer.preprocess(self.inputs[0], in_)
out = self.forward_all(**{self.inputs[0]: caffe_in})
predictions = out[self.outputs[0]].squeeze(axis=(2,3))
predictions = out[self.outputs[0]]

# For oversampling, average predictions across crops.
if oversample:
Expand Down

0 comments on commit fc35930

Please sign in to comment.