成功解决AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'

目录

解决问题

解决方法


解决问题

  File "object_detection/builders/model_builder_test.py", line 24, in <module>from object_detection.builders import model_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\model_builder.py", line 22, in <module>from object_detection.builders import box_predictor_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\box_predictor_builder.py", line 21, in <module>from object_detection.predictors import convolutional_box_predictorFile "F:\File_Python\Python_example\models-master\research\object_detection\predictors\convolutional_box_predictor.py", line 19, in <module>from object_detection.core import box_predictorFile "F:\File_Python\Python_example\models-master\research\object_detection\core\box_predictor.py", line 137, in <module>class KerasBoxPredictor(tf.keras.Model):
AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'

解决方法

升级tensorflow到最新版本即可!

pip install -U tensorflow

成功解决AttributeError: module 'tensorflow.python.keras' has no attribute 'Model'相关推荐

  1. 成功解决AttributeError: module 'tensorflow.python.training.training' has no attribute 'SummaryWriter'

    成功解决AttributeError: module 'tensorflow.python.training.training' has no attribute 'SummaryWriter' 目录 ...

  2. 成功解决AttributeError: module 'tensorflow.python.ops.nn' has no attribute '_seq2seq'

    成功解决AttributeError: module 'tensorflow.python.ops.nn' has no attribute '_seq2seq' 目录 解决问题 解决思路 解决方法 ...

  3. 成功解决AttributeError: module 'tensorflow.nn.rnn_cell' has no attribute 'linear'

    成功解决AttributeError: module 'tensorflow.nn.rnn_cell' has no attribute 'linear' 目录 解决问题 解决思路 解决方法 解决问题 ...

  4. 成功解决AttributeError: module 'tensorflow.contrib.data' has no attribute 'TextLineDataset'

    成功解决AttributeError: module 'tensorflow.contrib.data' has no attribute 'TextLineDataset' 目录 解决问题 解决思路 ...

  5. 成功解决AttributeError: module tensorflow has no attribute reset_default_graph

    成功解决AttributeError: module 'tensorflow' has no attribute 'reset_default_graph' 目录 解决问题 解决思路 解决方法 T1. ...

  6. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘placeholder‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 T1.降低tensor ...

  7. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘contrib‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'contrib' 目录 解决问题 解决思路 解决方法 解决方法

  8. 成功解决AttributeError: module ‘tensorflow‘ has no attribute ‘get_variable‘

    成功解决AttributeError: module 'tensorflow' has no attribute 'get_variable' 目录 解决问题 解决思路 解决方法 解决问题 Attri ...

  9. 成功解决AttributeError: module tensorflow has no attribute placeholder

    成功解决AttributeError: module 'tensorflow' has no attribute 'placeholder' 目录 解决问题 解决思路 解决方法 解决问题 Attrib ...

最新文章

  1. 禁止java更新_禁止:禁止对'replicas','template'和'updateStrategy'以外的字段的statefulset规范进行更新...
  2. 学习动态性能表(3)--v$sqlv$sql_plan
  3. 第三天20160728
  4. nfs:server 172.168.1.22 not responding,still trying问题解决方法 平台为RealARM 210平台
  5. Lua的继承(利用setmetatable)
  6. 微软Office 365正式上架Mac App Store
  7. php 反转一个整数,LeetCode PHP 整数反转
  8. 软件开发流程都是什么样的呢?
  9. CleanMyMac X下载Mac系统清理优化工具
  10. MYSQL存储过程的简单运用,包括传值、返回值、返回集合
  11. ERROR ITMS-90096: Your binary is not optimized for iPhone 5 错误
  12. 全球首次!32岁青年科学今天发现!道翰天琼认知智能机器人平台API接口大脑为您揭秘。
  13. 结果页要求用户复制链接进行分享 而不是直接调用浏览器分享API的原因
  14. 第1期-通过携程爬取机票价格
  15. Windows平台搭建Spark开发环境(Intellij idea 2020.1社区版+Maven 3.6.3+Scala 2.11.8)
  16. 冯诺依曼计算机主机,冯诺依曼结构计算机包括哪五大部分?
  17. 齐鲁工业大学c语言程序设计试题及答案,2016年齐鲁工业大学理学院C语言程序设计考研复试题库...
  18. LINUX 段错误查找记录 -- segfault at fffffffffffffff9 ip 0000003c97e7b81c sp 00007fffad7c0638 error 4 in lib
  19. 惩罚线性回归---Python机器学习:预测分析核心算法
  20. Oracle数据库中的数据加密

热门文章

  1. ubuntu下安装Thinkpad指纹识别系统
  2. linux之vsftpd配置
  3. Java黄金五年——1~5年一个Java程序员从入行到大牛的晋升之路
  4. Excel-怎样实现行列转置
  5. Spring Boot JdbcTemplate 入门
  6. 7年Java后端被淘汰,一路北漂辛酸史。。。
  7. Java线程详解(4)-线程状态的转换
  8. 使用Nomad构建弹性基础架构:计划和自我修复
  9. 获取application.yml中的属性的方法
  10. Java:自定义异常处理类