AttributeError: module ‘tensorflow.python.keras.utils.generic_utils’ has no attribute ‘populate_dict_with_module_objects’

change from keras import models to from tensorflow.keras import models
this solved the problem for me with tensorflow 2.5.0

Leave a Comment