Skip to content

Commit fc35930

Browse files
committed
[pycaffe] no need to squeeze output after #1970
fix #2041 reported by @dgmp88
1 parent 256366b commit fc35930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/caffe/classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def predict(self, inputs, oversample=True):
8383
for ix, in_ in enumerate(input_):
8484
caffe_in[ix] = self.transformer.preprocess(self.inputs[0], in_)
8585
out = self.forward_all(**{self.inputs[0]: caffe_in})
86-
predictions = out[self.outputs[0]].squeeze(axis=(2,3))
86+
predictions = out[self.outputs[0]]
8787

8888
# For oversampling, average predictions across crops.
8989
if oversample:

0 commit comments

Comments
 (0)