Skip to content

Commit a9f77e4

Browse files
authored
Merge pull request #1115 from dalonsoa/bug_zoom_multi
Fix inconsistent output in zoom_multi
2 parents 066c09b + 34cf1df commit a9f77e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorlayer/prepro.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ def zoom_multi(x, zoom_range=(0.9, 1.1), flags=None, border_mode='constant'):
15271527
h, w = x.shape[0], x.shape[1]
15281528
transform_matrix = transform_matrix_offset_center(zoom_matrix, h, w)
15291529
results.append(affine_transform_cv2(x, transform_matrix, flags=flags, border_mode=border_mode))
1530-
return results
1530+
return np.asarray(results)
15311531

15321532

15331533
# image = tf.image.random_brightness(image, max_delta=32. / 255.)

0 commit comments

Comments
 (0)