module documentation

Utilities for working with the Places dataset.

Copyright 2017-2025, Voxel51, Inc.

Class PlacesDatasetImporter Class for importing datasets written by download_places_dataset_split`.
Function download_places_dataset_split Utility that downloads splits of the Places dataset.
Variable logger Undocumented
Constant _ANNOTATION_DOWNLOAD_LINK Undocumented
Constant _ANNOTATION_FILE Undocumented
Constant _IMAGE_DOWNLOAD_LINKS Undocumented
Constant _SPLIT_SIZES Undocumented
Constant _SUPPORTED_SPLITS Undocumented
Constant _TAR_NAMES Undocumented
def download_places_dataset_split(dataset_dir, split, raw_dir=None): (source)

Utility that downloads splits of the Places dataset.

Any existing files are not re-downloaded.

Parameters
dataset_dirthe directory to download the dataset
splitthe split to download. Supported values are ("train", "validation", "test")
raw_dir:Nonea directory in which full annotations files may be stored to avoid re-downloads in the future
Returns
a tuple of
  • num_samples: the total number of downloaded images
  • classes: the list of all classes
  • did_download: whether any content was downloaded (True) or if all necessary files were already downloaded (False)

Undocumented

_ANNOTATION_DOWNLOAD_LINK: str = (source)

Undocumented

Value
'http://data.csail.mit.edu/places/places365/filelist_places365-standard.tar'
_ANNOTATION_FILE: dict[str, str] = (source)

Undocumented

Value
{'categories': 'categories_places365.txt',
 'train': 'places365_train_standard.txt',
 'validation': 'places365_val.txt',
 'test': 'places365_test.txt'}
_IMAGE_DOWNLOAD_LINKS: dict[str, str] = (source)

Undocumented

Value
{'train': 'http://data.csail.mit.edu/places/places365/train_256_places365standar
d.tar',
 'validation': 'http://data.csail.mit.edu/places/places365/val_256.tar',
 'test': 'http://data.csail.mit.edu/places/places365/test_256.tar'}
_SPLIT_SIZES: dict[str, int] = (source)

Undocumented

Value
{'train': 1803460, 'validation': 36500, 'test': 328500}
_SUPPORTED_SPLITS: list[str] = (source)

Undocumented

Value
['train', 'validation', 'test']
_TAR_NAMES: dict[str, str] = (source)

Undocumented

Value
{'train': 'data_256', 'validation': 'val_256', 'test': 'test_256'}