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

Function files2images_theano

unsupervised_class3/util.py:125–129  ·  view source on GitHub ↗
(filenames)

Source from the content-addressed store, hash-verified

123
124
125def files2images_theano(filenames):
126 # theano wants images to be of shape (C, D, D)
127 # tensorflow wants (D, D, C) which is what scipy imread
128 # uses by default
129 return [scale_image(imread(fn).transpose((2, 0, 1))) for fn in filenames]
130
131
132def files2images(filenames):

Callers

nothing calls this directly

Calls 2

scale_imageFunction · 0.85
imreadFunction · 0.85

Tested by

no test coverage detected