桌面雲上tensorflow1.2,linux服務器上tensorflow1.4
說明文檔
https://www.tensorflow.org/get_started/?hl=zh-cn
windows下安裝
pip install tensorflow
來自 <https://blog.csdn.net/zhuzhishi2042/article/details/72888312>
教程
https://morvanzhou.github.io/tutorials/machine-learning/tensorflow/
GPU使用
http://www.tensorfly.cn/tfdoc/how_tos/using_gpu.html
LeNet
https://blog.csdn.net/d5224/article/details/68928083
詳細講解
https://blog.csdn.net/yanzi6969/article/details/78019683
代碼實現
https://blog.csdn.net/jeryjeryjery/article/details/79426907
https://blog.csdn.net/VictoriaW/article/details/72354307
tensorflow車牌識別
https://blog.csdn.net/ShadowN1ght/article/details/78571187
官方中文文檔
http://www.tensorfly.cn/tfdoc/get_started/introduction.html
tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None)
第一個參數input:[batch, in_height, in_width, in_channels] batch爲-1表示自動
第二個參數filter:[filter_height, filter_width, in_channels, out_channels]
第三個參數strides:一個一維的向量,長度4,其規定前後必須爲1,所以我們可以改的是中間兩個數,中間兩個數分別代表了水平滑動和垂直滑動步長值。[1,stride,stride,1]
第四個參數padding:只能是"SAME","VALID"其中之一
第五個參數:use_cudnn_on_gpu:bool類型,是否使用cudnn加速,默認爲true
結果返回一個Tensor,這個輸出,就是我們常說的feature map
https://zhuanlan.zhihu.com/p/26139876
tf.nn.max_pool(value, ksize, strides, padding, name=None)
第一個參數value:需要池化的輸入,一般池化層接在卷積層後面,所以輸入通常是feature map,依然是[batch, height, width, channels]這樣的shape
第二個參數ksize:池化窗口的大小,取一個四維向量,一般是[1, height, width, 1],因爲我們不想在batch和channels上做池化,所以這兩個維度設爲了1
第三個參數strides:和卷積類似,窗口在每一個維度上滑動的步長,一般也是[1, stride,stride, 1]
第四個參數padding:和卷積類似,可以取'VALID' 或者'SAME'
返回一個Tensor,類型不變,shape仍然是[batch, height, width, channels]這種形式
https://blog.csdn.net/mao_xiao_feng/article/details/53453926
padding='SAME'
https://www.cnblogs.com/qggg/p/6832705.html
在卷積核移動逐漸掃描整體圖時候,因爲步長的設置問題,可能導致剩下未掃描的空間不足以提供給卷積核的大小掃描,比如有圖大小爲5*5,卷積核爲2*2,步長爲2,卷積核掃描了兩次後,剩下一個元素,不夠卷積核掃描了,這個時候就在後面補零,補完後滿足卷積核的掃描,這種方式就是same。如果說把剛纔不足以掃描的元素位置拋棄掉,就是valid方式。
https://blog.csdn.net/qq_28752595/article/details/80059302
常量(tf.constant)與變量(tf.Varialbe)
https://blog.csdn.net/yjk13703623757/article/details/77075711
tf.constant(value, dtype=None, shape=None, name='Const', verify_shape=False)
https://www.jianshu.com/p/474de963b46f
ValueError: At least two variables have the same name: Variable_3
解決:tf.reset_default_graph()
https://blog.csdn.net/ztf312/article/details/72854906
tf.nn.embedding_lookup
https://www.jianshu.com/p/677e71364c8e