qubvel / segmentation_models

Segmentation models with pretrained backbones. Keras and TensorFlow Keras.
MIT License
4.77k stars 1.03k forks source link

AttributeError: module 'keras.utils' has no attribute 'generic_utils' #577

Closed yildizyakup closed 1 year ago

yildizyakup commented 1 year ago

Traceback (most recent call last):

File ~\anaconda3\Lib\site-packages\segmentation_models__init__.py:98 set_framework(_framework)

File ~\anaconda3\Lib\site-packages\segmentation_models__init__.py:68 in set_framework import efficientnet.keras # init custom objects

File ~\anaconda3\Lib\site-packages\efficientnet\keras.py:17 init_keras_custom_objects()

File ~\anaconda3\Lib\site-packages\efficientnet__init__.py:71 in init_keras_custom_objects keras.utils.generic_utils.get_custom_objects().update(custom_objects)

AttributeError: module 'keras.utils' has no attribute 'generic_utils'

There is an issue like this.