Solution:

from keras.utils.generic_utils import CustomObjectScope

with CustomObjectScope({'relu6': keras.applications.mobilenet.relu6,'DepthwiseConv2D': keras.applications.mobilenet.DepthwiseConv2D}):
    model = load_model('model_saved.hdf5')

官方github相关issue参考链接

相关文章:

  • 2021-04-04
  • 2022-12-23
  • 2021-05-31
  • 2021-10-04
  • 2021-09-05
  • 2022-12-23
  • 2021-12-24
  • 2021-09-22
猜你喜欢
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案