【笔记】图片标准化:像素值由0-255映射为mean为0,var为1的分布,像素值改变,分布没有改变
import tensorflow as tfimport matplotlib.image as imgimport matplotlib.pyplot as pltsess=tf.InteractiveSession()image=img.imread("E:/data/test_img/史努比.jpg")shape=tf.shape(image).eval() # 读取图片的大小h,w=shape[0],shape[1]standardization_i...
复制链接