Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ image2array
Function
image2array
cnn_class/cifar.py:32–34 ·
view source on GitHub ↗
(im)
Source
from the content-addressed store, hash-verified
30
31
32
def
image2array(im):
33
arr = np.array(im)
# will be (H, W, 3)
34
return
arr.transpose((2, 1, 0))
35
36
37
def
getImageData():
Callers
1
getImageData
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected