【问题标题】:AttributeError: module 'keras.utils' has no attribute 'get_file' errot occured using efficientnet and karasAttributeError: module 'keras.utils' has no attribute 'get_file' 错误发生使用efficientnet和karas
【发布时间】:2021-11-22 08:45:12
【问题描述】:

[使用 karas 和使用 EfficientNetThis is the error i got 时发生错误]2

我试过了:- 将 tensorflow.python.keras.utils 导入为 generic_utils 还安装了分段模型

【问题讨论】:

    标签: tensorflow keras deep-learning efficientnet


    【解决方案1】:

    如果您的 TensorFlow 版本是 2.7,请将其降级到 2.6.0 以使 efficientnet 包正常工作:

    !pip install tensorflow==2.6.0
    !pip install keras~=2.6.0
    

    否则,您可以使用 tensorflow 应用程序中的效率网络。请参考:https://www.tensorflow.org/api_docs/python/tf/keras/applications/efficientnet

    【讨论】:

      猜你喜欢
      • 2020-11-23
      • 2022-12-01
      • 2014-12-20
      • 2021-12-12
      • 2012-02-29
      • 2022-10-05
      • 2022-09-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多