![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TensorFlow
澍yeah
知识的搬运工
展开
-
tf.layers.conv2d
转:https://blog.csdn.net/gqixf/article/details/80519912conv2d(inputs, filters, kernel_size, strides=(1, 1), padding='valid', data_format='channels_last', dilation_rate=(1, 1), activa...转载 2018-07-08 17:24:25 · 1021 阅读 · 0 评论 -
tf.summary用法
转:https://blog.csdn.net/hongxue8888/article/details/79753679 1、tf.summary.scalar 用来显示标量信息,其格式为: tf.summary.scalar(name, tensor, collections=None) 1 例如:tf.summary.scalar('mean', mean) 一般在画loss,ac...转载 2018-09-14 14:37:21 · 1226 阅读 · 0 评论 -
Tensorboard使用
参考:https://blog.csdn.net/qq_33297776/article/details/79339684转载 2018-09-23 15:59:52 · 253 阅读 · 0 评论 -
SRCNN的数据处理
TensorFlow代码 数据处理: 输入为(344,288)的图片,首先进行归一化处理,然后下采样再上采样,得到输入input_, def preprocess(path, scale=3): """ Preprocess single image file (1) Read original image as YCbCr format (and grayscale a...原创 2018-07-25 10:08:41 · 2219 阅读 · 3 评论 -
Linux下安装任意版本的tensorflow命令
终端或命令行下输入: wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl 或者 sudo pip install \ -i https://pypi.tuna.tsinghua.edu.cn/simple/ \ https...转载 2018-07-05 17:18:30 · 3248 阅读 · 0 评论 -
ubontu+TensorFlow1.7+Keras
1. Ref2. Clone TensorFlow repositoryClone TensorFlow repo with protobuf sub-modules$ git clone --recurse-submodules https://github.com/tensorflow/tensorflow1checkout需要的tag$ cd tensorflow $ git tag ...转载 2018-07-05 12:54:03 · 557 阅读 · 0 评论 -
tf.layers.batch_normalization()
tf.layers.batch_normalization(inputs=x, axis=-1,momentum=0.99, epsilon=0.001)原创 2018-07-10 11:51:02 · 2340 阅读 · 0 评论 -
正则化Batch normalization及其在tensorflow中的实现
转:https://blog.csdn.net/Leo_Xu06/article/details/79054326Batch normalization(BN)BN是对输入的特征图进行标准化的操作,其公式为: x^=γ(x−μ)/σ2+ϵ−−−−−√+βx^=γ(x−μ)/σ2+ϵ+βxx - 原输入x^x^ - 标准化后的输入μμ - 一个batch中的均值σ2σ2 - 一个batch中的方差ϵ...转载 2018-07-10 11:36:23 · 285 阅读 · 0 评论 -
TensorFlow卷积 示例给出关于之间的差的概述 SAME 和 VALID
TensorFlow卷积 示例给出关于之间的差的概述 SAME 和 VALID :对于 SAME 填充,输出高度和宽度计算如下:out_height = ceil(float(in_height)/ float(strides [1]))out_width = ceil(float(in_width)/ float(strides [2]))和对于 VALID 填充,输出高度和宽度计...原创 2018-07-09 21:00:03 · 240 阅读 · 0 评论 -
tf.pad()
转:https://blog.csdn.net/banana1006034246/article/details/76585355说明:关于 tf.pad(...) 函数网上的解释和官网都让你看不懂,自己理解整理如下,希望可以帮到需要的人,以下内容只关注0扩展边界函数原型:tf.pad(input, paddings, name=None)input : 代表输入张量padding : 代表加的...转载 2018-07-09 20:21:47 · 7371 阅读 · 2 评论 -
AlexNet笔记
转:https://blog.csdn.net/muyiyushan/article/details/558238451. 简介AlexNet是Hinton小组在ISVRC2012中使用的神经网络模型,并获得了第一名,top5测试错误率是15.3%,第二名是26.2%。AlexNet有60M个参数,650,000个神经元,5个卷积层和3个全连接层(1000类的softmax分类器)。AlexNet...转载 2018-07-09 11:04:26 · 231 阅读 · 0 评论 -
图像预处理,旋转,翻转,转置等
#coding: utf-8 import h5py import matplotlib.pyplot as plt from skimage import io,color import numpy as np for j in range(9): imgt = io.imread('t{0}.BMP'.format(j+1)) imgl = io.imread('l{...原创 2018-09-20 12:19:16 · 1189 阅读 · 0 评论