From d60979e866afe12b32401e0123331f36ad7fb1df Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 28 Apr 2019 19:10:09 +0200 Subject: [PATCH] Fixed function name for resizing images Signed-off-by: Jim Martens --- src/twomartens/masterthesis/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/twomartens/masterthesis/data.py b/src/twomartens/masterthesis/data.py index dee1807..fb03d6f 100644 --- a/src/twomartens/masterthesis/data.py +++ b/src/twomartens/masterthesis/data.py @@ -312,7 +312,7 @@ def _load_images_ssd_callback(resized_shape: Sequence[int]) \ image = tf.image.decode_image(image_data, channels=3, dtype=tf.float32) image_shape = tf.shape(image) image = tf.reshape(image, [image_shape[0], image_shape[1], 3]) - image_resized = tf.image.resize(image, resized_shape[0], resized_shape[1]) + image_resized = tf.image.resize_images(image, resized_shape[0], resized_shape[1]) return image_resized