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])