segmentation_models icon indicating copy to clipboard operation
segmentation_models copied to clipboard

Import Error in Google Colab

Open antaripg opened this issue 2 years ago • 3 comments

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.

antaripg avatar Aug 07 '21 09:08 antaripg

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 ...

syaxx0819 avatar Sep 19 '21 13:09 syaxx0819

look at this issue it's worked for me.

mehrdad-dev avatar Nov 19 '21 06:11 mehrdad-dev

Check this answer regarding your issue. Hope it helps.

innat avatar Nov 19 '21 14:11 innat