keras-resnet3d
keras-resnet3d copied to clipboard
Import Format - Batch Normalization
It seems that there is an issue when importing 'BatchNormalization' from 'keras.layers.normalization' in the script [resnet3d.py]
The import should be done in a different way:
from tensorflow.keras.layers import BatchNormalization
as opposed to
from keras.layers.normalization import BatchNormalization
Maybe the issue is due to some underlying problem.
I am installing this package with the command below in google colab
! pip install git+https://github.com/JihongJu/keras-resnet3d.git
and creating a modle like so:
from resnet3d import Resnet3DBuilder
model = Resnet3DBuilder.build_resnet_50((96, 96, 96, 1), 20)
Hi @pedr0sorio, the package was made in the Keras 1.0 era. Feel free to send a pull request to make it Tensorflow 2.0 compatible.