Skip to content

Commit 1cb9674

Browse files
committed
fix heatmap bugs
1 parent 8144d30 commit 1cb9674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def sigmoid(x):
301301
b, c, h, w = np.shape(sub_output)
302302
sub_output = np.transpose(np.reshape(sub_output, [b, 3, -1, h, w]), [0, 3, 4, 1, 2])[0]
303303
score = np.max(sigmoid(sub_output[..., 4]), -1)
304-
score = cv2.resize(score, (image.size[1], image.size[0]))
304+
score = cv2.resize(score, (image.size[0], image.size[1]))
305305
normed_score = (score * 255).astype('uint8')
306306
mask = np.maximum(mask, normed_score)
307307

0 commit comments

Comments
 (0)