栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

tensorflow项目中使用tfrecods格式数据集文件等问题小结

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

tensorflow项目中使用tfrecods格式数据集文件等问题小结

最开始参考的两篇博客:

VOC文件 TFRecord文件 生成转换

SSD目标检测实战(TF项目)——VOC2007(注:这个项目中是有对应的转换程序,但该程序有contrib模块,这个只能在tf1.版本中有)

添加问题1: 问题描述:

importError: cannot import name ‘trt_convert’ from ‘tensorflow.python.compiler.tensorrt’

No module named compiler.tensorrt

讨论:
https://github.com/tensorflow/tensorrt/issues/84

https://github.com/gsethi2409/tf-pose-estimation/issues/7


这个错误是因为该模块代码在win端不支持,需要在linux下运行实验

添加问题2: 问题描述:

‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte

解决方案
将’r’改为’rb’的形式,即:

image_raw_data_jpg = tf.gfile.FastGFile(’…/test_images/test_1.jpg’, ‘rb’).read()

参考:https://blog.csdn.net/u013555719/article/details/77991010

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/461381.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号