segmentation_models
segmentation_models copied to clipboard
Import Error in Google Colab
When I am trying to import segmentation models in google colab after completing the installation of the segmentation model in the colab notebook. It throws the following error :
"ImportError: cannot import name 'get_source_inputs' from 'keras.engine' (/usr/local/lib/python3.7/dist-packages/keras/engine/init.py)" Please help. Thanks in Advance.
maybe you can have a try in your loacl system using sm.set_framework('tf.keras') ,and then you can use the code sm.Unet() ,but i haven't solove the problem same as you ...
look at this issue it's worked for me.
Check this answer regarding your issue. Hope it helps.