Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OUCMachineLearning/OUCML
/ preprocessing
Function
preprocessing
GAN/Self_attention_GAN_tensorflow/utils.py:77–81 ·
view source on GitHub ↗
(x, size)
Source
from the content-addressed store, hash-verified
75
76
77
def
preprocessing(x, size):
78
x = scipy.misc.imread(x, mode=
'RGB'
)
79
x = scipy.misc.imresize(x, [size, size])
80
x = normalize(x)
81
return
x
82
83
def
normalize(x) :
84
return
x/127.5 - 1
Callers
nothing calls this directly
Calls
2
normalize
Function · 0.85
imread
Method · 0.45
Tested by
no test coverage detected