View source on GitHub |
Base class for image data iterators.
Inherits From: PyDataset
tf.keras.preprocessing.image.Iterator(
n, batch_size, shuffle, seed
)
DEPRECATED.
Every Iterator
must implement the _get_batches_of_transformed_samples
method.
Attributes | |
---|---|
max_queue_size
|
|
num_batches
|
Number of batches in the PyDataset. |
use_multiprocessing
|
|
workers
|
Methods
on_epoch_end
on_epoch_end()
Method called at the end of every epoch.
reset
reset()
__getitem__
__getitem__(
idx
)
Gets batch at position index
.
Args | |
---|---|
index
|
position of the batch in the PyDataset. |
Returns | |
---|---|
A batch |
__iter__
__iter__()
__len__
__len__()
Class Variables | |
---|---|
white_list_formats |
('png', 'jpg', 'jpeg', 'bmp', 'ppm', 'tif', 'tiff')
|