data.datasets.multi_modal_img_text.zero_shot package
Submodules
data.datasets.multi_modal_img_text.zero_shot.base_zero_shot module
- class data.datasets.multi_modal_img_text.zero_shot.base_zero_shot.BaseZeroShotDataset(opts: Namespace, *args, **kwargs)[source]
Bases:
object
Base Dataset class for zero shot tasks.
- Parameters:
opts – Command-line arguments.
data.datasets.multi_modal_img_text.zero_shot.imagenet module
- class data.datasets.multi_modal_img_text.zero_shot.imagenet.ImageNetDatasetZeroShot(opts: Namespace, *args, **kwargs)[source]
Bases:
BaseZeroShotDataset
,ImageFolder
ImageNet Dataset for zero-shot evaluation of Image-text models.
- Parameters:
opts – Command-line arguments
data.datasets.multi_modal_img_text.zero_shot.imagenet_class_names module
data.datasets.multi_modal_img_text.zero_shot.templates module
Module contents
- data.datasets.multi_modal_img_text.zero_shot.arguments_zero_shot_dataset(parser: ArgumentParser) ArgumentParser [source]
Helper function to get zero-shot dataset arguments
- data.datasets.multi_modal_img_text.zero_shot.build_zero_shot_dataset(opts, *args, **kwargs) BaseZeroShotDataset [source]
Helper function to build the zero shot datasets