错误描述

在使用TensorFlow的models参考的代码训练目标检测模型时候报AttributeError: module 'tensorflow' has no attribute 'io'错误,错误是由下面的代码导致的

with tf.io.gfile.GFile(path, 'r') as fid:

python版本:3.6.10

TensorFlow版本:1.8.0

解决办法

因为TensorFlow版本的升级对接口做了调整,将上面的代码改成下面的行

with tf.gfile.GFile(path, 'r') as fid:

TensorFlow报AttributeError: module tensorflow has no attribute io相关推荐

  1. 成功解决AttributeError: module ‘skimage‘ has no attribute ‘io‘

    成功解决AttributeError: module 'skimage' has no attribute 'io' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: mo ...

  2. tensorflow之 AttributeError: module 'tensorflow' has no attribute 'sub'

    学习官方给出的文档,发现报错 AttributeError: module 'tensorflow' has no attribute 'sub' 代码是这样写的: #!/usr/bin/python ...

  3. NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wra ...

  4. 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题

    欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 解决tensorflow报错:AttributeError: module 'tensorflow.keras.back ...

  5. Tensorflow报错:AttributeError: 'module' object has no attribute 'scalar_summary'

    报错: tf.scalar_summary(l.op.name + ' (raw)', l) AttributeError: 'module' object has no attribute 'sca ...

  6. 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘ 解决方法

    [pycharm]pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 参考文章: (1) ...

  7. 【TensorFlow报错】AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'

    报错提示: cifar10_train.py : AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries' ...

  8. TensorFlow报错:AttributeError: module 'tensorflow._api.v1.train' has no attribute 'SummaryWriter'等

    TensorFlow报错:AttributeError: module 'tensorflow._api.v1.train' has no attribute 'SummaryWriter'等 分析: ...

  9. tensorflow报错:AttributeError: 'module' object has no attribute 'get_or_create_global_step'

    Tensorflow 1.0训练官方教程中CIFAR10例子 官方教程 执行   python cifar10_train.py时 报错: AttributeError: 'module' objec ...

最新文章

  1. MQ日常维护操作手册
  2. Spring系列之一 Spring MVC
  3. linux在所有文件中查找某一个字符
  4. python程序框架的描述_简单介绍Python下自己编写web框架的一些要点
  5. 安卓案例:Volley用法演示
  6. python中相对路径_Python中的绝对路劲和相对路径
  7. android使用protobuf实现网络订单管理功能
  8. 男子因惧内欲退还iPad 2苹果免费赠送
  9. python引用配置文件_python中配置文件的使用方法
  10. python写电影推荐系统_Netflix电影推荐系统Python实现(协同过滤+矩阵分解)
  11. arduino定时器控制舵机_Arduino通过串口控制舵机角度
  12. office2016、office365和office其它版本JH
  13. VS2013使用教程总结(3)---修改VA的注释
  14. Ubuntu14.04+cuda6.5+opencv2.4.9+caffe配置记录
  15. 《C语言程序设计》江宝钏主编-习题6-2-排列数
  16. 《信息物理融合系统(CPS)设计、建模与仿真——基于 Ptolemy II 平台》——1.4 角色模型...
  17. python基础------文件读写操作、re、os和sys模块
  18. 【C++】单例模式(懒汉、饿汉)
  19. 高斯混合模型的matlab实现
  20. 餐饮管理系统(JavaWeb+SSH+MySQL)

热门文章

  1. Compiler - 编译器
  2. (转) CS的顶级会议和期刊
  3. Ethereum账户私钥管理之导出、导出keystore 文件
  4. linux 虚拟硬盘释放,虚拟机的磁盘碎片清理
  5. [附源码]java毕业设计学生互评的在线作业管理系统
  6. 谈谈:高端网站定制开发的流程和步骤有哪些?
  7. GUI 图形用户界面编程(七)-女友生气,你是选择亚索还是女友?
  8. linux sudo log
  9. 《上海市居住证》积分申请基本流程
  10. JAVA面向对象编程(2)