2018年7月2日
摘要: tf.nn.conv2d(value,filter,strides,[...]) 对于图片来说 value : 形状通常是np.array()类型的4维数组也称tensor(张量), (batch,height,width,channels) 可以理解为(图片样本的个数,高,宽,图片的颜色通道数) 阅读全文
posted @ 2018-07-02 18:34 庭明 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 原文http://blog.topspeedsnail.com/archives/10858 gen_captcha.py 生成验证码图片及标签(源数据) train_captcha.py 定义辅助函数及模型,训练。 test_captcha.py 使用模型识别验证码 阅读全文
posted @ 2018-07-02 17:55 庭明 阅读(239) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tf #保存模型 saver = tf.train.Saver() saver.save(sess, "e://code//python//test//package_test//model.ckpt", global_step=step) #加载读取模型 阅读全文
posted @ 2018-07-02 17:40 庭明 阅读(634) 评论(0) 推荐(0) 编辑