MCPcopy 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
32def image2array(im):
33 arr = np.array(im) # will be (H, W, 3)
34 return arr.transpose((2, 1, 0))
35
36
37def getImageData():

Callers 1

getImageDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected