MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / unpreprocess

Function unpreprocess

cnn_class2/style_transfer1.py:87–92  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

85
86
87def unpreprocess(img):
88 img[..., 0] += 103.939
89 img[..., 1] += 116.779
90 img[..., 2] += 126.68
91 img = img[..., ::-1]
92 return img
93
94
95def scale_img(x):

Callers 2

minimizeFunction · 0.90
style_transfer1.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected