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
return: :rtype:
return: :rtype:
return: :rtype: