Skip to content

Commit

Permalink
Merge pull request #1115 from dalonsoa/bug_zoom_multi
Browse files Browse the repository at this point in the history
Fix inconsistent output in zoom_multi
  • Loading branch information
Laicheng0830 committed Feb 1, 2021
2 parents 066c09b + 34cf1df commit a9f77e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorlayer/prepro.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,7 @@ def zoom_multi(x, zoom_range=(0.9, 1.1), flags=None, border_mode='constant'):
h, w = x.shape[0], x.shape[1]
transform_matrix = transform_matrix_offset_center(zoom_matrix, h, w)
results.append(affine_transform_cv2(x, transform_matrix, flags=flags, border_mode=border_mode))
return results
return np.asarray(results)


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

0 comments on commit a9f77e4

Please sign in to comment.