class documentation
class TFExampleGenerator(object): (source)
Known subclasses: fiftyone.utils.tf.TFImageClassificationExampleGenerator
, fiftyone.utils.tf.TFObjectDetectionExampleGenerator
Constructor: TFExampleGenerator(force_rgb)
Base class for sample writers that emit tf.train.Example protos.
Parameters | |
force | whether to force convert all images to RGB |
Method | __init__ |
Undocumented |
Method | make |
Makes a tf.train.Example for the given data. |
Instance Variable | force |
Undocumented |
Method | _parse |
Undocumented |
overridden in
fiftyone.utils.tf.TFImageClassificationExampleGenerator
, fiftyone.utils.tf.TFObjectDetectionExampleGenerator
Makes a tf.train.Example for the given data.
Parameters | |
image | an image or the path to the image on disk |
label | a fiftyone.core.labels.Label |
*args | subclass-specific positional arguments |
**kwargs | subclass-specific keyword arguments |
Returns | |
a tf.train.Example |
overridden in
fiftyone.utils.tf.TFImageClassificationExampleGenerator
, fiftyone.utils.tf.TFObjectDetectionExampleGenerator
Undocumented