Tensorflow
peanut。
医学图像处理的深度学习水货
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Tensorflow 之 API tf.truncated_normal_initializer()
用法:返回:从截断的正态分布中输出随机值,生成的值服从具有指定平均值和标准偏差的正态分布,如果生成的值大于平均值2个标准偏差的值则丢弃重新选择。>>def __init__(self, mean=0.0, stddev=1.0, seed=None, dtype=dtypes.float32):>> self.mean = mean >>...原创 2019-10-30 20:35:31 · 806 阅读 · 0 评论 -
win10+DL环境CondaHTTPError: HTTP 000 CONNECTION FAILED for url
虚拟环境py36安装opencv库:(py36) C:\Users\gong>conda install --yes -c conda-forge opencv问题描述:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/win-64/icu-58....原创 2019-06-04 16:16:24 · 597 阅读 · 0 评论 -
【tensorflow】做后端的keras
1.keras的add是将网络堆叠flatten()将图像数据平铺,扁平参数,将多维数据转化成一维Dense就是常用的全连接层,所实现的运算是output = activation(dot(input, kernel)+bias)。其中activation是逐元素计算的激活函数,kernel是本层的权值矩阵,bias为偏置向量,只有当use_bias=True才会添加。...原创 2019-06-04 16:14:58 · 627 阅读 · 4 评论 -
【keras】踩坑运行U-Net keras框架实现医学图像分割
参考自:https://blog.youkuaiyun.com/u012931582/article/details/70215756https://github.com/zhixuhao/unethttps://blog.youkuaiyun.com/py_yangh/article/details/83003972文章代码来自:https://blog.youkuaiyun.com/awyyauqpmy/articl...原创 2019-05-10 12:39:18 · 1769 阅读 · 6 评论 -
【tensorflow】Session
本文主要参考:https://www.cnblogs.com/zyly/p/8869763.html在tensorflow框架基础上,介绍Session的创建、Session与图的交互机制和Session中指定GPU运算资源1、运行机制tensdorflow的运行机制是定义与运行相分离。从操作层面可以抽象为两种:构造模型和运行模型tensorflow中有一个图容器,该容器中包括:...原创 2019-06-04 16:12:48 · 340 阅读 · 0 评论 -
【tensorflow】summary
1、tf.summary.FileWrite指定一个文件用来保存图。用法:tf.summary.FileWriter(path, sess.graph)注:可调用tf.summary.FileWriter.add_summary()方法将训练过程中的数据保存在FileWriter指定的文件中,最后生成日志中的events文件,通过tensorboard查看训练过程中的accuracy,...原创 2019-04-23 22:29:52 · 166 阅读 · 0 评论 -
【tensorflow】warning
WARNING:softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version.Instructions for updating:Future major versions of TensorFlow wil...转载 2019-01-16 14:41:16 · 296 阅读 · 0 评论 -
【tensorflow】tf.shape() 和 tf.get_shape() 及 tf.concat()
1、用法:tf.shape( input, out_type, name=None )input:可以是tensor,list,arrray。 out_type:可选,tf.int32 和 tf.int64;默认 tf.int32。 name:操作的名称(可选)返回:类型为 out_type 的 input维度,是一个 tensor。其实就是获取输入的维度import tensor...转载 2018-12-04 16:06:23 · 704 阅读 · 0 评论 -
tensorflow 之 报错 : At least two variables have the same name: bottom/bn1/beta
self.saver = tf.train.Saver(tf.trainable_variables() + tf.get_collection_ref('bn_collections'))总是出错,只好注释掉这句话,不保存变量了但是不可行,后面会调用保存的模型,所以改成self.saver = tf.train.Saver(tf.get_collection_ref('bn_coll...原创 2019-07-23 10:38:49 · 1734 阅读 · 1 评论 -
【tensorflow】模型的保存(save)、恢复/加载(restore)
1、什么是 tensorflow 模型当你训练完一个神经网络,你可能会想要保存这个网络,以便将来拿来使用或直接用于其他数据的 deploy,tensorflow 模型包括:已训练并优化的权重参数,网络结构和 graph。tensorflow 模型文件包括两大块:meta graph :序列化缓冲文件,保存完整的网络结构,graph ,即 all variables, oper...原创 2018-11-29 10:38:25 · 1760 阅读 · 0 评论 -
【Tensorflow】tf.app.flags.DEFINE_string() 和 tf.app.flags.FLAGS() 和cpu_count()
tf.app.flags.DEFINE_xxx[数据格式int str bool等]()就是添加命令行的optional argument(可选参数)tf.app.flags.FLAGS可以从对应的命令行参数取出参数运行时,若不另外赋值,print参数默认值cpu_count()计算cpu核数,用于多进程计算pprint模块 提供了打印出任何python数据结构类和方法。...原创 2018-12-20 14:00:12 · 379 阅读 · 1 评论 -
【tensorflow】tensor值可视化
import keras.backend as Kimport tensorflow as tfimport numpy as npdef mean_squared_error(y_true, y_pred): return K.mean(K.square(y_pred - y_true), axis=-1)a = np.arange(5)print(a)b = np.r...原创 2019-07-29 14:45:07 · 1030 阅读 · 0 评论
分享