FGVCAircraft — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.FGVCAircraft(root: ~typing.Union[str, ~pathlib.Path], split: str = 'trainval', annotation_level: str = 'variant', transform: ~typing.Optional[~typing.Callable] = None, target_transform: ~typing.Optional[~typing.Callable] = None, download: bool = False, loader: ~typing.Callable[[str], ~typing.Any] = <function default_loader>)[source]

FGVC Aircraft Dataset.

The dataset contains 10,000 images of aircraft, with 100 images for each of 100 different aircraft model variants, most of which are airplanes. Aircraft models are organized in a three-levels hierarchy. The three levels, from finer to coarser, are:

Parameters:

Special-members:

__getitem__(idx: int) → Tuple[Any, Any][source]

Parameters:

index (int) – Index

Returns:

Sample and meta data, optionally transformed by the respective transforms.

Return type:

(Any)