Kohulan / DECIMER-Image_Transformer

DECIMER: Deep Learning for Chemical Image Recognition using Efficient-Net V2 + Transformer
MIT License
197 stars 51 forks source link

fix: Remove tensorflow_addons dependency to hide deprecation warning #74

Closed tobbber closed 1 year ago

tobbber commented 1 year ago

When importing the latest version of decimer, the following warning is displayed (see Colab Example):

/usr/local/lib/python3.10/dist-packages/tensorflow_addons/utils/tfa_eol_msg.py:23: UserWarning: 

TensorFlow Addons (TFA) has ended development and introduction of new features.
TFA has entered a minimal maintenance and release mode until a planned end of life in May 2024.
Please modify downstream libraries to take dependencies from other repositories in our TensorFlow community (e.g. Keras, Keras-CV, and Keras-NLP). 

For more information see: https://github.com/tensorflow/addons/issues/2807 

Since decimer only uses tensorflow_addons.GroupNormalization which has been integrated into tf.keras with v2.11.0 (tensorflow.keras.layers.GroupNormalization), i suggest removing this dependency entirely.