def _read_by_function(self, filename): array = get_image(filename, 108, is_crop=True, resize_w=self.output_size, is_grayscale=False) real_images = np.array(array) return real_images