Sample parsers.
Class |
|
Mixin for sample parsers that extract clips from fiftyone.core.clips.ClipView instances. |
Class |
|
Parser for samples in FiftyOne image classification datasets. |
Class |
|
Parser for samples in FiftyOne image detection datasets. |
Class |
|
Parser for samples in FiftyOne image labels datasets. |
Class |
|
Parser for fiftyone.core.sample.Sample instances that contain labeled images. |
Class |
|
Parser for fiftyone.core.sample.Sample instances that contain labeled videos. |
Class |
|
Parser for samples in FiftyOne temporal detection datasets. |
Class |
|
Parser for fiftyone.core.sample.Sample instances that contain images. |
Class |
|
Parser for fiftyone.core.sample.Sample instances that contain unlabeled media. |
Class |
|
Parser for fiftyone.core.sample.Sample instances that contain videos. |
Class |
|
Parser for samples in FiftyOne video labels datasets. |
Class |
|
Generic parser for image classification(s) samples whose labels are represented as fiftyone.core.labels.Classification instances. |
Class |
|
Generic parser for image detection samples whose labels are represented as fiftyone.core.labels.Detections instances. |
Class |
|
Generic parser for multitask image prediction samples whose labels are stored in eta.core.image.ImageLabels format. |
Class |
|
Sample parser that parses unlabeled image samples. |
Class |
|
Interface for SampleParser instances that parse labeled image samples. |
Class |
|
Generic sample parser that parses samples that are (image_or_path, label) tuples, where: |
Class |
|
Interface for SampleParser instances that parse labeled video samples. |
Class |
|
Sample parser that parses unlabeled media samples. |
Class |
|
Base interface for sample parsers. |
Class |
|
Interface for SampleParser instances that parse unlabeled image samples. |
Class |
|
Interface for SampleParser instances that parse unlabeled media samples. |
Class |
|
Interface for SampleParser instances that parse unlabeled video samples. |
Class |
|
Generic parser for labeled video samples whose labels are represented in eta.core.video.VideoLabels format. |
Class |
|
Sample parser that parses unlabeled video samples. |
Function | add |
Adds the given images to the dataset. |
Function | add |
Adds the given labeled images to the dataset. |
Function | add |
Adds the given labeled videos to the dataset. |
Function | add |
Adds the given videos to the dataset. |
Adds the given images to the dataset.
This operation does not read the images.
See :ref:`this guide <custom-sample-parser>` for more details about
adding images to a dataset by defining your own
UnlabeledImageSampleParser
.
Parameters | |
dataset | a fiftyone.core.dataset.Dataset |
samples | an iterable of samples that can be parsed by sample_parser |
sample | a UnlabeledImageSampleParser instance to use to
parse the samples |
tags:None | an optional tag or iterable of tags to attach to each sample |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Returns | |
a list of IDs of the samples that were added to the dataset |
Adds the given labeled images to the dataset.
This operation will iterate over all provided samples, but the images will not be read (unless the sample parser requires it in order to compute image metadata).
See :ref:`this guide <custom-sample-parser>` for more details about
adding labeled images to a dataset by defining your own
LabeledImageSampleParser
.
Parameters | |
dataset | a fiftyone.core.dataset.Dataset |
samples | an iterable of samples that can be parsed by sample_parser |
sample | a LabeledImageSampleParser instance to use to
parse the samples |
labelNone | controls the field(s) in which imported labels are
stored. If the parser produces a single
fiftyone.core.labels.Label instance per sample, this
argument specifies the name of the field to use; the default is
"ground_truth". If the parser produces a dictionary of labels
per sample, this argument can be either a string prefix to prepend
to each label key or a dict mapping label keys to field names; the
default in this case is to directly use the keys of the imported
label dictionaries as field names |
tags:None | an optional tag or iterable of tags to attach to each sample |
expandTrue | whether to dynamically add new sample fields encountered to the dataset schema. If False, an error is raised if a sample's schema is not a subset of the dataset schema |
dynamic:False | whether to declare dynamic attributes of embedded document fields that are encountered |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Returns | |
a list of IDs of the samples that were added to the dataset |
Adds the given labeled videos to the dataset.
This operation will iterate over all provided samples, but the videos will not be read/decoded/etc.
See :ref:`this guide <custom-sample-parser>` for more details about
adding labeled videos to a dataset by defining your own
LabeledVideoSampleParser
.
Parameters | |
dataset | a fiftyone.core.dataset.Dataset |
samples | an iterable of samples that can be parsed by sample_parser |
sample | a LabeledVideoSampleParser instance to use to
parse the samples |
labelNone | controls the field(s) in which imported labels are
stored. If the parser produces a single
fiftyone.core.labels.Label instance per sample/frame, this
argument specifies the name of the field to use; the default is
"ground_truth". If the parser produces a dictionary of labels
per sample/frame, this argument can be either a string prefix to
prepend to each label key or a dict mapping label keys to field
names; the default in this case is to directly use the keys of the
imported label dictionaries as field names |
tags:None | an optional tag or iterable of tags to attach to each sample |
expandTrue | whether to dynamically add new sample fields encountered to the dataset schema. If False, an error is raised if a sample's schema is not a subset of the dataset schema |
dynamic:False | whether to declare dynamic attributes of embedded document fields that are encountered |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Returns | |
a list of IDs of the samples that were added to the dataset |
Adds the given videos to the dataset.
This operation does not read the videos.
See :ref:`this guide <custom-sample-parser>` for more details about
adding videos to a dataset by defining your own
UnlabeledVideoSampleParser
.
Parameters | |
dataset | a fiftyone.core.dataset.Dataset |
samples | an iterable of samples that can be parsed by sample_parser |
sample | a UnlabeledVideoSampleParser instance to use to
parse the samples |
tags:None | an optional tag or iterable of tags to attach to each sample |
progress:None | whether to render a progress bar (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead |
Returns | |
a list of IDs of the samples that were added to the dataset |