原创 Python錯誤: NameError

錯誤 img_path = raw_input('Input the path and image name:') 執行顯示如下: NameError: name ‘raw_input’ is not defined 原因

原创 TensorFlow 實現VGG16圖像分類

TensorFlow 實現VGG16圖像分類1. vgg16.py 構建模型(1) __init __(2) forward2. utils.py 處理圖片3. nclasses.py 字典4. app.py 主應用程序

原创 DeepLearning-L7-GoogLeNet

GoogLeNet1. Inception2. 網絡結構 2014年,谷歌的Szegedy等人在《Going deeper with convolutions》提出GoogLeNet(據說是爲了致敬“LeNet)。 1. In

原创 DeepLearning-L5-AlexNet

AlexNet1. 簡介2. 網絡結構 1. 簡介 2012年,Alex Krizhevsky, Ilya Sutskever和Geoffrey E. Hinton在論文《ImageNet Classification with

原创 DeepLearning-L4-LeNet5

LeNet51. 簡介2. 網絡結構 1. 簡介 1998年,Yann LeCun在論文《Gradient-based learning applied to document recognition》提出LeNet-5,它是第一

原创 TensorFlow MNIST手寫數字識別(神經網絡最佳實踐版)

(1) 引入函數庫 import numpy as np import matplotlib.pyplot as plt import os import tensorflow as tf from tensorflow.pyt

原创 DeepLearning-L6-VGG16

VGG-161. 簡介2. 網絡結構 1. 簡介 2014年,Karen Simonyan, Andrew Zisserman在《Very Deep Convolutional Networks For Large-Scale I

原创 DeepLearning-L8-ResNet

ResNet1. 深度網絡的問題2. ResNet基本模塊(1)The identity block(2)The convolutional block3. ResNet網絡結構 2015年,Kaiming He在《Deep Re

原创 TensorFlow 入門:Session、Variable、placeholder

TensorFlow入門-Session、Variable、placeholder1. 會話2. 變量3. placeholder Tensorflow 是谷歌2015年11月正式開源的計算框架。主要依賴Protocol Buff

原创 TensorFlow MNIST手寫數字識別(神經網絡極簡版)

MNIST手寫數字識別數據集是NIST數據集的一個子集(介紹),常用於深度學習的入門樣例。 該數據集包含60000張圖片作爲訓練數據(爲驗證模型效果,一般從驗證數據中劃分出一部分作爲驗證數據,一般爲5000),10000張圖片作爲

原创 TensorFlow 神經網絡優化:指數衰減學習率、滑動平均、正則化

1. 指數衰減學習率 tf.train.exponential_decay 先使用較大的學習率快速得到一個較優解,然後隨着迭代逐步減小學習率,使模型在訓練後期更加穩定。 decayed_learning_rate=learning

原创 深度學習:神經網絡從1到N

符號表示 Superscript [l][l][l] denotes a quantity associated with the lthl^{th}lth layer. Example: a[L]a^{[L]}a[L] is

原创 TensorFlow 常用優化器:GradientDescent、Momentum、Adam

Tensorflow中支持11中不同的優化器,包括: tf.train.Optimizer tf.train.GradientDescentOptimizer tf.train.AdadeltaOptimizer tf.trai

原创 TensorFlow MNIST手寫數字識別(最佳實踐版)

(1) 引入函數庫 import numpy as np import matplotlib.pyplot as plt import os import tensorflow as tf from tensorflow.pyt

原创 TensorFlow MNIST手寫數字識別(極簡版)

MNIST手寫數字識別數據集是NIST數據集的一個子集(介紹),常用於深度學習的入門樣例。 該數據集包含60000張圖片作爲訓練數據(爲驗證模型效果,一般從驗證數據中劃分出一部分作爲驗證數據,一般爲5000),10000張圖片作爲