class documentation
class TFImageClassificationExampleGenerator(TFExampleGenerator): (source)
Constructor: TFImageClassificationExampleGenerator(force_rgb)
Class for generating tf.train.Example protos for samples in TF image classification format.
See :ref:`this page <TFImageClassificationDataset-export>` for format details.
Parameters | |
force | whether to force convert all images to RGB |
Method | make |
Makes a tf.train.Example for the given data. |
Inherited from TFExampleGenerator
:
Method | __init__ |
Undocumented |
Method | _parse |
Undocumented |
Makes a tf.train.Example for the given data.
Parameters | |
image | an image or the path to the image on disk |
classification | a fiftyone.core.labels.Classification
instance, or None |
filename:None | a filename for the image. Required when image_or_path is an image, in which case the extension of this filename determines the encoding used. If image_or_path is the path to an image, this is optional; by default, the basename of image_path is used |
Returns | |
a tf.train.Example |