«
class documentation

class LegacyFiftyOneDataset(Dataset): (source)

View In Hierarchy

Legacy disk representation of an entire fiftyone.core.dataset.Dataset stored on disk in a serialized JSON format along with its source media.

Datasets of this type are read/written in the following format:

<dataset_dir>/
    metadata.json
    samples.json
    data/
        <filename1>.<ext>
        <filename2>.<ext>
        ...
    annotations/
        <anno_key1>.json
        <anno_key2>.json
        ...
    brain/
        <brain_key1>.json
        <brain_key2>.json
        ...
    evaluations/
        <eval_key1>.json
        <eval_key2>.json
        ...

where metadata.json is a JSON file containing metadata associated with the dataset, samples.json is a JSON file containing a serialized representation of the samples in the dataset, annotations/ contains any serialized fiftyone.core.annotations.AnnotationResults, brain/ contains any serialized fiftyone.core.brain.BrainResults, and evaluations/ contains any serialized fiftyone.core.evaluations.EvaluationResults.

Video datasets have an additional frames/ directory that contains a serialized representation of the frame labels for each video in the dataset.

Note

See fiftyone.utils.data.importers.LegacyFiftyOneDatasetImporter for parameters that can be passed to methods like Dataset.from_dir() to customize the import of datasets of this type.

Note

See fiftyone.utils.data.exporters.LegacyFiftyOneDatasetExporter for parameters that can be passed to methods like SampleCollection.export() to customize the export of datasets of this type.

Method get_dataset_exporter_cls Returns the fiftyone.utils.data.exporters.DatasetExporter class for exporting datasets of this type to disk.
Method get_dataset_importer_cls Returns the fiftyone.utils.data.importers.DatasetImporter class for importing datasets of this type from disk.
def get_dataset_exporter_cls(self): (source)
def get_dataset_importer_cls(self): (source)