Skip to content

Commit f371ab8

Browse files
committed
fix heatmap bugs
1 parent 71c94df commit f371ab8

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
@@ -304,7 +304,7 @@ def sigmoid(x):
304304
b, c, h, w = np.shape(sub_output)
305305
sub_output = np.transpose(np.reshape(sub_output, [b, 3, -1, h, w]), [0, 3, 4, 1, 2])[0]
306306
score = np.max(sigmoid(sub_output[..., 4]), -1)
307-
score = cv2.resize(score, (image.size[1], image.size[0]))
307+
score = cv2.resize(score, (image.size[0], image.size[1]))
308308
normed_score = (score * 255).astype('uint8')
309309
mask = np.maximum(mask, normed_score)
310310

0 commit comments

Comments
 (0)