neodroidvision.data.classification.nlet.pair_dataset.PairDataset

class neodroidvision.data.classification.nlet.pair_dataset.PairDataset(data_path: ~typing.Union[str, ~pathlib.Path], split: ~draugr.numpy_utilities.datasets.splitting.SplitEnum = SplitEnum.training, return_categories: bool = False, *, transform: callable = ToTensor(), target_transform: callable = None, loader=<function default_loader>, is_valid_file: callable = None)[source]

Bases: SupervisedDataset

# This dataset generates a pair of images. 0 for geniune pair and 1 for imposter pair

__init__(data_path: ~typing.Union[str, ~pathlib.Path], split: ~draugr.numpy_utilities.datasets.splitting.SplitEnum = SplitEnum.training, return_categories: bool = False, *, transform: callable = ToTensor(), target_transform: callable = None, loader=<function default_loader>, is_valid_file: callable = None)[source]

Methods

__init__(data_path[, split, ...])

plot_images(images[, label])

param images

sample([horizontal_merge])

description

Attributes

predictor_shape

return: :rtype:

response_shape

return: :rtype:

split_names

return: :rtype:

static plot_images(images, label=None) None[source]
Parameters
  • images

  • label

property predictor_shape: Tuple[int, ...]

return: :rtype:

property response_shape: Tuple[int, ...]

return: :rtype:

sample(horizontal_merge: bool = False) None[source]

description

property split_names: Dict[SplitEnum, str]

return: :rtype: