F.interpolation alternative in tensorflow

Hi,

What is the alternative op of PyTorch F.interpolation in TensorFlow

Thanks

1 Like

You could use tf.image.resize:

https://www.tensorflow.org/api_docs/python/tf/image/resize

1 Like

Could I use UpSampling2D

1 Like

If you need a layer yes.

1 Like

Yes I need a layer

Thanks for your help

1 Like

If you need this for preprocessing see also

https://www.tensorflow.org/api_docs/python/tf/keras/layers/experimental/preprocessing/Resizing

2 Likes

In F.interpolate we have a parameter of align_corners. I do not see any such implementation in the tf.image.resize. Any hints on how to achieve that?

aligned_corners was dropped from the TF2 impl:

There was recently a request in Keras-cv: