def load_images(self, filepaths):
def read(fname):<EOL><INDENT>im = Image.open(fname)<EOL>im = np.float32(im)<EOL>return im/<NUM_LIT><EOL><DEDENT>x_all = np.array([read(fname) for fname in tqdm.tqdm(filepaths)])<EOL>x_all = x_all.astype('<STR_LIT>')<EOL>if self.mode == '<STR_LIT>':<EOL><INDENT>x_all = x_all.transpose(<NUM_LIT:0>, <NUM_LIT:3>, <NUM_LIT:1>, <NUM_LIT:2>)<EOL><DEDENT>print("<STR_LIT>")<EOL>return x_all<EOL>
Load in image files from list of paths.

        Parameters
        ----------

        filepaths : List[str]
            List of file paths of images to be loaded.

        Returns
        -------
        images : array-like shape (n_images, n_colors, image_width, image_height)
            Images normalized to have pixel data range [0,1].