Skip to content

Commit

Permalink
hw7 update np.pad
Browse files Browse the repository at this point in the history
  • Loading branch information
wxy1224 committed Nov 17, 2017
1 parent 0e566df commit 65b559a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw7_release/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def sliding_window(image, base_score, stepSize, windowSize, pixel_per_cell=8):
(max_score, maxr, maxc) = (0,0,0)
winH, winW = windowSize
H,W = image.shape
pad_image = np.lib.pad(image, (winH//2, winW//2), mode='constant')
pad_image = np.lib.pad(image, ((winH//2,winH//2),(winW//2, winW//2)), mode='constant')
response_map = np.zeros((H//stepSize+1, W//stepSize+1))

### YOUR CODE HERE
Expand Down

0 comments on commit 65b559a

Please sign in to comment.