MCPcopy 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
77def 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
83def normalize(x) :
84 return x/127.5 - 1

Callers

nothing calls this directly

Calls 2

normalizeFunction · 0.85
imreadMethod · 0.45

Tested by

no test coverage detected