semvec/pypi-packages huggingface dataset:
lingoqa-dataset 0.2.0
LingoQA dataset for pytorch
Requires Python: <4.0,>=3.10

# LingoQA dataset for pytorch

[![Test](https://github.com/hakuturu583/lingoqa_dataset/actions/workflows/test.yml/badge.svg)](https://github.com/hakuturu583/lingoqa_dataset/actions/workflows/test.yml)

[![codecov](https://codecov.io/gh/hakuturu583/lingoqa_dataset/graph/badge.svg?token=WE0LoxY9g2)](https://codecov.io/gh/hakuturu583/lingoqa_dataset)

## How to use

```python
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](https://github.com/wayveai/LingoQA) project from [wayve.](https://wayve.ai/)