(filenames)
| 123 | |
| 124 | |
| 125 | def 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 | |
| 132 | def files2images(filenames): |
nothing calls this directly
no test coverage detected