tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 610 forks source link

`tfa.image.rotate` and `tfa.image.gaussian_filter2d` #2845

Closed felixT2K closed 1 year ago

felixT2K commented 1 year ago

Hi 👋🏼 ,

Since TFA has been deprecated, I wanted to ask if there is an equivalent implementation (functional) in Tensorflow or Keras ?

Thanks in advance

bhack commented 1 year ago

You have only the random rotation but not the rotation itself: https://keras.io/api/layers/preprocessing_layers/image_augmentation/random_rotation/

Also in TF you have 90 degree rotation: https://www.tensorflow.org/api_docs/python/tf/image/rot90

For gaussian filter your have: https://keras.io/api/keras_cv/layers/augmentation/random_sharpness/ Or: https://www.tensorflow.org/io/api_docs/python/tfio/experimental/filter/gaussian

felixT2K commented 1 year ago

Thanks @bhack 👍🏼