1. The problem
The tf.image.resize_image function has not been support longer and when you execute the code like below:
import tensorflow as tf img_final = tf.image.resize_images(img_tensor, [192, 192])
You get the following exception:
AttributeError: module 'tensorflow._api.v2.image' has no attribute 'resize_images'
2. The solution
The function has been renamed into resize. You should change your code like it was done below:
import tensorflow as tf import tensorflow as tf img_final = tf.image.resize(img_tensor, [192, 192])
At the end… May I ask you for something?
If I helped you solve your problem, please share this post. Thanks to this, I will have the opportunity to reach a wider group of readers. Thank You