I'm new to neural networks, and have been practicing image preprocessing. I am trying to resize images that are in the form of numpy arrays, and this is my current method:
# using tensorflow, resize the image
im = tf.image.resize(img_as_array, [299, 299])
# then use .eval() which returns a numpy array in the size I want
im_arr = im.eval(session=tf.compat.v1.Session())
Is there a better way to do this?