lightningdot
copied
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions
19 lines
449 B
19 lines
449 B
"""
|
|
Visual entailment dataset
|
|
# NOTE: basically reuse VQA dataset
|
|
"""
|
|
from .vqa import VqaDataset, VqaEvalDataset, vqa_collate, vqa_eval_collate
|
|
|
|
|
|
class VeDataset(VqaDataset):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(3, *args, **kwargs)
|
|
|
|
|
|
class VeEvalDataset(VqaEvalDataset):
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(3, *args, **kwargs)
|
|
|
|
|
|
ve_collate = vqa_collate
|
|
ve_eval_collate = vqa_eval_collate
|