Skip to content

Commit

Permalink
build(Tensorflow-Addons): removed TF-addon and keras-applications sup…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
muellerdo committed Feb 21, 2024
1 parent 979a660 commit 8837e06
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 43 deletions.
3 changes: 1 addition & 2 deletions aucmedi/automl/block_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
import os
import numpy as np
import json
from tensorflow.keras.metrics import AUC
from tensorflow_addons.metrics import F1Score
from tensorflow.keras.metrics import AUC, F1Score
from tensorflow.keras.callbacks import ModelCheckpoint, CSVLogger, \
ReduceLROnPlateau, EarlyStopping
# Internal libraries
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Augmentation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
],
"source": [
"from aucmedi.neural_network.model import NeuralNetwork\n",
"import tensorflow_addons as tfa\n",
"import tensorflow.keras as tfa\n",
"\n",
"f1Score = tfa.metrics.F1Score(num_classes=nclasses, threshold=0.5)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/CustomSubfunction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
],
"source": [
"from aucmedi.neural_network.model import NeuralNetwork\n",
"import tensorflow_addons as tfa\n",
"import tensorflow.keras as tfa\n",
"\n",
"f1Score = tfa.metrics.F1Score(num_classes=nclasses, threshold=0.5)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/DataAndResultExploration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
],
"source": [
"from aucmedi.neural_network.model import NeuralNetwork\n",
"import tensorflow_addons as tfa\n",
"import tensorflow.keras as tfa\n",
"\n",
"f1Score = tfa.metrics.F1Score(num_classes=nclasses, threshold=0.5)\n",
"\n",
Expand Down
12 changes: 6 additions & 6 deletions examples/tutorials/EarlyStoppingAndTransferlearning.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/tutorials/Metadata.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
],
"source": [
"from aucmedi.neural_network.model import NeuralNetwork\n",
"import tensorflow_addons as tfa\n",
"import tensorflow.keras as tfa\n",
"\n",
"f1Score = tfa.metrics.F1Score(num_classes=nclasses, threshold=0.5)\n",
"\n",
Expand Down Expand Up @@ -405,7 +405,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.8.0"
}
},
"nbformat": 4,
Expand Down
12 changes: 6 additions & 6 deletions examples/tutorials/ThreePillars.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions examples/tutorials/Transferlearning.ipynb

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions examples/tutorials/XAI.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions examples/tutorials/dataLoadingFromDirectory.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
tensorflow==2.11.1
tensorflow-addons==0.18.0
keras-applications==1.0.8
tensorflow==2.14.0
numpy==1.23.0
pillow==9.3.0
albumentations==1.3.0
Expand Down
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
entry_points={
'console_scripts': ['aucmedi = aucmedi.automl.main:main'],
},
python_requires='>=3.8',
install_requires=['tensorflow>=2.11.1',
'tensorflow-addons>=0.18.0',
'keras-applications>=1.0.8',
python_requires='>=3.9',
install_requires=['tensorflow>=2.14.0',
'numpy>=1.23.0',
'pillow>=9.3.0',
'albumentations>=1.3.0',
Expand Down

0 comments on commit 8837e06

Please sign in to comment.