Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
87
def
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
95
def
scale_img(x):
Callers
2
minimize
Function · 0.90
style_transfer1.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected