自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 资源 (4)
  • 收藏
  • 关注

原创 tensorlayer学习日志19_chapter8_2

无奈啊,按照书上的源码,怎么都调试不出来,无奈只好找过的源码:在这个博客中发现一个卡通用的数据集,比较小,心想用小数据集试下吧,反正也就没指望能跑出来~~~~~~https://blog.csdn.net/heyc861221/article/details/80127914,数据集是卡通的头像,才两百多M。源码我换成这个:https://github.com/carpedm20/DC...

2018-08-25 22:30:13 831

原创 tensorlayer学习日志18_chapter8_1

第八章主要就是学习对抗网络,源码地址在这:https://github.com/tensorlayer/dcgan,一共四个文件,download.py , model.py,   main.py和utils.py其中download.py文件有误如下:parser.add_argument('-datasets', metavar='N', type=str, nargs='+', c...

2018-08-25 00:26:08 466

原创 tensorlayer学习日志17_chapter7_7.2

第七章的乒乓球~~import timeimport gymimport numpy as npimport tensorflow as tfimport tensorlayer as tlfrom tensorlayer.layers import *def prepro(I): I = I[35:195] I = I[::2, ::2, 0] I[I...

2018-08-22 18:35:31 1168

原创 tensorlayer学习日志15_chapter5_5.4

本来还想开开心心地结束第五章,谁知5.4节遇上大坑了。。import tensorflow as tfimport tensorlayer as tlfrom stringclean import *import numpy as npvocabulary_size = 50000embedding_size = 128model_file_name = "model_wo...

2018-08-21 14:27:07 975 2

原创 tensorlayer学习日志14_chapter5_5.3

第5.3节讲的是文本简单处理,课程源码在这里: https://github.com/tensorlayer/tensorlayer/blob/master/example/tutorial_word2vec_basic.py但是Step 7: Evaluate by analogy questions.我没能实现,主要是不知道,questions-words.txt是个什么东东,有机会再来试...

2018-08-20 16:58:46 317

原创 tensorlayer学习日志13_chapter4_4.6.2

第4.6.2节,我觉得我家破电脑确实到极限了,~~~import tensorflow as tfimport tensorlayer as tlfrom tensorlayer.layers import *import numpy as npimport os, io, timemodel_file_name = "./model_cifar10_tfrecord.ckpt"...

2018-08-19 21:07:43 519

原创 tensorlayer学习日志12_chapter4_4.6.1

第4.6.1节,这里先运行用的是:network, cost, _ = model_batch_norm(x, y_, reuse=False, is_train=True)_, cost_test, acc = model_batch_norm(x, y_, reuse=True, is_train=False)代码如下:import tensorflow as tfimpo...

2018-08-19 19:12:15 507

原创 tensorlayer学习日志11_chapter4_4.5

第4.5节主要讲的是tl.prepro的图像操作,通过源码可以知道,tl.prepro主要还是在cv2的基础上进行的。import cv2import numpy as npimport tensorlayer as tlimage = cv2.imread('4.1_flower_original.jpg')print('~~~~~~~~~图像大小~~~~~~~~')shap...

2018-08-18 23:32:59 360

原创 tensorlayer学习日志10_chapter4_4.4

第4.4节介绍的是通过卷积神经网络来分类MNIST数据集,而之前2.4节是一个简单的全连接层组成的神经网络。import numpy as npimport tensorflow as tfimport tensorlayer as tlfrom tensorlayer .layers.core import set_keepimport timeX_train, y_train...

2018-08-18 22:52:17 368 1

原创 tensorlayer学习日志9_chapter4_4.1

import cv2import numpy as npprint('~~~~~~~~~~~~~卷积核示例~~~~~~~~~~~~~~~~~~')image = cv2.imread('4.1_flower_original.jpg')cv2.imshow('4.1_flower_original', image)cv2.waitKey()cv2.destroyAllWindows...

2018-08-18 16:52:42 142

原创 tensorlayer学习日志8_chapter3_3.6

第三章最后一个示例,堆叠自编码器 import tensorflow as tfimport tensorlayer as tlimport numpy as npimport time# model = 'sigmoid'model = 'relu'# n_epoch = 200n_epoch = 100batch_size = 128learning_rate ...

2018-08-18 14:27:15 2076

原创 tensorlayer学习日志7_chapter3_3.5_2~9渐变求助路过的大神

这第3.5节中的渐变,我尝试了很多次都无法跑出来,有没大神路过的帮忙一下?import tensorflow as tfimport tensorlayer as tlimport numpy as nplearning_rate = 0.0001lambda_l2_w = 0.01n_epochs = 200batch_size =128print_interval = ...

2018-08-17 21:45:42 257 1

原创 tensorlayer学习日志5_chapter3_3.4

上周发现3.4给漏了,家里小孩突然发烧,医院里待了快一周,所以现在补上~~这几天来回第三章看了好几遍,终于对自编码器有一点了解,这个知乎网页说得很全:https://www.zhihu.com/question/41490383import tensorflow as tfimport tensorlayer as tlimport numpy as nplearning_rate...

2018-08-17 20:20:15 302

原创 tensorlayer学习日志6_chapter3_3.5

3.5主要就是讲降噪编码器,个人感觉主要功能还是为了对付过度拟合为主。。。这节的画出隐层的权值很有意思~~电脑不行,老规矩缩水 训练,教材是训练n_epoch=200的,我这破机器就100好了,然后是每隔20个画个隐层图print_freq=20。这里是model='relu'的,应该还有个model='sigmoid'的,我下次去用好点的电脑再试,再对比吧~这里就只贴下relu的吧...

2018-08-11 23:59:44 383

原创 tensorlayer学习日志4_chapter3_3.3

第三章一开始就傻眼了~~!什么是正则化LP啊~然后果断回头看第二章看了几遍还是难理解,然后参考了这个博客,终于有点感觉了,https://vimsky.com/article/3852.html,其实所谓训练出来的模型,就是W和B的多种可能的集合,B是加减级别的,而W是乘除级别的,所以W的调参是更重要的。这整个第三章就是希望能在训练模型时,调出最好的参来,减少过多无效的和太有效W,从而增加模型的准...

2018-08-10 23:11:05 323

原创 tensorlayer学习日志3_chapter2_2.6.3

第2.6.3,教材提供的示例在:https://github.com/tensorlayer/tensorlayer/blob/master/example/tutorial_mlp_dropout2.py与上一节2.6.2一样,我直接删了tl.logging.set_verbosity(tl.logging.DEBUG)这条,并直接把act=tf.identity定义了。示例里是少了tl...

2018-08-09 23:53:53 1052

原创 tensorlayer学习日志2_chapter2_2.6.1~2

import numpy as npimport tensorlayer as tlx = np.asarray([['a','a'],['b','b'],['c','c'],['d','d'],['e','e'],['f','f']])y = np.asarray([0,1,2,3,4,5])# x与y的元素个数要相同,否则会报错for xx, yy in tl.iterate.m...

2018-08-09 21:44:07 603

原创 tensorlayer学习日志1_chapter2_2.4

自学 tensorflow有一段时间了,陆续看了好几本书,但是因为时间久远问题,看教材决是被卡,很多时候也百度不出个答案来,没办法只能先选条捷径,以后再回来慢慢被 tensorflow的各内部程序吧,要不可真要从入门到放弃咯~~~这几天在了解 tflearn时,发现tensorlayer,感觉这个做突破口比较好,所以决定开始入坑学起~~https://download.csdn.net/d...

2018-08-09 11:53:10 535 1

原创 word2vec-01-初试

今天看到这篇博文,心里一动决定自己也来试一下:https://blog.csdn.net/HOMEGREAT/article/details/797203141、改码~~~~~我也在网络上下载了一个诛仙的txt,但是一上来说报错我想应该是编码问题,可是怎么也不知道是什么编码的,各种试都没用,可是明明用utf确可以读出来的,但用UTF-8也是报错,无奈之中,发现EmEditor这...

2018-07-30 22:47:28 260

原创 python从入门到实践chapter09

from dog import Dog as dghis_dog = dg('Da Huang', 8)print(his_dog.name, his_dog.age)his_dog.sit()his_dog.roll_over()print('~'*100)class Restaurant(): def __init__(self, restaurant_name, c...

2018-07-29 20:44:32 133

转载 python从入门到实践chapter08

def greet_user(username): """Display a simple greeting.""" print("Hello, " + username.title() + "!") greet_user('jesse')print("*"*100)def display_message(): print('I am learin

2018-07-27 14:28:38 127

转载 python从入门到实践chapter07

prompt = "\nTell me something, and I will repeat it back to you:"prompt += "\nEnter 'quit' to end the program. " active = Truewhile active: message = input(prompt) if message == 'qu...

2018-07-27 13:31:13 162

转载 python从入门到实践chapter01~06

print('hello,world!')print("Languages:\n\tPython\n\tC\n\tJavaScript")hello,world!Languages: Python C JavaScriptage = 23message = "Happy " + str(age) + "rd Birthday!"Happy 23rd Birthday!...

2018-07-27 12:40:05 134

opencv3.3.0编译好的win-64位-debug

opencv3.3.0在window10+vs2015+opencv3.3.0contrib+64位+debug模式,经过vs2015和cmake编译好的,直接下载解压后,就可以使用的, 注意这个是64位的哦,并且只有debug模式 !!

2018-11-06

opencv3.1.0编译好的

opencv3.1.0在window10+vs2015+opencv3.1.0contrib+64位+debug模式,经过vs2015和cmake编译好的,直接下载解压后,就可以使用的, 注意这个是64位的哦,并且debug模式only !!

2018-11-06

mkl-2018.0.3-1.tar

anaconda3 安装 tensorflow1.8.0时要用的包,大小182M,可直接用pip安装 .注意这个是2018.0.3-1,我的资源里还有个2018.0.2-1,安装时注意版本

2018-07-27

mkl-2018.0.2-1.tar

anaconda3 安装 tensorflow1.8.0时要用的包,大小176M,可直接用pip安装 .英特尔数学核心函数库(MKL)提供经过高度优化和大量线程化处理的数学例程

2018-07-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除