class documentation
class ZooDatasetInfo(etas.Serializable): (source)
Constructor: ZooDatasetInfo(zoo_dataset, dataset_type, num_samples, downloaded_splits, ...)
Class containing info about a dataset in the FiftyOne Dataset Zoo.
Parameters | |
zoo | the ZooDataset instance for the dataset |
dataset | the fiftyone.types.Dataset type of the dataset |
num | the total number of samples in all downloaded splits of the dataset |
downloaded | a dict of ZooDatasetSplitInfo
instances describing the downloaded splits of the dataset, if
applicable |
parameters | a dict of parameters for the dataset |
classes | a list of class label strings |
Class Method | from |
Loads a ZooDatasetInfo from a JSON dictionary. |
Class Method | from |
Loads a ZooDatasetInfo from a JSON file on disk. |
Method | __init__ |
Undocumented |
Method | add |
Adds the split to the dataset. |
Method | attributes |
Returns a list of class attributes to be serialized. |
Method | get |
Returns the fiftyone.types.Dataset type instance for the dataset. |
Method | get |
Returns the ZooDataset instance for the dataset. |
Method | is |
Whether the given dataset split is downloaded. |
Method | remove |
Removes the split from the dataset. |
Instance Variable | classes |
Undocumented |
Instance Variable | downloaded |
Undocumented |
Instance Variable | num |
Undocumented |
Instance Variable | parameters |
Undocumented |
Property | dataset |
The fully-qualified class string of the fiftyone.types.Dataset type, if any. |
Property | name |
The name of the dataset. |
Property | supported |
A tuple of supported splits for the dataset, or None if the dataset does not have splits. |
Property | url |
The dataset's URL, or None if it is not remotely-sourced. |
Property | zoo |
The fully-qualified class string for the ZooDataset of the dataset. |
Class Method | _from |
Undocumented |
Method | _compute |
Undocumented |
Instance Variable | _dataset |
Undocumented |
Instance Variable | _zoo |
Undocumented |
@classmethod
def from_json(cls, json_path, zoo_dataset=None, upgrade=False, warn_deprecated=False): (source) ¶
def from_json(cls, json_path, zoo_dataset=None, upgrade=False, warn_deprecated=False): (source) ¶
Loads a ZooDatasetInfo
from a JSON file on disk.
Parameters | |
json | path to JSON file |
zooNone | an existing ZooDataset instance |
upgrade:False | whether to upgrade the JSON file on disk if any migrations were necessary |
warnFalse | whether to issue a warning if the dataset has a deprecated format |
Returns | |
a ZooDatasetInfo |
def __init__(self, zoo_dataset, dataset_type, num_samples, downloaded_splits=None, parameters=None, classes=None):
(source)
¶
Undocumented
Returns the fiftyone.types.Dataset
type instance for the
dataset.
Returns | |
a fiftyone.types.Dataset instance |