'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



Solution 1:[1]

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!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tfer3