Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Google cola cannot import eras contrib modules #556

Open
gabirelasanchezzz opened this issue May 27, 2021 · 0 comments
Open

Google cola cannot import eras contrib modules #556

gabirelasanchezzz opened this issue May 27, 2021 · 0 comments

Comments

@gabirelasanchezzz
Copy link

I have been working with keras contrib for a hile now, and suddenly I went to run the code that always worked and I ge multiple errors while importing:
Did someone get this too?
``

ImportError Traceback (most recent call last)
in ()
19 from keras.preprocessing.image import ImageDataGenerator
20 from keras.utils import np_utils
---> 21 from keras_contrib.applications.densenet import DenseNetFCN
22 from keras_contrib.losses.jaccard import jaccard_distance

1 frames
/usr/local/lib/python3.7/dist-packages/keras_contrib/applications/densenet.py in ()
66 from keras.layers import BatchNormalization
67 from keras.regularizers import l2
---> 68 from keras.utils.layer_utils import convert_all_kernels_in_model
69 from keras.utils.data_utils import get_file
70 from keras.engine.topology import get_source_inputs

ImportError: cannot import name 'convert_all_kernels_in_model' from 'keras.utils.layer_utils' (/usr/local/lib/python3.7/dist-packages/keras/utils/layer_utils.py)
``

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant