tf.keras.preprocessing.image.Iterator

Base class for image data iterators.

Inherits From: PyDataset

DEPRECATED.

Every Iterator must implement the _get_batches_of_transformed_samples method.

n Integer, total number of samples in the dataset to loop over.
batch_size Integer, size of a batch.
shuffle Boolean, whether to shuffle the data between epochs.
seed Random seeding for data shuffling.

max_queue_size

use_multiprocessing

workers

Methods

on_epoch_end

View source

Method called at the end of every epoch.

reset

View source

__getitem__

View source

Gets batch at position index.

Args
index position of the batch in the PyDataset.

Returns
A batch

__iter__

View source

Create a generator that iterate over the PyDataset.

__len__

View source

Number of batch in the PyDataset.

Returns
The number of batches in the PyDataset.

white_list_formats ('png', 'jpg', 'jpeg', 'bmp', 'ppm', 'tif', 'tiff')