class documentation
class TFObjectDetectionExampleGenerator(TFExampleGenerator): (source)
Constructor: TFObjectDetectionExampleGenerator(force_rgb, classes)
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 | whether to force convert all images to RGB |
classes | the list of possible class labels |
Method | __init__ |
Undocumented |
Method | make |
Makes a tf.train.Example for the given data. |
Instance Variable | classes |
Undocumented |
Instance Variable | _dynamic |
Undocumented |
Instance Variable | _labels |
Undocumented |
Inherited from TFExampleGenerator
:
Method | _parse |
Undocumented |
Makes a tf.train.Example for the given data.
Parameters | |
image | an image or the path to the image on disk |
detections | a fiftyone.core.labels.Detections 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 |