![](https://img-blog.csdnimg.cn/20190918140053667.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
tensorflow
tensorflow
冰菓(笑)
希望写一些有质量的东西
展开
-
h5 转 pb文件
关键代码,这里的模型为tf.keras 模型: from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2 full_model = tf.function(lambda x: model(x)) full_model = full_model.g...原创 2020-05-07 10:08:30 · 938 阅读 · 0 评论 -
TF.keras + tfrecord
TF.keras + tfrecord 在工程中,模型常常需要训练大数据,而大数据的读取通常不能一次性读取进内存中,因此需要不断从数据集中读取数据并进行处理。在大数据中,这部分的耗时相当可观,因此可以利用tfrecord进行预先处理数据,节省读取和处理的时间。 使用tfrecord有几个问题: 1.如何将图像转为tfrecord格式。 2.如何读取tfrecord文件进行训练。 3.如何读取多个t...原创 2020-05-06 21:59:57 · 827 阅读 · 0 评论 -
转载:使用TensorRT +TensorFlow推理
转载:https://www.jianshu.com/p/dd2cfc33b437 本文翻译于博客Speed up TensorFlow Inference on GPUs with TensorRT,这篇博客介绍了如何使用TensorRT加速TensorFlow模型的推理速度,作者为: Siddharth Sharma — Technical Product Marketing Man...转载 2020-03-16 16:56:35 · 1317 阅读 · 0 评论 -
tensorflow c++代码实例
官方样例: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/label_image https://yiyibooks.cn/yiyi/tensorflow_13/install/install_c.html main.cc文件为c++。 多图片输入: https://blog.csdn.n...原创 2020-03-11 16:39:51 · 593 阅读 · 0 评论