Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kiryuu Sakuya
TensorFlow-Homework
Commits
f5fb10ab
Unverified
Commit
f5fb10ab
authored
Apr 14, 2020
by
Kiryuu Sakuya
🎵
Browse files
Update
parent
f745c1ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
exam/step5/VGGPreprocessComplete.py
View file @
f5fb10ab
import
numpy
as
np
def
VGGPreprocessing
(
originImgMatrix
):
\
"The only preprocessing we do is subtracting the mean RGB value,
\
\
computed on the training set, from each pixel.
\
\
原论文中对输入的RGB矩阵做了一个减去均值的预处理,该函数实现这个预处理
\
"
"The only preprocessing we do is subtracting the mean RGB value,
\
computed on the training set, from each pixel.
\
原论文中对输入的RGB矩阵做了一个减去均值的预处理,该函数实现这个预处理"
if
type
(
originImgMatrix
)
is
not
np
.
ndarray
:
originImgMatrix
=
np
.
ndarray
(
originImgMatrix
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment