![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
AI
凯恩H
这个作者很懒,什么都没留下…
展开
-
AI笔记-1-自编码
先对数据进行无监督的学习,提取到一些有用的特征,将神经网络权重初始化到一个较好的分布,然后再使用有标注的数据进行监督训练,即对权重进行 fine-tune。原创 2017-11-29 21:31:13 · 286 阅读 · 0 评论 -
AI笔记-2-tensorflow读取图片的方法
下面讲解tensorflow如何读取jpg格式的图片,png格式的图片是一样的。有两种情况:第一种就是把图片看做是一个图片直接读进来,获取图片的原始数据,再进行解码,主要用到的函数就是tf.gfile.FastGFile,tf.image.decode_jpeg例如:[python] view plain copy print?i转载 2017-11-30 17:31:50 · 735 阅读 · 0 评论 -
TensorFlow图片转为数据
把文件夹中的图片文件,转换为数组import osfrom PIL import Imageimport numpy as npdef load_data(): data = np.empty((42000,1,28,28),dtype="float32") label = np.empty((42000,),dtype="unit8") imgs = os.li原创 2018-01-18 11:12:15 · 2750 阅读 · 1 评论