fiftyone.zoo.datasets#
- fiftyone.zoo.datasets.base
FiftyOneDatasetFiftyOneDataset.download_and_prepare()FiftyOneDataset.get_info_path()FiftyOneDataset.get_split_dir()FiftyOneDataset.has_info()FiftyOneDataset.has_patchesFiftyOneDataset.has_split()FiftyOneDataset.has_splitsFiftyOneDataset.has_tag()FiftyOneDataset.has_tagsFiftyOneDataset.importer_kwargsFiftyOneDataset.is_remoteFiftyOneDataset.licenseFiftyOneDataset.load_info()FiftyOneDataset.nameFiftyOneDataset.parametersFiftyOneDataset.requires_manual_downloadFiftyOneDataset.supported_splitsFiftyOneDataset.supports_partial_downloadsFiftyOneDataset.tags
ActivityNet100DatasetActivityNet100Dataset.nameActivityNet100Dataset.licenseActivityNet100Dataset.tagsActivityNet100Dataset.supported_splitsActivityNet100Dataset.supports_partial_downloadsActivityNet100Dataset.download_and_prepare()ActivityNet100Dataset.get_info_path()ActivityNet100Dataset.get_split_dir()ActivityNet100Dataset.has_info()ActivityNet100Dataset.has_patchesActivityNet100Dataset.has_split()ActivityNet100Dataset.has_splitsActivityNet100Dataset.has_tag()ActivityNet100Dataset.has_tagsActivityNet100Dataset.importer_kwargsActivityNet100Dataset.is_remoteActivityNet100Dataset.load_info()ActivityNet100Dataset.parametersActivityNet100Dataset.requires_manual_download
ActivityNet200DatasetActivityNet200Dataset.nameActivityNet200Dataset.licenseActivityNet200Dataset.tagsActivityNet200Dataset.supported_splitsActivityNet200Dataset.supports_partial_downloadsActivityNet200Dataset.download_and_prepare()ActivityNet200Dataset.get_info_path()ActivityNet200Dataset.get_split_dir()ActivityNet200Dataset.has_info()ActivityNet200Dataset.has_patchesActivityNet200Dataset.has_split()ActivityNet200Dataset.has_splitsActivityNet200Dataset.has_tag()ActivityNet200Dataset.has_tagsActivityNet200Dataset.importer_kwargsActivityNet200Dataset.is_remoteActivityNet200Dataset.load_info()ActivityNet200Dataset.parametersActivityNet200Dataset.requires_manual_download
BDD100KDatasetBDD100KDataset.nameBDD100KDataset.licenseBDD100KDataset.tagsBDD100KDataset.supported_splitsBDD100KDataset.requires_manual_downloadBDD100KDataset.download_and_prepare()BDD100KDataset.get_info_path()BDD100KDataset.get_split_dir()BDD100KDataset.has_info()BDD100KDataset.has_patchesBDD100KDataset.has_split()BDD100KDataset.has_splitsBDD100KDataset.has_tag()BDD100KDataset.has_tagsBDD100KDataset.importer_kwargsBDD100KDataset.is_remoteBDD100KDataset.load_info()BDD100KDataset.parametersBDD100KDataset.supports_partial_downloads
Caltech101DatasetCaltech101Dataset.nameCaltech101Dataset.licenseCaltech101Dataset.tagsCaltech101Dataset.supported_splitsCaltech101Dataset.download_and_prepare()Caltech101Dataset.get_info_path()Caltech101Dataset.get_split_dir()Caltech101Dataset.has_info()Caltech101Dataset.has_patchesCaltech101Dataset.has_split()Caltech101Dataset.has_splitsCaltech101Dataset.has_tag()Caltech101Dataset.has_tagsCaltech101Dataset.importer_kwargsCaltech101Dataset.is_remoteCaltech101Dataset.load_info()Caltech101Dataset.parametersCaltech101Dataset.requires_manual_downloadCaltech101Dataset.supports_partial_downloads
Caltech256DatasetCaltech256Dataset.nameCaltech256Dataset.licenseCaltech256Dataset.tagsCaltech256Dataset.supported_splitsCaltech256Dataset.download_and_prepare()Caltech256Dataset.get_info_path()Caltech256Dataset.get_split_dir()Caltech256Dataset.has_info()Caltech256Dataset.has_patchesCaltech256Dataset.has_split()Caltech256Dataset.has_splitsCaltech256Dataset.has_tag()Caltech256Dataset.has_tagsCaltech256Dataset.importer_kwargsCaltech256Dataset.is_remoteCaltech256Dataset.load_info()Caltech256Dataset.parametersCaltech256Dataset.requires_manual_downloadCaltech256Dataset.supports_partial_downloads
CityscapesDatasetCityscapesDataset.nameCityscapesDataset.licenseCityscapesDataset.tagsCityscapesDataset.supported_splitsCityscapesDataset.requires_manual_downloadCityscapesDataset.download_and_prepare()CityscapesDataset.get_info_path()CityscapesDataset.get_split_dir()CityscapesDataset.has_info()CityscapesDataset.has_patchesCityscapesDataset.has_split()CityscapesDataset.has_splitsCityscapesDataset.has_tag()CityscapesDataset.has_tagsCityscapesDataset.importer_kwargsCityscapesDataset.is_remoteCityscapesDataset.load_info()CityscapesDataset.parametersCityscapesDataset.supports_partial_downloads
COCO2014DatasetCOCO2014Dataset.nameCOCO2014Dataset.licenseCOCO2014Dataset.tagsCOCO2014Dataset.supported_splitsCOCO2014Dataset.supports_partial_downloadsCOCO2014Dataset.importer_kwargsCOCO2014Dataset.download_and_prepare()COCO2014Dataset.get_info_path()COCO2014Dataset.get_split_dir()COCO2014Dataset.has_info()COCO2014Dataset.has_patchesCOCO2014Dataset.has_split()COCO2014Dataset.has_splitsCOCO2014Dataset.has_tag()COCO2014Dataset.has_tagsCOCO2014Dataset.is_remoteCOCO2014Dataset.load_info()COCO2014Dataset.parametersCOCO2014Dataset.requires_manual_download
COCO2017DatasetCOCO2017Dataset.nameCOCO2017Dataset.licenseCOCO2017Dataset.tagsCOCO2017Dataset.supported_splitsCOCO2017Dataset.supports_partial_downloadsCOCO2017Dataset.importer_kwargsCOCO2017Dataset.download_and_prepare()COCO2017Dataset.get_info_path()COCO2017Dataset.get_split_dir()COCO2017Dataset.has_info()COCO2017Dataset.has_patchesCOCO2017Dataset.has_split()COCO2017Dataset.has_splitsCOCO2017Dataset.has_tag()COCO2017Dataset.has_tagsCOCO2017Dataset.is_remoteCOCO2017Dataset.load_info()COCO2017Dataset.parametersCOCO2017Dataset.requires_manual_download
SamaCOCODatasetSamaCOCODataset.nameSamaCOCODataset.licenseSamaCOCODataset.tagsSamaCOCODataset.supported_splitsSamaCOCODataset.supports_partial_downloadsSamaCOCODataset.importer_kwargsSamaCOCODataset.download_and_prepare()SamaCOCODataset.get_info_path()SamaCOCODataset.get_split_dir()SamaCOCODataset.has_info()SamaCOCODataset.has_patchesSamaCOCODataset.has_split()SamaCOCODataset.has_splitsSamaCOCODataset.has_tag()SamaCOCODataset.has_tagsSamaCOCODataset.is_remoteSamaCOCODataset.load_info()SamaCOCODataset.parametersSamaCOCODataset.requires_manual_download
FIWDatasetFIWDataset.nameFIWDataset.licenseFIWDataset.tagsFIWDataset.supported_splitsFIWDataset.download_and_prepare()FIWDataset.get_info_path()FIWDataset.get_split_dir()FIWDataset.has_info()FIWDataset.has_patchesFIWDataset.has_split()FIWDataset.has_splitsFIWDataset.has_tag()FIWDataset.has_tagsFIWDataset.importer_kwargsFIWDataset.is_remoteFIWDataset.load_info()FIWDataset.parametersFIWDataset.requires_manual_downloadFIWDataset.supports_partial_downloads
HMDB51DatasetHMDB51Dataset.nameHMDB51Dataset.licenseHMDB51Dataset.tagsHMDB51Dataset.parametersHMDB51Dataset.supported_splitsHMDB51Dataset.download_and_prepare()HMDB51Dataset.get_info_path()HMDB51Dataset.get_split_dir()HMDB51Dataset.has_info()HMDB51Dataset.has_patchesHMDB51Dataset.has_split()HMDB51Dataset.has_splitsHMDB51Dataset.has_tag()HMDB51Dataset.has_tagsHMDB51Dataset.importer_kwargsHMDB51Dataset.is_remoteHMDB51Dataset.load_info()HMDB51Dataset.requires_manual_downloadHMDB51Dataset.supports_partial_downloads
ImageNetSampleDatasetImageNetSampleDataset.nameImageNetSampleDataset.licenseImageNetSampleDataset.tagsImageNetSampleDataset.supported_splitsImageNetSampleDataset.download_and_prepare()ImageNetSampleDataset.get_info_path()ImageNetSampleDataset.get_split_dir()ImageNetSampleDataset.has_info()ImageNetSampleDataset.has_patchesImageNetSampleDataset.has_split()ImageNetSampleDataset.has_splitsImageNetSampleDataset.has_tag()ImageNetSampleDataset.has_tagsImageNetSampleDataset.importer_kwargsImageNetSampleDataset.is_remoteImageNetSampleDataset.load_info()ImageNetSampleDataset.parametersImageNetSampleDataset.requires_manual_downloadImageNetSampleDataset.supports_partial_downloads
Kinetics400DatasetKinetics400Dataset.nameKinetics400Dataset.licenseKinetics400Dataset.tagsKinetics400Dataset.supported_splitsKinetics400Dataset.supports_partial_downloadsKinetics400Dataset.download_and_prepare()Kinetics400Dataset.get_info_path()Kinetics400Dataset.get_split_dir()Kinetics400Dataset.has_info()Kinetics400Dataset.has_patchesKinetics400Dataset.has_split()Kinetics400Dataset.has_splitsKinetics400Dataset.has_tag()Kinetics400Dataset.has_tagsKinetics400Dataset.importer_kwargsKinetics400Dataset.is_remoteKinetics400Dataset.load_info()Kinetics400Dataset.parametersKinetics400Dataset.requires_manual_download
Kinetics600DatasetKinetics600Dataset.nameKinetics600Dataset.licenseKinetics600Dataset.tagsKinetics600Dataset.supported_splitsKinetics600Dataset.supports_partial_downloadsKinetics600Dataset.download_and_prepare()Kinetics600Dataset.get_info_path()Kinetics600Dataset.get_split_dir()Kinetics600Dataset.has_info()Kinetics600Dataset.has_patchesKinetics600Dataset.has_split()Kinetics600Dataset.has_splitsKinetics600Dataset.has_tag()Kinetics600Dataset.has_tagsKinetics600Dataset.importer_kwargsKinetics600Dataset.is_remoteKinetics600Dataset.load_info()Kinetics600Dataset.parametersKinetics600Dataset.requires_manual_download
Kinetics700DatasetKinetics700Dataset.nameKinetics700Dataset.licenseKinetics700Dataset.tagsKinetics700Dataset.supported_splitsKinetics700Dataset.supports_partial_downloadsKinetics700Dataset.download_and_prepare()Kinetics700Dataset.get_info_path()Kinetics700Dataset.get_split_dir()Kinetics700Dataset.has_info()Kinetics700Dataset.has_patchesKinetics700Dataset.has_split()Kinetics700Dataset.has_splitsKinetics700Dataset.has_tag()Kinetics700Dataset.has_tagsKinetics700Dataset.importer_kwargsKinetics700Dataset.is_remoteKinetics700Dataset.load_info()Kinetics700Dataset.parametersKinetics700Dataset.requires_manual_download
Kinetics7002020DatasetKinetics7002020Dataset.nameKinetics7002020Dataset.licenseKinetics7002020Dataset.tagsKinetics7002020Dataset.supported_splitsKinetics7002020Dataset.supports_partial_downloadsKinetics7002020Dataset.download_and_prepare()Kinetics7002020Dataset.get_info_path()Kinetics7002020Dataset.get_split_dir()Kinetics7002020Dataset.has_info()Kinetics7002020Dataset.has_patchesKinetics7002020Dataset.has_split()Kinetics7002020Dataset.has_splitsKinetics7002020Dataset.has_tag()Kinetics7002020Dataset.has_tagsKinetics7002020Dataset.importer_kwargsKinetics7002020Dataset.is_remoteKinetics7002020Dataset.load_info()Kinetics7002020Dataset.parametersKinetics7002020Dataset.requires_manual_download
KITTIDatasetKITTIDataset.nameKITTIDataset.licenseKITTIDataset.tagsKITTIDataset.supported_splitsKITTIDataset.download_and_prepare()KITTIDataset.get_info_path()KITTIDataset.get_split_dir()KITTIDataset.has_info()KITTIDataset.has_patchesKITTIDataset.has_split()KITTIDataset.has_splitsKITTIDataset.has_tag()KITTIDataset.has_tagsKITTIDataset.importer_kwargsKITTIDataset.is_remoteKITTIDataset.load_info()KITTIDataset.parametersKITTIDataset.requires_manual_downloadKITTIDataset.supports_partial_downloads
KITTIMultiviewDatasetKITTIMultiviewDataset.nameKITTIMultiviewDataset.licenseKITTIMultiviewDataset.tagsKITTIMultiviewDataset.supported_splitsKITTIMultiviewDataset.supports_partial_downloadsKITTIMultiviewDataset.has_patchesKITTIMultiviewDataset.download_and_prepare()KITTIMultiviewDataset.get_info_path()KITTIMultiviewDataset.get_split_dir()KITTIMultiviewDataset.has_info()KITTIMultiviewDataset.has_split()KITTIMultiviewDataset.has_splitsKITTIMultiviewDataset.has_tag()KITTIMultiviewDataset.has_tagsKITTIMultiviewDataset.importer_kwargsKITTIMultiviewDataset.is_remoteKITTIMultiviewDataset.load_info()KITTIMultiviewDataset.parametersKITTIMultiviewDataset.requires_manual_download
LabeledFacesInTheWildDatasetLabeledFacesInTheWildDataset.nameLabeledFacesInTheWildDataset.licenseLabeledFacesInTheWildDataset.tagsLabeledFacesInTheWildDataset.supported_splitsLabeledFacesInTheWildDataset.download_and_prepare()LabeledFacesInTheWildDataset.get_info_path()LabeledFacesInTheWildDataset.get_split_dir()LabeledFacesInTheWildDataset.has_info()LabeledFacesInTheWildDataset.has_patchesLabeledFacesInTheWildDataset.has_split()LabeledFacesInTheWildDataset.has_splitsLabeledFacesInTheWildDataset.has_tag()LabeledFacesInTheWildDataset.has_tagsLabeledFacesInTheWildDataset.importer_kwargsLabeledFacesInTheWildDataset.is_remoteLabeledFacesInTheWildDataset.load_info()LabeledFacesInTheWildDataset.parametersLabeledFacesInTheWildDataset.requires_manual_downloadLabeledFacesInTheWildDataset.supports_partial_downloads
OpenImagesV6DatasetOpenImagesV6Dataset.nameOpenImagesV6Dataset.licenseOpenImagesV6Dataset.tagsOpenImagesV6Dataset.supported_splitsOpenImagesV6Dataset.supports_partial_downloadsOpenImagesV6Dataset.download_and_prepare()OpenImagesV6Dataset.get_info_path()OpenImagesV6Dataset.get_split_dir()OpenImagesV6Dataset.has_info()OpenImagesV6Dataset.has_patchesOpenImagesV6Dataset.has_split()OpenImagesV6Dataset.has_splitsOpenImagesV6Dataset.has_tag()OpenImagesV6Dataset.has_tagsOpenImagesV6Dataset.importer_kwargsOpenImagesV6Dataset.is_remoteOpenImagesV6Dataset.load_info()OpenImagesV6Dataset.parametersOpenImagesV6Dataset.requires_manual_download
OpenImagesV7DatasetOpenImagesV7Dataset.nameOpenImagesV7Dataset.licenseOpenImagesV7Dataset.tagsOpenImagesV7Dataset.supported_splitsOpenImagesV7Dataset.supports_partial_downloadsOpenImagesV7Dataset.download_and_prepare()OpenImagesV7Dataset.get_info_path()OpenImagesV7Dataset.get_split_dir()OpenImagesV7Dataset.has_info()OpenImagesV7Dataset.has_patchesOpenImagesV7Dataset.has_split()OpenImagesV7Dataset.has_splitsOpenImagesV7Dataset.has_tag()OpenImagesV7Dataset.has_tagsOpenImagesV7Dataset.importer_kwargsOpenImagesV7Dataset.is_remoteOpenImagesV7Dataset.load_info()OpenImagesV7Dataset.parametersOpenImagesV7Dataset.requires_manual_download
PlacesDatasetPlacesDataset.namePlacesDataset.licensePlacesDataset.tagsPlacesDataset.supported_splitsPlacesDataset.supports_partial_downloadsPlacesDataset.download_and_prepare()PlacesDataset.get_info_path()PlacesDataset.get_split_dir()PlacesDataset.has_info()PlacesDataset.has_patchesPlacesDataset.has_split()PlacesDataset.has_splitsPlacesDataset.has_tag()PlacesDataset.has_tagsPlacesDataset.importer_kwargsPlacesDataset.is_remotePlacesDataset.load_info()PlacesDataset.parametersPlacesDataset.requires_manual_download
QuickstartDatasetQuickstartDataset.nameQuickstartDataset.licenseQuickstartDataset.tagsQuickstartDataset.supported_splitsQuickstartDataset.download_and_prepare()QuickstartDataset.get_info_path()QuickstartDataset.get_split_dir()QuickstartDataset.has_info()QuickstartDataset.has_patchesQuickstartDataset.has_split()QuickstartDataset.has_splitsQuickstartDataset.has_tag()QuickstartDataset.has_tagsQuickstartDataset.importer_kwargsQuickstartDataset.is_remoteQuickstartDataset.load_info()QuickstartDataset.parametersQuickstartDataset.requires_manual_downloadQuickstartDataset.supports_partial_downloads
QuickstartGeoDatasetQuickstartGeoDataset.nameQuickstartGeoDataset.licenseQuickstartGeoDataset.tagsQuickstartGeoDataset.supported_splitsQuickstartGeoDataset.download_and_prepare()QuickstartGeoDataset.get_info_path()QuickstartGeoDataset.get_split_dir()QuickstartGeoDataset.has_info()QuickstartGeoDataset.has_patchesQuickstartGeoDataset.has_split()QuickstartGeoDataset.has_splitsQuickstartGeoDataset.has_tag()QuickstartGeoDataset.has_tagsQuickstartGeoDataset.importer_kwargsQuickstartGeoDataset.is_remoteQuickstartGeoDataset.load_info()QuickstartGeoDataset.parametersQuickstartGeoDataset.requires_manual_downloadQuickstartGeoDataset.supports_partial_downloads
QuickstartVideoDatasetQuickstartVideoDataset.nameQuickstartVideoDataset.licenseQuickstartVideoDataset.tagsQuickstartVideoDataset.supported_splitsQuickstartVideoDataset.download_and_prepare()QuickstartVideoDataset.get_info_path()QuickstartVideoDataset.get_split_dir()QuickstartVideoDataset.has_info()QuickstartVideoDataset.has_patchesQuickstartVideoDataset.has_split()QuickstartVideoDataset.has_splitsQuickstartVideoDataset.has_tag()QuickstartVideoDataset.has_tagsQuickstartVideoDataset.importer_kwargsQuickstartVideoDataset.is_remoteQuickstartVideoDataset.load_info()QuickstartVideoDataset.parametersQuickstartVideoDataset.requires_manual_downloadQuickstartVideoDataset.supports_partial_downloads
QuickstartGroupsDatasetQuickstartGroupsDataset.nameQuickstartGroupsDataset.licenseQuickstartGroupsDataset.tagsQuickstartGroupsDataset.supported_splitsQuickstartGroupsDataset.has_patchesQuickstartGroupsDataset.download_and_prepare()QuickstartGroupsDataset.get_info_path()QuickstartGroupsDataset.get_split_dir()QuickstartGroupsDataset.has_info()QuickstartGroupsDataset.has_split()QuickstartGroupsDataset.has_splitsQuickstartGroupsDataset.has_tag()QuickstartGroupsDataset.has_tagsQuickstartGroupsDataset.importer_kwargsQuickstartGroupsDataset.is_remoteQuickstartGroupsDataset.load_info()QuickstartGroupsDataset.parametersQuickstartGroupsDataset.requires_manual_downloadQuickstartGroupsDataset.supports_partial_downloads
Quickstart3DDatasetQuickstart3DDataset.nameQuickstart3DDataset.licenseQuickstart3DDataset.tagsQuickstart3DDataset.supported_splitsQuickstart3DDataset.download_and_prepare()Quickstart3DDataset.get_info_path()Quickstart3DDataset.get_split_dir()Quickstart3DDataset.has_info()Quickstart3DDataset.has_patchesQuickstart3DDataset.has_split()Quickstart3DDataset.has_splitsQuickstart3DDataset.has_tag()Quickstart3DDataset.has_tagsQuickstart3DDataset.importer_kwargsQuickstart3DDataset.is_remoteQuickstart3DDataset.load_info()Quickstart3DDataset.parametersQuickstart3DDataset.requires_manual_downloadQuickstart3DDataset.supports_partial_downloads
UCF101DatasetUCF101Dataset.nameUCF101Dataset.licenseUCF101Dataset.tagsUCF101Dataset.parametersUCF101Dataset.supported_splitsUCF101Dataset.download_and_prepare()UCF101Dataset.get_info_path()UCF101Dataset.get_split_dir()UCF101Dataset.has_info()UCF101Dataset.has_patchesUCF101Dataset.has_split()UCF101Dataset.has_splitsUCF101Dataset.has_tag()UCF101Dataset.has_tagsUCF101Dataset.importer_kwargsUCF101Dataset.is_remoteUCF101Dataset.load_info()UCF101Dataset.requires_manual_downloadUCF101Dataset.supports_partial_downloads
- fiftyone.zoo.datasets.tf
TFDSDatasetTFDSDataset.download_and_prepare()TFDSDataset.get_info_path()TFDSDataset.get_split_dir()TFDSDataset.has_info()TFDSDataset.has_patchesTFDSDataset.has_split()TFDSDataset.has_splitsTFDSDataset.has_tag()TFDSDataset.has_tagsTFDSDataset.importer_kwargsTFDSDataset.is_remoteTFDSDataset.licenseTFDSDataset.load_info()TFDSDataset.nameTFDSDataset.parametersTFDSDataset.requires_manual_downloadTFDSDataset.supported_splitsTFDSDataset.supports_partial_downloadsTFDSDataset.tags
MNISTDatasetMNISTDataset.nameMNISTDataset.licenseMNISTDataset.tagsMNISTDataset.supported_splitsMNISTDataset.download_and_prepare()MNISTDataset.get_info_path()MNISTDataset.get_split_dir()MNISTDataset.has_info()MNISTDataset.has_patchesMNISTDataset.has_split()MNISTDataset.has_splitsMNISTDataset.has_tag()MNISTDataset.has_tagsMNISTDataset.importer_kwargsMNISTDataset.is_remoteMNISTDataset.load_info()MNISTDataset.parametersMNISTDataset.requires_manual_downloadMNISTDataset.supports_partial_downloads
FashionMNISTDatasetFashionMNISTDataset.nameFashionMNISTDataset.licenseFashionMNISTDataset.tagsFashionMNISTDataset.supported_splitsFashionMNISTDataset.download_and_prepare()FashionMNISTDataset.get_info_path()FashionMNISTDataset.get_split_dir()FashionMNISTDataset.has_info()FashionMNISTDataset.has_patchesFashionMNISTDataset.has_split()FashionMNISTDataset.has_splitsFashionMNISTDataset.has_tag()FashionMNISTDataset.has_tagsFashionMNISTDataset.importer_kwargsFashionMNISTDataset.is_remoteFashionMNISTDataset.load_info()FashionMNISTDataset.parametersFashionMNISTDataset.requires_manual_downloadFashionMNISTDataset.supports_partial_downloads
CIFAR10DatasetCIFAR10Dataset.nameCIFAR10Dataset.licenseCIFAR10Dataset.tagsCIFAR10Dataset.supported_splitsCIFAR10Dataset.download_and_prepare()CIFAR10Dataset.get_info_path()CIFAR10Dataset.get_split_dir()CIFAR10Dataset.has_info()CIFAR10Dataset.has_patchesCIFAR10Dataset.has_split()CIFAR10Dataset.has_splitsCIFAR10Dataset.has_tag()CIFAR10Dataset.has_tagsCIFAR10Dataset.importer_kwargsCIFAR10Dataset.is_remoteCIFAR10Dataset.load_info()CIFAR10Dataset.parametersCIFAR10Dataset.requires_manual_downloadCIFAR10Dataset.supports_partial_downloads
CIFAR100DatasetCIFAR100Dataset.nameCIFAR100Dataset.licenseCIFAR100Dataset.tagsCIFAR100Dataset.supported_splitsCIFAR100Dataset.download_and_prepare()CIFAR100Dataset.get_info_path()CIFAR100Dataset.get_split_dir()CIFAR100Dataset.has_info()CIFAR100Dataset.has_patchesCIFAR100Dataset.has_split()CIFAR100Dataset.has_splitsCIFAR100Dataset.has_tag()CIFAR100Dataset.has_tagsCIFAR100Dataset.importer_kwargsCIFAR100Dataset.is_remoteCIFAR100Dataset.load_info()CIFAR100Dataset.parametersCIFAR100Dataset.requires_manual_downloadCIFAR100Dataset.supports_partial_downloads
ImageNet2012DatasetImageNet2012Dataset.nameImageNet2012Dataset.licenseImageNet2012Dataset.tagsImageNet2012Dataset.supported_splitsImageNet2012Dataset.requires_manual_downloadImageNet2012Dataset.download_and_prepare()ImageNet2012Dataset.get_info_path()ImageNet2012Dataset.get_split_dir()ImageNet2012Dataset.has_info()ImageNet2012Dataset.has_patchesImageNet2012Dataset.has_split()ImageNet2012Dataset.has_splitsImageNet2012Dataset.has_tag()ImageNet2012Dataset.has_tagsImageNet2012Dataset.importer_kwargsImageNet2012Dataset.is_remoteImageNet2012Dataset.load_info()ImageNet2012Dataset.parametersImageNet2012Dataset.supports_partial_downloads
VOC2007DatasetVOC2007Dataset.nameVOC2007Dataset.licenseVOC2007Dataset.tagsVOC2007Dataset.supported_splitsVOC2007Dataset.download_and_prepare()VOC2007Dataset.get_info_path()VOC2007Dataset.get_split_dir()VOC2007Dataset.has_info()VOC2007Dataset.has_patchesVOC2007Dataset.has_split()VOC2007Dataset.has_splitsVOC2007Dataset.has_tag()VOC2007Dataset.has_tagsVOC2007Dataset.importer_kwargsVOC2007Dataset.is_remoteVOC2007Dataset.load_info()VOC2007Dataset.parametersVOC2007Dataset.requires_manual_downloadVOC2007Dataset.supports_partial_downloads
VOC2012DatasetVOC2012Dataset.nameVOC2012Dataset.licenseVOC2012Dataset.tagsVOC2012Dataset.supported_splitsVOC2012Dataset.download_and_prepare()VOC2012Dataset.get_info_path()VOC2012Dataset.get_split_dir()VOC2012Dataset.has_info()VOC2012Dataset.has_patchesVOC2012Dataset.has_split()VOC2012Dataset.has_splitsVOC2012Dataset.has_tag()VOC2012Dataset.has_tagsVOC2012Dataset.importer_kwargsVOC2012Dataset.is_remoteVOC2012Dataset.load_info()VOC2012Dataset.parametersVOC2012Dataset.requires_manual_downloadVOC2012Dataset.supports_partial_downloads
- fiftyone.zoo.datasets.torch
TorchVisionDatasetTorchVisionDataset.download_and_prepare()TorchVisionDataset.get_info_path()TorchVisionDataset.get_split_dir()TorchVisionDataset.has_info()TorchVisionDataset.has_patchesTorchVisionDataset.has_split()TorchVisionDataset.has_splitsTorchVisionDataset.has_tag()TorchVisionDataset.has_tagsTorchVisionDataset.importer_kwargsTorchVisionDataset.is_remoteTorchVisionDataset.licenseTorchVisionDataset.load_info()TorchVisionDataset.nameTorchVisionDataset.parametersTorchVisionDataset.requires_manual_downloadTorchVisionDataset.supported_splitsTorchVisionDataset.supports_partial_downloadsTorchVisionDataset.tags
MNISTDatasetMNISTDataset.nameMNISTDataset.licenseMNISTDataset.tagsMNISTDataset.supported_splitsMNISTDataset.download_and_prepare()MNISTDataset.get_info_path()MNISTDataset.get_split_dir()MNISTDataset.has_info()MNISTDataset.has_patchesMNISTDataset.has_split()MNISTDataset.has_splitsMNISTDataset.has_tag()MNISTDataset.has_tagsMNISTDataset.importer_kwargsMNISTDataset.is_remoteMNISTDataset.load_info()MNISTDataset.parametersMNISTDataset.requires_manual_downloadMNISTDataset.supports_partial_downloads
FashionMNISTDatasetFashionMNISTDataset.nameFashionMNISTDataset.licenseFashionMNISTDataset.tagsFashionMNISTDataset.supported_splitsFashionMNISTDataset.download_and_prepare()FashionMNISTDataset.get_info_path()FashionMNISTDataset.get_split_dir()FashionMNISTDataset.has_info()FashionMNISTDataset.has_patchesFashionMNISTDataset.has_split()FashionMNISTDataset.has_splitsFashionMNISTDataset.has_tag()FashionMNISTDataset.has_tagsFashionMNISTDataset.importer_kwargsFashionMNISTDataset.is_remoteFashionMNISTDataset.load_info()FashionMNISTDataset.parametersFashionMNISTDataset.requires_manual_downloadFashionMNISTDataset.supports_partial_downloads
CIFAR10DatasetCIFAR10Dataset.nameCIFAR10Dataset.licenseCIFAR10Dataset.tagsCIFAR10Dataset.supported_splitsCIFAR10Dataset.download_and_prepare()CIFAR10Dataset.get_info_path()CIFAR10Dataset.get_split_dir()CIFAR10Dataset.has_info()CIFAR10Dataset.has_patchesCIFAR10Dataset.has_split()CIFAR10Dataset.has_splitsCIFAR10Dataset.has_tag()CIFAR10Dataset.has_tagsCIFAR10Dataset.importer_kwargsCIFAR10Dataset.is_remoteCIFAR10Dataset.load_info()CIFAR10Dataset.parametersCIFAR10Dataset.requires_manual_downloadCIFAR10Dataset.supports_partial_downloads
CIFAR100DatasetCIFAR100Dataset.nameCIFAR100Dataset.licenseCIFAR100Dataset.tagsCIFAR100Dataset.supported_splitsCIFAR100Dataset.download_and_prepare()CIFAR100Dataset.get_info_path()CIFAR100Dataset.get_split_dir()CIFAR100Dataset.has_info()CIFAR100Dataset.has_patchesCIFAR100Dataset.has_split()CIFAR100Dataset.has_splitsCIFAR100Dataset.has_tag()CIFAR100Dataset.has_tagsCIFAR100Dataset.importer_kwargsCIFAR100Dataset.is_remoteCIFAR100Dataset.load_info()CIFAR100Dataset.parametersCIFAR100Dataset.requires_manual_downloadCIFAR100Dataset.supports_partial_downloads
ImageNet2012DatasetImageNet2012Dataset.nameImageNet2012Dataset.licenseImageNet2012Dataset.tagsImageNet2012Dataset.supported_splitsImageNet2012Dataset.requires_manual_downloadImageNet2012Dataset.download_and_prepare()ImageNet2012Dataset.get_info_path()ImageNet2012Dataset.get_split_dir()ImageNet2012Dataset.has_info()ImageNet2012Dataset.has_patchesImageNet2012Dataset.has_split()ImageNet2012Dataset.has_splitsImageNet2012Dataset.has_tag()ImageNet2012Dataset.has_tagsImageNet2012Dataset.importer_kwargsImageNet2012Dataset.is_remoteImageNet2012Dataset.load_info()ImageNet2012Dataset.parametersImageNet2012Dataset.supports_partial_downloads
VOC2007DatasetVOC2007Dataset.nameVOC2007Dataset.licenseVOC2007Dataset.tagsVOC2007Dataset.supported_splitsVOC2007Dataset.download_and_prepare()VOC2007Dataset.get_info_path()VOC2007Dataset.get_split_dir()VOC2007Dataset.has_info()VOC2007Dataset.has_patchesVOC2007Dataset.has_split()VOC2007Dataset.has_splitsVOC2007Dataset.has_tag()VOC2007Dataset.has_tagsVOC2007Dataset.importer_kwargsVOC2007Dataset.is_remoteVOC2007Dataset.load_info()VOC2007Dataset.parametersVOC2007Dataset.requires_manual_downloadVOC2007Dataset.supports_partial_downloads
VOC2012DatasetVOC2012Dataset.nameVOC2012Dataset.licenseVOC2012Dataset.tagsVOC2012Dataset.supported_splitsVOC2012Dataset.download_and_prepare()VOC2012Dataset.get_info_path()VOC2012Dataset.get_split_dir()VOC2012Dataset.has_info()VOC2012Dataset.has_patchesVOC2012Dataset.has_split()VOC2012Dataset.has_splitsVOC2012Dataset.has_tag()VOC2012Dataset.has_tagsVOC2012Dataset.importer_kwargsVOC2012Dataset.is_remoteVOC2012Dataset.load_info()VOC2012Dataset.parametersVOC2012Dataset.requires_manual_downloadVOC2012Dataset.supports_partial_downloads
Module contents#
The FiftyOne Dataset Zoo.
This package defines a collection of open source datasets made available for download via FiftyOne.
Functions:
|
Lists the available datasets in the FiftyOne Dataset Zoo. |
Returns the list of available zoo dataset sources. |
|
Returns information about the zoo datasets that have been downloaded. |
|
|
Downloads the specified dataset from the FiftyOne Dataset Zoo. |
|
Loads the specified dataset from the FiftyOne Dataset Zoo. |
|
Returns the directory containing the given zoo dataset. |
|
Loads the |
|
Returns the |
|
Deletes the zoo dataset from local disk, if necessary. |
Classes:
|
Class containing info about a dataset in the FiftyOne Dataset Zoo. |
|
Class containing info about a split of a dataset in the FiftyOne Dataset Zoo. |
Base class for datasets made available in the FiftyOne Dataset Zoo. |
|
|
Class for working with remotely-sourced datasets that are compatible with the FiftyOne Dataset Zoo. |
Class representing a zoo dataset that no longer exists in the FiftyOne Dataset Zoo. |
- fiftyone.zoo.datasets.list_zoo_datasets(tags=None, source=None, license=None)#
Lists the available datasets in the FiftyOne Dataset Zoo.
Also includes any remotely-sourced zoo datasets that you’ve downloaded.
Example usage:
import fiftyone as fo import fiftyone.zoo as foz # # List all zoo datasets # names = foz.list_zoo_datasets() print(names) # # List all zoo datasets with (both of) the specified tags # names = foz.list_zoo_datasets(tags=["image", "detection"]) print(names) # # List all zoo datasets available via the given source # names = foz.list_zoo_datasets(source="torch") print(names)
- Parameters:
tags (None) – only include datasets that have the specified tag or list of tags
source (None) – only include datasets available via the given source or list of sources
license (None) – only include datasets that are distributed under the specified license or any of the specified list of licenses. Run
fiftyone zoo datasets listto see the available licenses
- Returns:
a sorted list of dataset names
- fiftyone.zoo.datasets.list_zoo_dataset_sources()#
Returns the list of available zoo dataset sources.
- Returns:
a list of sources
- fiftyone.zoo.datasets.list_downloaded_zoo_datasets()#
Returns information about the zoo datasets that have been downloaded.
- Returns:
a dict mapping dataset names to (
dataset_dir,ZooDatasetInfo) tuples
- fiftyone.zoo.datasets.download_zoo_dataset(name_or_url, split=None, splits=None, overwrite=False, cleanup=True, **kwargs)#
Downloads the specified dataset from the FiftyOne Dataset Zoo.
Any dataset splits that have already been downloaded are not re-downloaded, unless
overwrite == Trueis specified.Note
To download from a private GitHub repository that you have access to, provide your GitHub personal access token by setting the
GITHUB_TOKENenvironment variable.- Parameters:
name_or_url –
the name of the zoo dataset to download, or the remote source to download it from, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
split (None) –
("train", "validation", "test"). If neithersplitnorsplitsare provided, all available splits are downloaded. Consult the documentation for theZooDatasetyou specified to see the supported splitssplits (None) – a list of splits to download, if applicable. Typical values are
("train", "validation", "test"). If neithersplitnorsplitsare provided, all available splits are downloaded. Consult the documentation for theZooDatasetyou specified to see the supported splitsoverwrite (False) – whether to overwrite any existing files
cleanup (True) – whether to cleanup any temporary files generated during download
**kwargs – optional arguments for the
ZooDatasetconstructor or the remote dataset’sdownload_and_prepare()method
- Returns:
a tuple of
info: the
ZooDatasetInfofor the datasetdataset_dir: the directory containing the dataset
- fiftyone.zoo.datasets.load_zoo_dataset(name_or_url, split=None, splits=None, label_field=None, dataset_name=None, download_if_necessary=True, drop_existing_dataset=False, persistent=False, overwrite=False, cleanup=True, progress=None, **kwargs)#
Loads the specified dataset from the FiftyOne Dataset Zoo.
By default, the dataset will be downloaded if necessary.
Note
To download from a private GitHub repository that you have access to, provide your GitHub personal access token by setting the
GITHUB_TOKENenvironment variable.If you do not specify a custom
dataset_nameand you have previously loaded the same zoo dataset and split(s) into FiftyOne, the existing dataset will be returned.- Parameters:
name_or_url –
the name of the zoo dataset to load, or the remote source to load it from, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
split (None) –
("train", "validation", "test"). If neithersplitnorsplitsare provided, all available splits are loaded. Consult the documentation for theZooDatasetyou specified to see the supported splitssplits (None) – a list of splits to load, if applicable. Typical values are
("train", "validation", "test"). If neithersplitnorsplitsare provided, all available splits are loaded. Consult the documentation for theZooDatasetyou specified to see the supported splitslabel_field (None) – the label field (or prefix, if the dataset contains multiple label fields) in which to store the dataset’s labels. By default, this is
"ground_truth"if the dataset contains a single label field. If the dataset contains multiple label fields and this value is not provided, the labels will be stored under dataset-specific field namesdataset_name (None) – an optional name to give the returned
fiftyone.core.dataset.Dataset. By default, a name will be constructed based on the dataset and split(s) you are loadingdownload_if_necessary (True) – whether to download the dataset if it is not found in the specified dataset directory
drop_existing_dataset (False) – whether to drop an existing dataset with the same name if it exists
persistent (False) – whether the dataset should persist in the database after the session terminates
overwrite (False) – whether to overwrite any existing files if the dataset is to be downloaded
cleanup (True) – whether to cleanup any temporary files generated during download
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**kwargs – optional arguments to pass to the
fiftyone.utils.data.importers.DatasetImporterconstructor or the remote dataset’sload_dataset()` method. If ``download_if_necessary == True, thenkwargscan also contain arguments fordownload_zoo_dataset()
- Returns:
- fiftyone.zoo.datasets.find_zoo_dataset(name_or_url, split=None)#
Returns the directory containing the given zoo dataset.
If a
splitis provided, the path to the dataset split is returned; otherwise, the path to the root directory is returned.The dataset must be downloaded. Use
download_zoo_dataset()to download datasets.- Parameters:
name_or_url –
the name of the zoo dataset or its remote source, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
split (None) – a specific split to locate
- Returns:
the directory containing the dataset or split
- Raises:
ValueError – if the dataset or split does not exist or has not been downloaded
- fiftyone.zoo.datasets.load_zoo_dataset_info(name_or_url)#
Loads the
ZooDatasetInfofor the specified zoo dataset.The dataset must be downloaded. Use
download_zoo_dataset()to download datasets.- Parameters:
name_or_url –
the name of the zoo dataset or its remote source, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
- Returns:
the
ZooDatasetInfofor the dataset- Raises:
ValueError – if the dataset has not been downloaded
- fiftyone.zoo.datasets.get_zoo_dataset(name_or_url, overwrite=False, **kwargs)#
Returns the
ZooDatasetinstance for the given dataset.If the dataset is available from multiple sources, the default source is used.
- Parameters:
name_or_url –
the name of the zoo dataset, or its remote source, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
overwrite (False) – whether to overwrite existing metadata if it has already been downloaded. Only applicable when
name_or_urlis a remote source**kwargs – optional arguments for
ZooDataset
- Returns:
the
ZooDatasetinstance
- fiftyone.zoo.datasets.delete_zoo_dataset(name_or_url, split=None)#
Deletes the zoo dataset from local disk, if necessary.
If a
splitis provided, only that split is deleted.- Parameters:
name_or_url –
the name of the zoo dataset, or its remote source, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
split (None)
- class fiftyone.zoo.datasets.ZooDatasetInfo(zoo_dataset, dataset_type, num_samples, downloaded_splits=None, parameters=None, classes=None)#
Bases:
SerializableClass containing info about a dataset in the FiftyOne Dataset Zoo.
- Parameters:
zoo_dataset – the
ZooDatasetinstance for the datasetdataset_type – the
fiftyone.types.Datasettype of the datasetnum_samples – the total number of samples in all downloaded splits of the dataset
downloaded_splits (None) – a dict of
ZooDatasetSplitInfoinstances describing the downloaded splits of the dataset, if applicableparameters (None) – a dict of parameters for the dataset
classes (None) – a list of class label strings
Attributes:
The name of the dataset.
The fully-qualified class string for the
ZooDatasetof the dataset.The fully-qualified class string of the
fiftyone.types.Datasettype, if any.A tuple of supported splits for the dataset, or None if the dataset does not have splits.
The dataset's URL, or None if it is not remotely-sourced.
Methods:
Returns the
ZooDatasetinstance for the dataset.Returns the
fiftyone.types.Datasettype instance for the dataset.is_split_downloaded(split)Whether the given dataset split is downloaded.
add_split(split_info)Adds the split to the dataset.
remove_split(split)Removes the split from the dataset.
Returns a list of class attributes to be serialized.
from_dict(d)Loads a
ZooDatasetInfofrom a JSON dictionary.from_json(json_path[, zoo_dataset, upgrade, ...])Loads a
ZooDatasetInfofrom a JSON file on disk.copy()Returns a deep copy of the object.
custom_attributes([dynamic, private])Returns a customizable list of class attributes.
from_str(s, *args, **kwargs)Constructs a Serializable object from a JSON string.
Returns the fully-qualified class name string of this object.
serialize([reflective])Serializes the object into a dictionary.
to_str([pretty_print])Returns a string representation of this object.
write_json(path[, pretty_print])Serializes the object and writes it to disk.
- property name#
The name of the dataset.
- property zoo_dataset#
The fully-qualified class string for the
ZooDatasetof the dataset.
- property dataset_type#
The fully-qualified class string of the
fiftyone.types.Datasettype, if any.
- property supported_splits#
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.
- get_zoo_dataset()#
Returns the
ZooDatasetinstance for the dataset.- Returns:
a
ZooDatasetinstance
- get_dataset_type()#
Returns the
fiftyone.types.Datasettype instance for the dataset.- Returns:
a
fiftyone.types.Datasetinstance
- is_split_downloaded(split)#
Whether the given dataset split is downloaded.
- Parameters:
split – the dataset split
- Returns:
True/False
- add_split(split_info)#
Adds the split to the dataset.
- Parameters:
split_info – a
ZooDatasetSplitInfo
- remove_split(split)#
Removes the split from the dataset.
- Parameters:
split – the name of the split
- attributes()#
Returns a list of class attributes to be serialized.
- Returns:
a list of class attributes
- classmethod from_dict(d)#
Loads a
ZooDatasetInfofrom a JSON dictionary.- Parameters:
d – a JSON dictionary
- Returns:
- classmethod from_json(json_path, zoo_dataset=None, upgrade=False, warn_deprecated=False)#
Loads a
ZooDatasetInfofrom a JSON file on disk.- Parameters:
json_path – path to JSON file
zoo_dataset (None) – an existing
ZooDatasetinstanceupgrade (False) – whether to upgrade the JSON file on disk if any migrations were necessary
warn_deprecated (False) – whether to issue a warning if the dataset has a deprecated format
- Returns:
- copy()#
Returns a deep copy of the object.
- Returns:
a Serializable instance
- custom_attributes(dynamic=False, private=False)#
Returns a customizable list of class attributes.
By default, all attributes in vars(self) are returned, minus private attributes (those starting with “_”).
- Parameters:
dynamic – whether to include dynamic properties, e.g., those defined by getter/setter methods or the @property decorator. By default, this is False
private – whether to include private properties, i.e., those starting with “_”. By default, this is False
- Returns:
a list of class attributes
- classmethod from_str(s, *args, **kwargs)#
Constructs a Serializable object from a JSON string.
Subclasses may override this method, but, by default, this method simply parses the string and calls from_dict(), which subclasses must implement.
- Parameters:
s – a JSON string representation of a Serializable object
*args – optional positional arguments for self.from_dict()
**kwargs – optional keyword arguments for self.from_dict()
- Returns:
an instance of the Serializable class
- classmethod get_class_name()#
Returns the fully-qualified class name string of this object.
- serialize(reflective=False)#
Serializes the object into a dictionary.
Serialization is applied recursively to all attributes in the object, including element-wise serialization of lists and dictionary values.
- Parameters:
reflective – whether to include reflective attributes when serializing the object. By default, this is False
- Returns:
a JSON dictionary representation of the object
- to_str(pretty_print=True, **kwargs)#
Returns a string representation of this object.
- Parameters:
pretty_print – whether to render the JSON in human readable format with newlines and indentations. By default, this is True
**kwargs – optional keyword arguments for self.serialize()
- Returns:
a string representation of the object
- write_json(path, pretty_print=False, **kwargs)#
Serializes the object and writes it to disk.
- Parameters:
path – the output path
pretty_print – whether to render the JSON in human readable format with newlines and indentations. By default, this is False
**kwargs – optional keyword arguments for self.serialize()
- class fiftyone.zoo.datasets.ZooDatasetSplitInfo(split, num_samples)#
Bases:
SerializableClass containing info about a split of a dataset in the FiftyOne Dataset Zoo.
- Parameters:
split – the name of the split
num_samples – the number of samples in the split
Methods:
Returns a list of class attributes to be serialized.
from_dict(d)Loads a
ZooDatasetSplitInfofrom a JSON dictionary.copy()Returns a deep copy of the object.
custom_attributes([dynamic, private])Returns a customizable list of class attributes.
from_json(path, *args, **kwargs)Constructs a Serializable object from a JSON file.
from_str(s, *args, **kwargs)Constructs a Serializable object from a JSON string.
Returns the fully-qualified class name string of this object.
serialize([reflective])Serializes the object into a dictionary.
to_str([pretty_print])Returns a string representation of this object.
write_json(path[, pretty_print])Serializes the object and writes it to disk.
- attributes()#
Returns a list of class attributes to be serialized.
- Returns:
a list of class attributes
- classmethod from_dict(d)#
Loads a
ZooDatasetSplitInfofrom a JSON dictionary.- Parameters:
d – a JSON dictionary
- Returns:
- copy()#
Returns a deep copy of the object.
- Returns:
a Serializable instance
- custom_attributes(dynamic=False, private=False)#
Returns a customizable list of class attributes.
By default, all attributes in vars(self) are returned, minus private attributes (those starting with “_”).
- Parameters:
dynamic – whether to include dynamic properties, e.g., those defined by getter/setter methods or the @property decorator. By default, this is False
private – whether to include private properties, i.e., those starting with “_”. By default, this is False
- Returns:
a list of class attributes
- classmethod from_json(path, *args, **kwargs)#
Constructs a Serializable object from a JSON file.
Subclasses may override this method, but, by default, this method simply reads the JSON and calls from_dict(), which subclasses must implement.
- Parameters:
path – the path to the JSON file on disk
*args – optional positional arguments for self.from_dict()
**kwargs – optional keyword arguments for self.from_dict()
- Returns:
an instance of the Serializable class
- classmethod from_str(s, *args, **kwargs)#
Constructs a Serializable object from a JSON string.
Subclasses may override this method, but, by default, this method simply parses the string and calls from_dict(), which subclasses must implement.
- Parameters:
s – a JSON string representation of a Serializable object
*args – optional positional arguments for self.from_dict()
**kwargs – optional keyword arguments for self.from_dict()
- Returns:
an instance of the Serializable class
- classmethod get_class_name()#
Returns the fully-qualified class name string of this object.
- serialize(reflective=False)#
Serializes the object into a dictionary.
Serialization is applied recursively to all attributes in the object, including element-wise serialization of lists and dictionary values.
- Parameters:
reflective – whether to include reflective attributes when serializing the object. By default, this is False
- Returns:
a JSON dictionary representation of the object
- to_str(pretty_print=True, **kwargs)#
Returns a string representation of this object.
- Parameters:
pretty_print – whether to render the JSON in human readable format with newlines and indentations. By default, this is True
**kwargs – optional keyword arguments for self.serialize()
- Returns:
a string representation of the object
- write_json(path, pretty_print=False, **kwargs)#
Serializes the object and writes it to disk.
- Parameters:
path – the output path
pretty_print – whether to render the JSON in human readable format with newlines and indentations. By default, this is False
**kwargs – optional keyword arguments for self.serialize()
- class fiftyone.zoo.datasets.ZooDataset#
Bases:
objectBase class for datasets made available in the FiftyOne Dataset Zoo.
Attributes:
The name of the dataset.
Whether the dataset is remotely-sourced.
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
A tuple of tags for the dataset.
Whether the dataset has tags.
An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
Whether the dataset has splits.
Whether the dataset has patches that may need to be applied to already downloaded files.
Whether the dataset supports downloading partial subsets of its splits.
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
A dict of default kwargs to pass to this dataset's
fiftyone.utils.data.importers.DatasetImporter.Methods:
has_tag(tag)Whether the dataset has the given tag.
has_split(split)Whether the dataset has the given split.
get_split_dir(dataset_dir, split)Returns the directory for the given split of the dataset.
has_info(dataset_dir)Determines whether the directory contains
ZooDatasetInfo.load_info(dataset_dir[, upgrade, ...])Loads the
ZooDatasetInfofrom the given dataset directory.get_info_path(dataset_dir)Returns the path to the
ZooDatasetInfofor the dataset.download_and_prepare(dataset_dir[, split, ...])Downloads the dataset and prepares it for use.
- property name#
The name of the dataset.
- property is_remote#
Whether the dataset is remotely-sourced.
- property license#
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
- property tags#
A tuple of tags for the dataset.
- property has_tags#
Whether the dataset has tags.
- property parameters#
An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
- property supported_splits#
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
- property has_splits#
Whether the dataset has splits.
- property has_patches#
Whether the dataset has patches that may need to be applied to already downloaded files.
- property supports_partial_downloads#
Whether the dataset supports downloading partial subsets of its splits.
- property requires_manual_download#
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
- property importer_kwargs#
A dict of default kwargs to pass to this dataset’s
fiftyone.utils.data.importers.DatasetImporter.
- has_tag(tag)#
Whether the dataset has the given tag.
- Parameters:
tag – the tag
- Returns:
True/False
- has_split(split)#
Whether the dataset has the given split.
- Parameters:
split – the dataset split
- Returns:
True/False
- get_split_dir(dataset_dir, split)#
Returns the directory for the given split of the dataset.
- Parameters:
dataset_dir – the dataset directory
split – the dataset split
- Returns:
the directory that will/does hold the specified split
- static has_info(dataset_dir)#
Determines whether the directory contains
ZooDatasetInfo.- Parameters:
dataset_dir – the dataset directory
- Returns:
True/False
- static load_info(dataset_dir, upgrade=True, warn_deprecated=False)#
Loads the
ZooDatasetInfofrom the given dataset directory.- Parameters:
dataset_dir – the directory in which to construct the dataset
upgrade (True) – whether to upgrade the JSON file on disk if any migrations were necessary
warn_deprecated (False) – whether to issue a warning if the dataset has a deprecated format
- Returns:
the
ZooDatasetInfofor the dataset
- static get_info_path(dataset_dir)#
Returns the path to the
ZooDatasetInfofor the dataset.- Parameters:
dataset_dir – the dataset directory
- Returns:
the path to the
ZooDatasetInfo
- download_and_prepare(dataset_dir, split=None, splits=None, cleanup=True)#
Downloads the dataset and prepares it for use.
If the requested splits have already been downloaded, they are not re-downloaded.
- Parameters:
dataset_dir – the directory in which to construct the dataset
split (None) –
splitnorsplitsare provided, the full dataset is downloadedsplits (None) – a list of splits to download, if applicable. If neither
splitnorsplitsare provided, the full dataset is downloadedcleanup (True) – whether to cleanup any temporary files generated during download
- Returns:
the
ZooDatasetInfofor the dataset
- class fiftyone.zoo.datasets.RemoteZooDataset(dataset_dir, url=None, **kwargs)#
Bases:
ZooDatasetClass for working with remotely-sourced datasets that are compatible with the FiftyOne Dataset Zoo.
- Parameters:
dataset_dir – the dataset’s local directory, which must contain a valid dataset YAML file
url (None) –
the dataset’s remote source, which can be:
a GitHub repo URL like
https://github.com/<user>/<repo>a GitHub ref like
https://github.com/<user>/<repo>/tree/<branch>orhttps://github.com/<user>/<repo>/commit/<commit>a GitHub ref string like
<user>/<repo>[/<ref>]a publicly accessible URL of an archive (eg zip or tar) file
This is explicitly provided rather than relying on the YAML file’s
urlproperty in case the caller has specified a particular branch or commit**kwargs – optional keyword arguments for the dataset’s download_and_prepare() and/or load_dataset() methods
Attributes:
The name of the dataset.
Whether the dataset is remotely-sourced.
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
A tuple of tags for the dataset.
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
Whether the dataset supports downloading partial subsets of its splits.
Whether the dataset has patches that may need to be applied to already downloaded files.
Whether the dataset has splits.
Whether the dataset has tags.
A dict of default kwargs to pass to this dataset's
fiftyone.utils.data.importers.DatasetImporter.An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
Methods:
download_and_prepare(dataset_dir[, split, ...])Downloads the dataset and prepares it for use.
get_info_path(dataset_dir)Returns the path to the
ZooDatasetInfofor the dataset.get_split_dir(dataset_dir, split)Returns the directory for the given split of the dataset.
has_info(dataset_dir)Determines whether the directory contains
ZooDatasetInfo.has_split(split)Whether the dataset has the given split.
has_tag(tag)Whether the dataset has the given tag.
load_info(dataset_dir[, upgrade, ...])Loads the
ZooDatasetInfofrom the given dataset directory.- property metadata#
- property name#
The name of the dataset.
- property url#
- property is_remote#
Whether the dataset is remotely-sourced.
- property author#
- property version#
- property source#
- property license#
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
- property description#
- property fiftyone_version#
- property tags#
A tuple of tags for the dataset.
- property supported_splits#
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
- property supports_partial_downloads#
Whether the dataset supports downloading partial subsets of its splits.
- property size_samples#
- download_and_prepare(dataset_dir, split=None, splits=None, cleanup=True)#
Downloads the dataset and prepares it for use.
If the requested splits have already been downloaded, they are not re-downloaded.
- Parameters:
dataset_dir – the directory in which to construct the dataset
split (None) –
splitnorsplitsare provided, the full dataset is downloadedsplits (None) – a list of splits to download, if applicable. If neither
splitnorsplitsare provided, the full dataset is downloadedcleanup (True) – whether to cleanup any temporary files generated during download
- Returns:
the
ZooDatasetInfofor the dataset
- static get_info_path(dataset_dir)#
Returns the path to the
ZooDatasetInfofor the dataset.- Parameters:
dataset_dir – the dataset directory
- Returns:
the path to the
ZooDatasetInfo
- get_split_dir(dataset_dir, split)#
Returns the directory for the given split of the dataset.
- Parameters:
dataset_dir – the dataset directory
split – the dataset split
- Returns:
the directory that will/does hold the specified split
- static has_info(dataset_dir)#
Determines whether the directory contains
ZooDatasetInfo.- Parameters:
dataset_dir – the dataset directory
- Returns:
True/False
- property has_patches#
Whether the dataset has patches that may need to be applied to already downloaded files.
- has_split(split)#
Whether the dataset has the given split.
- Parameters:
split – the dataset split
- Returns:
True/False
- property has_splits#
Whether the dataset has splits.
- has_tag(tag)#
Whether the dataset has the given tag.
- Parameters:
tag – the tag
- Returns:
True/False
- property has_tags#
Whether the dataset has tags.
- property importer_kwargs#
A dict of default kwargs to pass to this dataset’s
fiftyone.utils.data.importers.DatasetImporter.
- static load_info(dataset_dir, upgrade=True, warn_deprecated=False)#
Loads the
ZooDatasetInfofrom the given dataset directory.- Parameters:
dataset_dir – the directory in which to construct the dataset
upgrade (True) – whether to upgrade the JSON file on disk if any migrations were necessary
warn_deprecated (False) – whether to issue a warning if the dataset has a deprecated format
- Returns:
the
ZooDatasetInfofor the dataset
- property parameters#
An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
- property requires_manual_download#
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
- class fiftyone.zoo.datasets.DeprecatedZooDataset#
Bases:
ZooDatasetClass representing a zoo dataset that no longer exists in the FiftyOne Dataset Zoo.
Attributes:
The name of the dataset.
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
Whether the dataset has patches that may need to be applied to already downloaded files.
Whether the dataset has splits.
Whether the dataset has tags.
A dict of default kwargs to pass to this dataset's
fiftyone.utils.data.importers.DatasetImporter.Whether the dataset is remotely-sourced.
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
Whether the dataset supports downloading partial subsets of its splits.
A tuple of tags for the dataset.
Methods:
download_and_prepare(dataset_dir[, split, ...])Downloads the dataset and prepares it for use.
get_info_path(dataset_dir)Returns the path to the
ZooDatasetInfofor the dataset.get_split_dir(dataset_dir, split)Returns the directory for the given split of the dataset.
has_info(dataset_dir)Determines whether the directory contains
ZooDatasetInfo.has_split(split)Whether the dataset has the given split.
has_tag(tag)Whether the dataset has the given tag.
load_info(dataset_dir[, upgrade, ...])Loads the
ZooDatasetInfofrom the given dataset directory.- property name#
The name of the dataset.
- property supported_splits#
A tuple of supported splits for the dataset, or None if the dataset does not have splits.
- download_and_prepare(dataset_dir, split=None, splits=None, cleanup=True)#
Downloads the dataset and prepares it for use.
If the requested splits have already been downloaded, they are not re-downloaded.
- Parameters:
dataset_dir – the directory in which to construct the dataset
split (None) –
splitnorsplitsare provided, the full dataset is downloadedsplits (None) – a list of splits to download, if applicable. If neither
splitnorsplitsare provided, the full dataset is downloadedcleanup (True) – whether to cleanup any temporary files generated during download
- Returns:
the
ZooDatasetInfofor the dataset
- static get_info_path(dataset_dir)#
Returns the path to the
ZooDatasetInfofor the dataset.- Parameters:
dataset_dir – the dataset directory
- Returns:
the path to the
ZooDatasetInfo
- get_split_dir(dataset_dir, split)#
Returns the directory for the given split of the dataset.
- Parameters:
dataset_dir – the dataset directory
split – the dataset split
- Returns:
the directory that will/does hold the specified split
- static has_info(dataset_dir)#
Determines whether the directory contains
ZooDatasetInfo.- Parameters:
dataset_dir – the dataset directory
- Returns:
True/False
- property has_patches#
Whether the dataset has patches that may need to be applied to already downloaded files.
- has_split(split)#
Whether the dataset has the given split.
- Parameters:
split – the dataset split
- Returns:
True/False
- property has_splits#
Whether the dataset has splits.
- has_tag(tag)#
Whether the dataset has the given tag.
- Parameters:
tag – the tag
- Returns:
True/False
- property has_tags#
Whether the dataset has tags.
- property importer_kwargs#
A dict of default kwargs to pass to this dataset’s
fiftyone.utils.data.importers.DatasetImporter.
- property is_remote#
Whether the dataset is remotely-sourced.
- property license#
The license or list,of,licenses under which the dataset is distributed, or None if unknown.
- static load_info(dataset_dir, upgrade=True, warn_deprecated=False)#
Loads the
ZooDatasetInfofrom the given dataset directory.- Parameters:
dataset_dir – the directory in which to construct the dataset
upgrade (True) – whether to upgrade the JSON file on disk if any migrations were necessary
warn_deprecated (False) – whether to issue a warning if the dataset has a deprecated format
- Returns:
the
ZooDatasetInfofor the dataset
- property parameters#
An optional dict of parameters describing the configuration of the zoo dataset when it was downloaded.
- property requires_manual_download#
Whether this dataset requires some files to be manually downloaded by the user before the dataset can be loaded.
- property supports_partial_downloads#
Whether the dataset supports downloading partial subsets of its splits.
- property tags#
A tuple of tags for the dataset.