class documentation
class TFRecordSampleParser(foud.LabeledImageSampleParser): (source)
Known subclasses: fiftyone.utils.tf.TFImageClassificationSampleParser
, fiftyone.utils.tf.TFObjectDetectionSampleParser
Constructor: TFRecordSampleParser(force_rgb)
Base class for sample parsers that ingest tf.train.Example protos containing labeled images.
Parameters | |
force | whether to force convert all images to RGB |
Method | __init__ |
Undocumented |
Method | clear |
Clears the current sample. |
Method | get |
Returns the image from the current sample. |
Method | get |
Returns the label for the current sample. |
Instance Variable | force |
Undocumented |
Method | _parse |
Undocumented |
Method | _parse |
Undocumented |
Method | _parse |
Undocumented |
Constant | _FEATURES |
Undocumented |
Instance Variable | _channels |
Undocumented |
Instance Variable | _current |
Undocumented |
Property | _current |
Undocumented |
Inherited from LabeledImageSampleParser
:
Method | get |
Returns the image metadata for the current sample. |
Method | get |
Returns the image path for the current sample. |
Property | has |
Whether this parser produces fiftyone.core.metadata.ImageMetadata instances for samples that it parses. |
Property | has |
Whether this parser produces paths to images on disk for samples that it parses. |
Property | label |
The fiftyone.core.labels.Label class(es) returned by this parser. |
Inherited from SampleParser
(via LabeledImageSampleParser
):
Method | with |
Sets the current sample so that subsequent calls to methods of this parser will return information from the given sample. |
Property | current |
The current sample. |
Instance Variable | _current |
Undocumented |
Returns the label for the current sample.
Returns | |
a fiftyone.core.labels.Label instance, or a dictionary
mapping field names to fiftyone.core.labels.Label
instances, or None if the sample is unlabeled |
overridden in
fiftyone.utils.tf.TFImageClassificationSampleParser
, fiftyone.utils.tf.TFObjectDetectionSampleParser
Undocumented
overridden in
fiftyone.utils.tf.TFImageClassificationSampleParser
, fiftyone.utils.tf.TFObjectDetectionSampleParser
Undocumented
overridden in
fiftyone.utils.tf.TFImageClassificationSampleParser
, fiftyone.utils.tf.TFObjectDetectionSampleParser
Undocumented
overridden in
fiftyone.utils.tf.TFImageClassificationSampleParser
, fiftyone.utils.tf.TFObjectDetectionSampleParser
Undocumented
Value |
|