TensorFlow报AttributeError: module tensorflow has no attribute io
错误描述
在使用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相关推荐
- 成功解决AttributeError: module ‘skimage‘ has no attribute ‘io‘
成功解决AttributeError: module 'skimage' has no attribute 'io' 目录 解决问题 解决思路 解决方法 解决问题 AttributeError: mo ...
- tensorflow之 AttributeError: module 'tensorflow' has no attribute 'sub'
学习官方给出的文档,发现报错 AttributeError: module 'tensorflow' has no attribute 'sub' 代码是这样写的: #!/usr/bin/python ...
- NVIDIA Jetson Xavier NX上导入tensorflow报错:AttributeError: module ‘wrapt‘ has no attribute ‘ObjectProxy‘
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 在Jetson Xavier NX上导入tensorflow报错:AttributeError: module 'wra ...
- 解决tensorflow报错:AttributeError: module ‘tensorflow.keras.backend‘ has no attribute ‘get_session‘ 问题
欢迎大家关注笔者,你的关注是我持续更博的最大动力 原创文章,转载告知,盗版必究 解决tensorflow报错:AttributeError: module 'tensorflow.keras.back ...
- Tensorflow报错:AttributeError: 'module' object has no attribute 'scalar_summary'
报错: tf.scalar_summary(l.op.name + ' (raw)', l) AttributeError: 'module' object has no attribute 'sca ...
- 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module ‘pip‘ has no attribute ‘main‘ 解决方法
[pycharm]pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 参考文章: (1) ...
- 【TensorFlow报错】AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries'
报错提示: cifar10_train.py : AttributeError: module 'tensorflow' has no attribute 'merge_all_summaries' ...
- TensorFlow报错:AttributeError: module 'tensorflow._api.v1.train' has no attribute 'SummaryWriter'等
TensorFlow报错:AttributeError: module 'tensorflow._api.v1.train' has no attribute 'SummaryWriter'等 分析: ...
- tensorflow报错:AttributeError: 'module' object has no attribute 'get_or_create_global_step'
Tensorflow 1.0训练官方教程中CIFAR10例子 官方教程 执行 python cifar10_train.py时 报错: AttributeError: 'module' objec ...
最新文章
- MQ日常维护操作手册
- Spring系列之一 Spring MVC
- linux在所有文件中查找某一个字符
- python程序框架的描述_简单介绍Python下自己编写web框架的一些要点
- 安卓案例:Volley用法演示
- python中相对路径_Python中的绝对路劲和相对路径
- android使用protobuf实现网络订单管理功能
- 男子因惧内欲退还iPad 2苹果免费赠送
- python引用配置文件_python中配置文件的使用方法
- python写电影推荐系统_Netflix电影推荐系统Python实现(协同过滤+矩阵分解)
- arduino定时器控制舵机_Arduino通过串口控制舵机角度
- office2016、office365和office其它版本JH
- VS2013使用教程总结(3)---修改VA的注释
- Ubuntu14.04+cuda6.5+opencv2.4.9+caffe配置记录
- 《C语言程序设计》江宝钏主编-习题6-2-排列数
- 《信息物理融合系统(CPS)设计、建模与仿真——基于 Ptolemy II 平台》——1.4 角色模型...
- python基础------文件读写操作、re、os和sys模块
- 【C++】单例模式(懒汉、饿汉)
- 高斯混合模型的matlab实现
- 餐饮管理系统(JavaWeb+SSH+MySQL)