class documentation

Class for generating tf.train.Example protos for samples in TF Object Detection API format.

See :ref:`this page <TFObjectDetectionDataset-export>` for format details.

Parameters
force_rgbwhether to force convert all images to RGB
classesthe list of possible class labels
Method __init__ Undocumented
Method make_tf_example Makes a tf.train.Example for the given data.
Instance Variable classes Undocumented
Instance Variable _dynamic_classes Undocumented
Instance Variable _labels_map_rev Undocumented

Inherited from TFExampleGenerator:

Method _parse_image_or_path Undocumented
def __init__(self, force_rgb=False, classes=None): (source)
def make_tf_example(self, image_or_path, detections, filename=None): (source)

Makes a tf.train.Example for the given data.

Parameters
image_or_pathan image or the path to the image on disk
detectionsa fiftyone.core.labels.Detections instance, or None
filename:Nonea 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

Undocumented

_dynamic_classes = (source)

Undocumented

_labels_map_rev = (source)

Undocumented