ZF_UNET_224_Pretrained_Model icon indicating copy to clipboard operation
ZF_UNET_224_Pretrained_Model copied to clipboard

Attribute Error

Open melih-unsal opened this issue 4 years ago • 0 comments

Traceback (most recent call last): File "train.py", line 11, in import segmentation_models as sm File "/home/melih/anaconda3/envs/ai/lib/python3.6/site-packages/segmentation_models/init.py", line 98, in set_framework(_framework) File "/home/melih/anaconda3/envs/ai/lib/python3.6/site-packages/segmentation_models/init.py", line 68, in set_framework import efficientnet.keras # init custom objects File "/home/melih/anaconda3/envs/ai/lib/python3.6/site-packages/efficientnet/keras.py", line 17, in init_keras_custom_objects() File "/home/melih/anaconda3/envs/ai/lib/python3.6/site-packages/efficientnet/init.py", line 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'

when I run the code, I got the result below but don't know why there is no generic_utils attribute in the library since there is in the keras.

melih-unsal avatar Jul 02 '20 14:07 melih-unsal