Hi,
What is the alternative op of PyTorch F.interpolation in TensorFlow
Thanks
Hi,
What is the alternative op of PyTorch F.interpolation in TensorFlow
Thanks
You could use tf.image.resize
:
Could I use UpSampling2D
If you need a layer yes.
Yes I need a layer
Thanks for your help
If you need this for preprocessing see also
https://www.tensorflow.org/api_docs/python/tf/keras/layers/experimental/preprocessing/Resizing
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:
https://github.com/tensorflow/tensorflow/issues/44038#issuecomment-709519016
There was recently a request in Keras-cv:
https://github.com/keras-team/keras-cv/issues/317