Skip to content
Advertisement

How to import utils from keras_unet

I’m trying to add utils from keras_unet in google colab, but I have a problem.

import tensorflow as tfs
from keras_unet import utils

keras-unet init: TF version is >= 2.0.0 – using tf.keras instead of Keras

ModuleNotFoundError

Advertisement

Answer

You must install keras-unet before importing as follows

!pip install keras-unet
from keras_unet import utils

Let us know if the issue still persists. Thanks!

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement