keras icon indicating copy to clipboard operation
keras copied to clipboard

keras version

Open URWASHANZA opened this issue 1 year ago • 1 comments

File ~\anaconda3\envs\Python310\lib\site-packages\keras_vggface\models.py:16 12 from keras.layers import Flatten, Dense, Input, GlobalAveragePooling2D,
13 GlobalMaxPooling2D, Activation, Conv2D, MaxPooling2D, BatchNormalization,
14 AveragePooling2D, Reshape, Permute, multiply 15 from keras_applications.imagenet_utils import _obtain_input_shape ---> 16 from keras.utils import layer_utils 17 from keras.utils.data_utils import get_file 18 from keras import backend as K

ImportError: cannot import name 'layer_utils' from 'keras.utils

URWASHANZA avatar Dec 23 '23 15:12 URWASHANZA

Hi,

Thanks for reporting the issue.

There is no layer_utils in the Keras 3, please migrate your code to be compatible with the Keras 3 by following the guide here https://keras.io/guides/migrating_to_keras_3/

sachinprasadhs avatar Dec 26 '23 19:12 sachinprasadhs

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar Apr 26 '24 01:04 github-actions[bot]

This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further.

github-actions[bot] avatar May 10 '24 01:05 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar May 10 '24 01:05 google-ml-butler[bot]