Tensorflow
sunflower_sara
NLP, 计算机视觉,机器学习,深度学习,以及相关的其他内容
展开
-
【Tensorboard】Tensorflow 计算图显示异常
有些时候在运行很多程序后,在tensorboard中显示的默认的计算图可能会变得跟你想象的不一样,可能模型被重复了好几遍这时候就需要对计算图进行重置reset一下语句:tf.reset_default_graph()放在程序import模块了之后...原创 2018-06-06 09:32:52 · 758 阅读 · 0 评论 -
Anaconda中spyder启动慢的解决
Anaconda中spyder启动慢的解决之前有一次进Anaconda用了5-10分钟,进spyder还经常会失败。这个方法可以快速进环境下的spyder1.找到本机中Anaconda3下dlwin36的环境文件夹我的是E:\Anaconda3\envs\dlwin36\Scripts2.找到spyder.exe 和spyder.ico3.创建桌面快捷方式4.打开桌面快捷方式的“属性”-"快捷方式...原创 2018-07-10 15:02:05 · 8415 阅读 · 1 评论 -
【Tensorboard】Windows进入Tensorboard
例子程序:import tensorflow as tfwith tf.name_scope('input1'): input1 = tf.constant([1.0,2.0,3.0],name="input1")with tf.name_scope('input2'): input2 = tf.Variable(tf.random_uniform([3])...原创 2018-04-23 15:52:46 · 202 阅读 · 0 评论 -
Tensorflow 卷积神经网络 Inception-v3模型 迁移学习 花朵识别
https://blog.csdn.net/tz_zs/article/details/77728391?ABstrategy=codes_snippets_optimize_v3谷歌提供的训练好的Inception-v3模型: https://storage.googleapis.com/download.tensorflow.org/models/inception_dec_2015.zip...原创 2018-04-24 16:38:23 · 3498 阅读 · 3 评论 -
【Tensorboard】Tensorboard的测试-mnist为例
用mnist进行tensorboard的测试的时候有了一个报错InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'Input/X' with dtype float[[Node: Input/X = Placeholder[dtype=DT_F...原创 2018-04-25 11:21:16 · 797 阅读 · 0 评论 -
【Tensorboard】Tensorboard无法正常显示graph
一般情况下别人都是路径不对,或者路径有中文,但是我用tensorboard的时候,graph是能出来的,但是不能固定在graph选项卡上,点到graph上一秒钟就会重新换到第一个选项卡上找了一天错误,重启浏览器重启电脑都不行然后把谷歌浏览器的插件全部停用就好了。。。。。。。。。。。。。心累...原创 2018-04-25 17:28:27 · 3558 阅读 · 1 评论 -
【Tensorboard】Tensorboard 数据可视化 之summary
1. summary的使用主程序中,训练之前1)eg.variable_summaries(weights)variable_summaries(biases)2)histogrameg.tf.summary.histogram('pre_activations', logits)tf.summary.histogram('activations',...原创 2018-05-30 10:40:17 · 363 阅读 · 0 评论 -
Tensorflow实战Google深度学习框架 勘误
1.tf.initialize_all_variables更新为tf.global_variables_initializer()2.print sess, xxx 使用需要加括号print(sess,xxx)原创 2018-06-06 09:41:56 · 759 阅读 · 0 评论 -
TensorFlow打印tensor值
在with tf.Session(config=tf.ConfigProto(log_device_placement=True)) as sess: 之后的位置 sess.run(tf.Print(weights,[weights],summarize=100)) #显示变量的具体值如果所输出的值太长的话,参数summarize可以控制显示的位数参考:https://blog.csdn.n...原创 2018-06-13 22:53:39 · 355 阅读 · 0 评论 -
Python .mat文件的读取
.mat文件中存储了 Manufacturer(字符串),Img_prepare(图像)两个变量 load_fn = 'E:\DeepLearning\Git\cnn\data_tumor_mat\9143.mat'data = sio.loadmat(load_fn)print( type(data) )print(data['Manufacturer'])Img2=data['Img_p...原创 2018-06-13 21:08:37 · 1424 阅读 · 0 评论 -
win7安装深度学习 TensorFlow(CPU版本)
win7 64位系统无英伟达显卡不用装cuda和cudnn1.装vs20132.装python3.6https://www.python.org/downloads/release/python-368/下载安装python(推荐版本在3.5以上),记得勾选“Add Python x.x to Path”3.开始菜单 打开 cmd4....原创 2019-07-05 11:59:11 · 369 阅读 · 0 评论