Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.keras.preprocessing.image.Iterator

TensorFlow 2.0 version View source on GitHub

Class Iterator

Inherits From: Sequence

Aliases:

  • Class tf.compat.v1.keras.preprocessing.image.Iterator
  • Class tf.compat.v2.keras.preprocessing.image.Iterator

__init__

__init__(
    n,
    batch_size,
    shuffle,
    seed
)

Methods

__getitem__

__getitem__(idx)

__iter__

__iter__()

__len__

__len__()

next

next()

For python 2.x.

Returns

The next batch.

on_epoch_end

on_epoch_end()

reset

reset()

Class Members

  • white_list_formats