FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #2984 from marco-c/dont_squeeze · dlyshare/CaffeOnACL@4af9062 · GitHub

Repository navigation

Commit 4af9062

Browse files
authored
Merge pull request #2984 from marco-c/dont_squeeze
No need to squeeze the output of the network in detector.py
2 parents d667a58 + ac87850 commit 4af9062

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎python/caffe/detector.py‎

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

8888
# Package predictions with images and windows.
8989
detections = []

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL