
深度学习
文章平均质量分 80
旭峰li
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Tensorflow1.4 之 saver()
saver()函数翻译 Tensorflow中saver是一个类,保存在 \tensorflow\python\training\saver.py文件中。 Saver 类添加一个在 checkpoints 文件中保存和重新加载的操作(op)。 Saver 可以使用提供的计数器 counter 自动的对 checkpoint 文件进行命名。 在训练中,这点让我们可以在不同的 steps原创 2018-05-08 15:48:11 · 652 阅读 · 0 评论 -
tensorflow:使用dataset方式读取数据
def _parse_function(filename, label): image_string = tf.read_file(filename) image_decoded = tf.image.decode_image(image_string) #image_resized = tf.image.resize_images(image_decoded, [28, 28]) ...原创 2018-05-28 14:18:25 · 3662 阅读 · 0 评论 -
tensorflow: 1.指定变量申请的设备 2.使用timeline
Tensorflow 指定变量申请的设备 import tensorflow as tf with tf.device('/CPU:0'): a = tf.constant(3, dtype=tf.int8) with tf.device('/GPU:0'): b = tf.constant(5, dtype=tf.int8) with tf.device('/cpu:0')...原创 2018-05-29 17:05:12 · 844 阅读 · 0 评论 -
通过tensorflow的队列进行输入cv读取的视频数据
这是stackflow上一段通过tensorflow的队列读取视频数据的代码,其中视频数据通过Python中cv模块进行解析,每次读入一阵。 def deform_images(images): with tf.name_scope('current_image'): frames_resized = tf.image.resize_images(images, [90,...原创 2018-06-12 15:25:06 · 1705 阅读 · 0 评论 -
使用video2tfrecord 将视频文件生成tfrecord数据集
逛stackflow发现一个好用的库,虽然现在用不着,但是可以记下来,说不定有机会用呢。 Description 这个库能很容易的将RGB视频文件(如:avi,mp4)转换为用于神经网络训练的tensorflow tfrecords 文件格式。由于深度学习中gpu和内存都是稀缺资源,所以这个项目中也允许限制每个视频保存到tfrecord中的图片数,同样也可以全部保存下来。代码自动决定步长,...原创 2018-06-12 15:54:24 · 1808 阅读 · 1 评论 -
seq2seq and attention 入门并在tensorflow中使用
Seq2Seq and Attention 汇总理解 参考文献 [1] Cho 在 2014 年在论文《Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation》中提出 Encoder–Decoder 结构 [2] Sutskever et al...原创 2018-07-13 18:10:47 · 7267 阅读 · 4 评论