Rescale of an image

hello, I’m trying to run a pose estimation model using TF, the problem I have is that the image is too large so the frame per second decrease to only 3 (I need at least 5\6) is there a way that I could change the size of the image without it harming the pose estimation? (thought of rescaling the image but don’t know how to do that)

You can use tf.image.resize_with_pad  |  TensorFlow Core v2.8.0
It will resize the image to the desired dimensions without distorting the contents.

1 Like