module documentation
Sama utilities.
Function | download |
Utility that downloads full or partial data splits of the COCO dataset with annotation splits found at https://www.sama.com/sama-coco-dataset. |
Variable | logger |
Undocumented |
Function | _merge |
Undocumented |
Constant | _ANNOTATION |
Undocumented |
Constant | _ANNOTATION |
Undocumented |
Constant | _CSV |
Undocumented |
Constant | _IMAGE |
Undocumented |
Constant | _SPLIT |
Undocumented |
Constant | _SUPPORTED |
Undocumented |
Constant | _SUPPORTED |
Undocumented |
Constant | _TEST |
Undocumented |
Constant | _TEST |
Undocumented |
def download_sama_coco_dataset_split(dataset_dir, split, label_types=None, classes=None, image_ids=None, num_workers=None, shuffle=None, seed=None, max_samples=None, raw_dir=None, scratch_dir=None):
(source)
¶
Utility that downloads full or partial data splits of the COCO dataset with annotation splits found at https://www.sama.com/sama-coco-dataset.
See :ref:`this page <COCODetectionDataset-export>` for the format in which dataset_dir will be arranged.
Any existing files are not re-downloaded.
Parameters | |
dataset | the directory to download the dataset |
split | the split to download. Supported values are ("train", "validation", "test") |
labelNone | a label type or list of label types to load. The supported values are ("detections", "segmentations"). By default, all label types are loaded |
classes:None | a string or list of strings specifying required classes to load. Only samples containing at least one instance of a specified class will be loaded |
imageNone | an optional list of specific image IDs to load. Can be provided in any of the following formats:
|
numNone | a suggested number of threads to use when downloading individual images |
shuffle:False | whether to randomly shuffle the order in which samples are chosen for partial downloads |
seed:None | a random seed to use when shuffling |
maxNone | a maximum number of samples to load. If label_types and/or classes are also specified, first priority will be given to samples that contain all of the specified label types and/or classes, followed by samples that contain at least one of the specified labels types or classes. The actual number of samples loaded may be less than this maximum value if the dataset does not contain sufficient samples matching your requirements. By default, all matching samples are loaded |
rawNone | a directory in which full annotations files may be stored to avoid re-downloads in the future |
scratchNone | a scratch directory to use to download any necessary temporary files |
Returns | |
a tuple of |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|