dataeval.utils.data.datasets.VOCDetection

class dataeval.utils.data.datasets.VOCDetection(root, image_set='train', year='2012', transforms=None, download=False, verbose=False)

Pascal VOC Detection Dataset.

Parameters:
root : str or pathlib.Path

Root directory of dataset where the vocdataset folder exists.

image_set : "train", "val", "test", or "base", default "train"

If “test”, then dataset year must be “2007”. If “base”, then the combined dataset of “train” and “val” is returned.

year : "2007", "2008", "2009", "2010", "2011" or "2012", default "2012"

The dataset year.

transforms : Transform, Sequence[Transform] or None, default None

Transform(s) to apply to the data.

download : bool, default False

If True, downloads the dataset from the internet and puts it in root directory. Class checks to see if data is already downloaded to ensure it does not create a duplicate download.

verbose : bool, default False

If True, outputs print statements.

path

Location of the folder containing the data.

Type:

pathlib.Path

year

The selected dataset year.

Type:

“2007”, “2008”, “2009”, “2010”, “2011” or “2012”

image_set

The selected image set from the dataset.

Type:

“train”, “val”, “test” or “base”

index2label

Dictionary which translates from class integers to the associated class strings.

Type:

dict[int, str]

label2index

Dictionary which translates from class strings to the associated class integers.

Type:

dict[str, int]

Return type:

dict[str, int]

metadata

Typed dictionary containing dataset metadata, such as id which returns the dataset class name.

Type:

DatasetMetadata

transforms

The transforms to be applied to the data.

Type:

Sequence[Transform]

size

The size of the dataset.

Type:

int

Note

Data License: Flickr Terms of Use