TensorFlow基础笔记(3) cifar10 分类学习 CIFAR-10 is a common benchmark in machine learning for image recognition. http://www.cs.toronto.edu/~kriz/cifar.html Code in this directory demonstrates how to use TensorFlow to train and evaluate a convolutional neural…
(1) 最简单的神经网络分类器 # encoding: UTF-8 import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data as mnist_data print("Tensorflow version " + tf.__version__) print(tf.__path__) tf.set_random_seed(0) # 输入mnist数据 mnist = mnist_d…
1 官方文档 https://www.tensorflow.org/api_docs/ 2 极客学院中文文档 http://www.tensorfly.cn/tfdoc/api_docs/python/array_ops.html 3 TensorFlow基础笔记(2) minist分类学习…
转载http://blog.csdn.net/jerr__y/article/details/60877873 1. 首先看看比较简单的 tf.name_scope(‘scope_name’). tf.name_scope 主要结合 tf.Variable() 来使用,方便参数命名管理. ''' Signature: tf.name_scope(*args, **kwds) Docstring: Returns a context manager for use when defining a…
数据材料 这是一个小型的人脸数据库,一共有40个人,每个人有10张照片作为样本数据.这些图片都是黑白照片,意味着这些图片都只有灰度0-255,没有rgb三通道.于是我们需要对这张大图片切分成一个个的小脸.整张图片大小是1190 × 942,一共有20 × 20张照片.那么每张照片的大小就是(1190 / 20)× (942 / 20)= 57 × 47 (大约,以为每张图片之间存在间距). 问题解决: 10类样本,利用CNN训练可以分类10类数据的神经网络,与手写字符识别类似 olivettif…
参考 http://blog.csdn.net/wspba/article/details/53994649 https://www.ctolib.com/AdaIN-style.html Acknowledgement This project is inspired by many existing style transfer methods and their open-source implementations, including: Image Style Transfer Usi…
参考 http://blog.csdn.net/jsond/article/details/72667829 资源: 1.相关的vgg模型下载网址 http://www.vlfeat.org/matconvnet/models/beta16/imagenet-vgg-verydeep-19.mat 2.ImageNet 1000种分类以及排列 https://github.com/sh1r0/caffe-Android-demo/blob/master/app/src/main/assets/s…
1.Keras是一个由Python编写的开源人工神经网络库. 2.深度学习主要应用在三个大的方向,计算机视觉,自然语言处理,强化学习 3.计算机视觉主要有:图片识别,目标检测,语义分割,视频理解(行为检测), 图片生成,艺术风格迁移等等. 4.自然语言处理:机器翻译.聊天机器人 5.强化学习:虚拟游戏.机器人.自动驾驶 6.tensorflow:加速计算,自动梯度, 常用神经网络接口: TensorFlow 除了提供底层的矩阵相乘.相加等数学函数,还内建了常用神经网络运算 函数.常用网络层.网络…
参考 http://blog.csdn.net/rockingdingo/article/details/75452711 https://www.cnblogs.com/hrlnw/p/7007648.html https://www.cnblogs.com/hrlnw/p/7383951.html 1.下载tensorflow源码 git clone  https://github.com/tensorflow/tensorflow 2.安装bazel sudo apt-get update…
import numpy as np import tensorflow as tf #build a graph print("build a graph") #生产变量tensor a=tf.constant([[1,2],[3,4]]) b=tf.constant([[1,1],[0,1]]) #获取tensor的数据类型和张量维度 print("a.dtype",a.dtype) print(a.get_shape()) print("type o…