Tensorflow
端午过后的猪
乌龟小白在路上...慢慢爬 ...
展开
-
tensorflow1.4 转 tensorflow2.0 代码转换中遇到的问题
一、大部分代码只需要由 tf. 转换成 tf.compat.v1.二、tf.contrib.rnn.LSTMCell( ) 不能直接用上述方式转换,因为contrib模块被弃用了,解决办法如下:from tensorflow.python.ops import rnn, rnn_cell rnn_cell.LSTMCell( )三、tf.placeholder( ) 转...原创 2020-01-06 14:39:20 · 1321 阅读 · 0 评论 -
tensorboard——使用方法
tensorflow训练过程中打开tensorboard,会生成一个logs文件夹,文件夹下有events.out.tfevents.1571801242.gpu60类似文件;使用命令:tensorboard --logdir=logs,我的机器提示 tensorboard command not found,tensorboard已经安装了,但是这个命令还是找不到,解决办法如下:1、找到...原创 2019-11-01 10:57:31 · 502 阅读 · 0 评论 -
安装 warpctc_tensorflow 过程中遇到的问题
问题一:“fatal error: 'nsync_cv.h' file not found” I changed the file tensorflow/core/platform/default/mutex.h by adding the relative path as prefix of nsync_cv.h and nsync_mu.h to fix the issue, as follo...原创 2018-04-26 16:53:16 · 1587 阅读 · 0 评论 -
tf.train.batch 和 tf.train.batch_join的区别
先看两个函数的官方文档说明tf.train.batch官方文档地址:https://www.tensorflow.org/api_docs/python/tf/train/batchtf.train.batch_join官方文档地址:https://www.tensorflow.org/api_docs/python/tf/train/batch_jointf.train.batchbatch( ...转载 2018-03-22 15:04:58 · 1421 阅读 · 1 评论 -
tensorflow LSTM+CTC实现端到端的不定长数字串识别
转载地址:https://www.jianshu.com/p/45828b18f133上一篇文章tensorflow 实现端到端的OCR:二代身份证号识别实现了定长18位数字串的识别,并最终达到了98%的准确率。但是实际应用场景中,常常需要面对无法确定字串长度的情况,这时候除了需要对识别字符模型参数进行训练外,还需要对字符划分模型进行训练,本文实现了上文提到的方法2,使用L转载 2018-01-24 16:57:10 · 5282 阅读 · 3 评论 -
tensorflow CIFAR-10 比较好的代码示例
http://www.wolfib.com/原创 2018-01-11 17:04:31 · 684 阅读 · 0 评论 -
常见优化算法 (tensorflow对应参数)
转载出处:http://www.2cto.com/kf/201612/572613.html常见算法SGD?1x+= -learning_rate*dxMomentumMomentum可以使SGD不至于陷入局部鞍点震荡,同时起到一定加速作用。Momentum最开始有可能会偏离较远(overshoot转载 2017-12-13 10:42:54 · 1224 阅读 · 1 评论 -
Deeplearning 学习资料推介
deeplearning:CS231n课程总结tensorflow: 官方文档: tensorflow中文社区 好文推荐: tensorflow入门 tensorflow笔记 tensorflow数据读取机制原创 2017-09-12 17:24:15 · 374 阅读 · 0 评论 -
训练Tensorflow识别手写数字 mnist
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data获取数据(如果存在就读取,不存在就下载完再读取)mnist = input_data.read_data_sets(“MNIST_data/”, one_hot=True)输入x = tf.placeholder(“float”, [N转载 2017-09-05 16:40:26 · 331 阅读 · 0 评论 -
TensorFlow:tf.nn.max_pool实现池化操作(转载)
max pooling是CNN当中的最大值池化操作,其实用法和卷积很类似有些地方可以从卷积去参考【TensorFlow】tf.nn.conv2d是怎样实现卷积的?tf.nn.max_pool(value, ksize, strides, padding, name=None) 参数是四个,和卷积很类似: 第一个参数value:需要池化的输入,一般池化层接在卷积层后面,所以输入通常是feature转载 2017-09-13 10:29:28 · 319 阅读 · 0 评论