Unverified Commit f5fb10ab authored by Kiryuu Sakuya's avatar Kiryuu Sakuya 🎵
Browse files

Update

parent f745c1ab
import numpy as np import numpy as np
def VGGPreprocessing(originImgMatrix): def VGGPreprocessing(originImgMatrix):
\"The only preprocessing we do is subtracting the mean RGB value, \\ "The only preprocessing we do is subtracting the mean RGB value, \
computed on the training set, from each pixel.\\ computed on the training set, from each pixel. \
原论文中对输入的RGB矩阵做了一个减去均值的预处理,该函数实现这个预处理\" 原论文中对输入的RGB矩阵做了一个减去均值的预处理,该函数实现这个预处理"
if type(originImgMatrix) is not np.ndarray: if type(originImgMatrix) is not np.ndarray:
originImgMatrix = np.ndarray(originImgMatrix) originImgMatrix = np.ndarray(originImgMatrix)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment