Skip to main content

LingoQA dataset for pytorch

Project description

LingoQA dataset for pytorch

Test

codecov

How to use

from lingoqa_dataset.lingoqa_dataset import LingoQADataset, DatasetType
import torchvision.transforms as transforms
from torch.utils.data import DataLoader

dataset = LingoQADataset(
    DatasetType.EVALUATION, transforms=transforms.Resize((256, 512))
)
dataloader = DataLoader(dataset=dataset, batch_size=3, shuffle=True)
for data, question, answer in dataloader:
    pass

data

  • type: torch.Tensor
  • size : torch.Size([batch_size, 3 * number_of_images, height, width])
  • description : Images in the target sequences.

question

  • type: torch.Tuple(str)
  • size: batch_size
  • description : Questions in the batch.

answer

  • type: torch.Tuple(str)
  • size: batch_size
  • description : Answers in the batch.

Special thanks

LingoQA project from wayve.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lingoqa_dataset-0.2.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

lingoqa_dataset-0.2.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page