• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






天生自然

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2019年5月6日

吴裕雄 python 神经网络——TensorFlow实现AlexNet模型处理手写数字识别MNIST数据集
摘要: import tensorflow as tf # 输入数据 from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("E:\\MNIST_data", one_hot=True) # 定义网络的超参数 learning_rate = 0.001 trainin... 阅读全文
posted @ 2019-05-06 22:57 吴裕雄 阅读(1391) 评论(0) 推荐(0)
 
吴裕雄 python 神经网络——TensorFlow图片预处理
摘要: import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # 使用'r'会出错,无法解码,只能以2进制形式读取 # img_raw = tf.gfile.FastGFile('E:\\myresource\\moutance.jpg','rb').read() img_raw = open('E:\\m... 阅读全文
posted @ 2019-05-06 20:59 吴裕雄 阅读(762) 评论(0) 推荐(0)
 
吴裕雄 python 神经网络——TensorFlow图片预处理调整图片
摘要: import numpy as np import tensorflow as tf import matplotlib.pyplot as plt def distort_color(image, color_ordering=0): ''' 随机调整图片的色彩,定义两种处理顺序。 ''' if color_ordering == 0: ima... 阅读全文
posted @ 2019-05-06 19:58 吴裕雄 阅读(746) 评论(0) 推荐(0)
 
吴裕雄 python 神经网络TensorFlow实现LeNet模型处理手写数字识别MNIST数据集
摘要: import tensorflow as tf tf.reset_default_graph() # 配置神经网络的参数 INPUT_NODE = 784 OUTPUT_NODE = 10 IMAGE_SIZE = 28 NUM_CHANNELS = 1 NUM_LABELS = 10 # 第一层卷积层的尺寸和深度 CONV1_DEEP = 32 CONV1_SIZE = 5 # 第二层... 阅读全文
posted @ 2019-05-06 16:50 吴裕雄 阅读(863) 评论(0) 推荐(0)