Skip to main content

LingoQA dataset for pytorch

Project description

LingoQA dataset for pytorch

How to use

from lingoqa_dataset.dataset import LingoQADataset
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.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

lingoqa_dataset-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file lingoqa_dataset-0.1.1.tar.gz.

File metadata

  • Download URL: lingoqa_dataset-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.4 Linux/6.5.0-26-generic

File hashes

Hashes for lingoqa_dataset-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cdb965ac99d2b9bd202ef1dfb2336851002e145312113e72b42e9b4c106ce09
MD5 ab285b100166e40d78bef05532b62671
BLAKE2b-256 86ee191dbad0ef21f8adfba55896352dc2ad0558ab289ca7bd145fb953869e3e

See more details on using hashes here.

File details

Details for the file lingoqa_dataset-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lingoqa_dataset-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.4 Linux/6.5.0-26-generic

File hashes

Hashes for lingoqa_dataset-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b9b185d173190c0f2c082f8fb7b9858102f6e0c20a40b1def76e3be9a23206c
MD5 cc12e9560efa9d4a70cddbf7be0a0f59
BLAKE2b-256 610571907a7514f045e38bc82d049807aab8832ebc6a38c291cba427812b5980

See more details on using hashes here.

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