Keras Implementation of Unet with EfficientNet as encoder
tensorflow >= 1.13.1
Keras >= 2.2.4
(It will automatically be installed when you install efficientunet
)Install efficientunet
:
pip install efficientunet
This library assumes channels_last
!
You cannot specify None
for input_shape
, since the input_shape
is heavily used in the code for inferring
the architecture. (The EfficientUnets are constructed dynamically)
Since you cannot use None
for input_shape
, the image size for training process and for inference process
have to be the same.
If you do need to use a different image size for inference, a feasible solution is:
Due to some rounding problem in the decoder path (not a bug, this is a feature :smirk:), the input shape should be
divisible by 32.
e.g. 224x224 is a suitable size for input images, but 225x225 is not.